Re: Not using ID in entity (java class)?

From: Bryan Lewis (brya..aine.rr.com)
Date: Wed Jun 30 2004 - 19:10:42 EDT

  • Next message: Elia Morling: "Re: Working with Transient Objects"

    > ... I mapped my PK column as an obj. attribute since I want to be
    > able to access it in queries and such.... If I want to change the
    > auto-gen PK (cant see why, just trying to understand) with the set
    > method, that will map correctly back to the database?

    It isn't quite that easy. I asked a similar question a couple of months ago
    and ended up with a reasonable technique. (Nobody pointed out its flaws,
    anyway. :-) See the sequence of postings ending in:

    http://www.objectstyle.org/cayenne/lists/cayenne-user/2004/05/0010.html



    This archive was generated by hypermail 2.0.0 : Wed Jun 30 2004 - 19:10:57 EDT