Why not use Hibernate?
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:
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?
No, a different entity-command is not needed.
The standard entity-command "oracle-sequence" with different sequence-names per EntityBean is enough.