Hi,
Im using xdoclet to automatic generation files like the jbosscmp.jdbc.xml In my xdoclet configuration about standard ejb, i use a jboss version 3.2. I have a database that use autogeneration primary key values and use this handcraf code in jbosscmp-jdbc.xml:
..... <!-- jboss 3.2 features --> <unknown-pk> <unknown-pk-class>java.lang.Integer</unknown-pk-class> <field-name>idRol</field-name> <column-name>idRol</column-name> <jdbc-type>INTEGER</jdbc-type> <sql-type>INT(11)</sql-type> <auto-increment/> </unknown-pk> <entity-command name="mysql-get-generated-keys"/> <!-- optimistic locking does not express the exclusions needed --> </entity> ....