Re: Primary Key

From: Juergen Saar (juerge..saar.org)
Date: Sat Jun 05 2010 - 10:38:42 UTC

  • Next message: Andrus Adamchik: "Re: Trouble loading cayenne.xml in 3.x data view modeler"

    Assign a value for the PK-Attribute[s] before commit ... that's the way we
    solved this problem for our old fashion meaningful keys

    You can do it in validateForInsert() ...

    2010/6/5 Mike Kienenberger <mkienen..mail.com>

    Define an ObjAttribute for your manual primary keys, and do not
    > specify automatic pk generation.
    >
    > On Fri, Jun 4, 2010 at 5:53 PM, Sopot Çela <the.tracke..ahoo.com> wrote:
    >

    > > How can I make it that only a subset of tables should have primary keys
    > automatically generated and the remaining have them leave the control of
    > generating PK to my application?
    > >
    > > Thanks in advance.
    > >
    >



    This archive was generated by hypermail 2.0.0 : Sat Jun 05 2010 - 10:39:17 UTC