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.