Re: Cayenne modeler - need to generate setters and getters for primary key

From: PA (petite.abeill..mail.com)
Date: Thu Mar 10 2005 - 10:20:06 EST

  • Next message: Jürgen Saar: "Strange NullPointerException"

    On Mar 10, 2005, at 16:15, Mike Kienenberger wrote:

    > A meaningless primary key never needs to change because it doesn't
    > represent
    > anything.

    You surely mean that it solely represents a database row, right?

    > It's the only thing guaranteed to never change. No other piece
    > of data can make that claim.

    Along those lines, and if you are not too attached to fashions, I would
    suggest using UUIDs as primary keys.

    http://java.sun.com/j2se/1.5.0/docs/api/java/util/UUID.html

    Cheers

    --
    PA, Onnay Equitursay
    http://alt.textdrive.com/
    



    This archive was generated by hypermail 2.0.0 : Thu Mar 10 2005 - 10:20:16 EST