This content has been marked as final.
Show 4 replies
-
1. Re: can jboss generate a different primarykey per bean using
imhotep Aug 26, 2004 6:56 AM (in response to bentins)Hi Shai,
Why not use Hibernate?
-Imho -
2. Re: can jboss generate a different primarykey per bean using
lafr Aug 26, 2004 3:58 PM (in response to bentins)The entity-command oracle-sequence has a attribute named sequence which takes the name of the used sequence.
I my EB I have this tags for XDoclet:
* @jboss.entity-command name="oracle-sequence"
* @jboss.entity-command-attribute name="sequence" value="afpos_seq"
This goes to jbosscmp-jdbc.xml as:
<entity-command name="oracle-sequence">
afpos_seq
</entity-command> -
3. Re: can jboss generate a different primarykey per bean using
bentins Aug 29, 2004 11:36 AM (in response to bentins)It is my understanding that I need a diferent entity-command for each class I will have a difference sequence so my solution was:
* @jboss.entity-command name="folder-sequence" class="" * @jboss.entity-command-attribute name="sequence" value="FOLDER_SEQ"
which created the following under folder entity in my jbosscmp-jdbc.xml:<entity-command name="folder-sequence" class="org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCOracleCreateCommand"> <attribute name="sequence">FOLDER_SEQ</attribute> </entity-command>
I think this is the right way to do it don't you? -
4. Re: can jboss generate a different primarykey per bean using
lafr Aug 29, 2004 2:22 PM (in response to bentins)No, a different entity-command is not needed.
The standard entity-command "oracle-sequence" with different sequence-names per EntityBean is enough.