0 Replies Latest reply on Jun 9, 2005 4:06 PM by Satish Satish

    Auto Key Sequence problem - Entity does not get the generate

    Satish Satish Newbie

      I am using JBoss 3.2.7 with MySQL 4.1.9 & Connector/J 3.1.

      I use auto increment on the MySQL database. I have applied the entity command using xdoclet
      * @jboss.entity-command name="mysql-get-generated-keys"

      The record gets created correctly in the database.
      However, the entity local returned from the home.create() method does not get updated with the generated primary key and it throws a NoSuchEntityException when accessing its primary key method.

      I see this being a problem when we have CMRs as well.

      Does anyone have a fix for this?

      Thanks.