Hi, You must use the @jboss.unknown-pk feature for auto-incremented primary keys:
Remove the getter and setter methods for your primary key id. Remove the primkey-field in the @ejb.bean tag Declare the primary key class as object: * @ejb.pk class = "java.lang.Object" Declare the unknown-pk tag: * @jboss.unknown-pk * class="java.lang.Long" * column-name="id" * field-name="id" * sql-type="INT" * auto-increment="true" Change the returned type of ejbCreate in "java.lang.Object" I hope this helps you. <a href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3824003#3824003">View the original post</a> <a href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3824003>Reply to the post</a> ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
