Uploaded image for project: 'JBoss Enterprise Application Platform 6'
  1. JBoss Enterprise Application Platform 6
  2. JBPAPP6-1750

EJB2 CMP Entity bean can not created when using enity-command 'mysql-get-generated-keys'

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Migrated to another ITS
    • Affects Version/s: EAP 6.0.0, EAP 6.0.1
    • Fix Version/s: None
    • Component/s: EJB
    • Labels:
      None
    • Docs QE Status:
      NEW

      Description

      If a Entity is created with the entity-command for auto-increment column and a mysql database the creation failed with an SQLException:
      Caused by: java.sql.SQLException: Generated keys not requested. You need to specify Statement.RETURN_GENERATED_KEYS to Statement.executeUpdate() or Connection.prepareStatement().

      A mysql driver 5.1.15 and 5.1.22 was tested.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  aloubyansky Oleksiy Lubyanskyy
                  Reporter:
                  wdfink Wolf-Dieter Fink
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: