1 Reply Latest reply on Feb 26, 2004 6:31 PM by Alexey Loubyansky

    SapDB autoincrement PK

    Dirk Sturzebecher Newbie

      How do I setup the SapDB for an autoincrement PK for my CMP/Entitybean?

      I have a:

      - JBoss 3.2.3
      - EntityBean with PK (java.lang.Long id)
      - SAPDB 7.4

      My setup creates the table, but without the needed sequence.
      jbosscmp-jdbc.xml is configured for autoincement and does not touch the field, thus my DB complains it is null.
      If I understand correctly I need to add to jbosscmp-jdbc.xml for that bean an entity-command (some post had this for a MySql). But how does it look like for a SAPDB?