1 Reply Latest reply on Apr 16, 2003 7:32 AM by Adrian Brock

    automatic primary key sequence generation

    sys user Master

      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