Re: how to get object id before save?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Jun 03 2005 - 10:16:12 EDT

  • Next message: Andrus Adamchik: "Re: Need help with PSQLException"

    > Is it possible to get object id before saving it?

    Permanent ObjectId is created during commit. But if you really need to
    know the values upfront, you may need to trigger id generation manually
    before that.

    This post shows how you might get the values from PK generator:

    http://www.objectstyle.org/cayenne/lists/cayenne-user/2005/05/0227.html

    And this one - how to stick it in your id:

    http://www.objectstyle.org/cayenne/lists/cayenne-user/2005/01/0210.html

    Andrus



    This archive was generated by hypermail 2.0.0 : Fri Jun 03 2005 - 10:16:14 EDT