[jboss-user] [Beginners Corner] - Re: can i use oracle sequence for primary key in cmp ejb?hel

lafr do-not-reply at jboss.com
Tue Sep 26 15:29:55 EDT 2006


Using XDoclet you have to put
 * @jboss.entity-command        name="oracle-sequence"
 * @jboss.entity-command-attribute      name="sequence" value="Name of the Sequence to use"
at class level.

This leads to
<entity-command name="oracle-sequence">
  |     <attribute name="sequence">Name of the Sequence to use</attribute>
  | </entity-command>
  | 
in jbosscmp-jdbc.xml as child of the matching entity element.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974329#3974329

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974329



More information about the jboss-user mailing list