0 Replies Latest reply on Apr 5, 2006 11:25 AM by Lutz Schoder

    exceptions with auto-generated primary keys

    Lutz Schoder Newbie

      We use jboss and oracle with cmp. The primary key generation on every table uses an insert-trigger and a sequence on the database so the ejb don't have to generate the pk. We marked the pk-fields in the deployment descripter as "auto-increment" and store the ejb without filled pk. And now we get a CreateException on every store. How can we declare the pk-fields correctly?
      Many thanks.