Newbie Question concerning pk autoincrementing

From: Jens Mayer (jens.mayer..mx.de)
Date: Fri Apr 06 2007 - 12:53:10 EDT

  • Next message: Andrus Adamchik: "Re: Newbie Question concerning pk autoincrementing"

    Hi,

    I'm using cayenne with oracle 9.2.0.3.0
    The pk-attributes in my schema are automatically generated by
    before-insert-triggers, so cayenne doesn't have to bother generating any
       pk. Due to this, I set the PK Generation Strategy for all DbEntities
    to "Database-Generated".
    And here comes the problem: everytime cayenne is doing an insert, a
    "select pk_xyz.nextval from dual" is fired. What's that ? Did I
    missunderstood anything ? I expected cayenne to ignore the pk-attributes
    completely.

    Any help appreciated.

    Greets Jens



    This archive was generated by hypermail 2.0.0 : Fri Apr 06 2007 - 12:55:20 EDT