Can JBoss do automatic primary key sequence generation for EJB CMP's ?
WebLogic has this functionality ...
http://edocs.bea.com/wls/docs61/ejb/cmp.html#1066165
And I'm trying to port an app that uses WebLogic's automatic-key-generation to JBoss. Anyone knows if this can be done without me recoding the app?
WebLogic has this in the weblogic-cmp-rdbms-jar.xml
<automatic-key-generation>
<generator-type>NAMED_SEQUENCE_TABLE</generator-type>
<generator-name>MY_SEQ_TABLE</generator-name>
<key-cache-size>10</key-cache-size>
</automatic-key-generation>
Thanks,
Trev
Trev,
Not sure if you mean generation by the database or generation through a java class. If you meant the former, check out this thread:
http://www.jboss.org/thread.jspforum=46&thread=27944
Good luck
Daniel