Please, try to search the archive before asking. I answered this
question many times and last one was just yesterday.
Specifically for MySQL, in jbosscmp-jdbc.xml in the entity element:
<cmp-field>
<field-name>id</field-name>
<column-name>knownid</column-name>
<jdbc-type>INTEGER</jdbc-type>
<sql-type>INTEGER(11)</sql-type>
<auto-increment/>
</cmp-field>
<entity-command name="mysql-get-generated-keys"/>
Note, this will work only in JBoss-3.2 and upper.
alex
Saturday, February 22, 2003, 6:53:24 AM, Jeremy Rempel wrote:
JR> Is there any way to use CMP and use the auto-increment features of the
JR> native database?
JR> Specifically MySQL.
JR> Thanks,
JR> Jeremy
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user