Re: Anybody using UUIDs with Cayenne?

From: Michael Gentry (blacknex..mail.com)
Date: Tue May 27 2008 - 15:59:11 EDT

  • Next message: bob: "Re: Shut down Cayenne cleanly?"

    Hi Adrian, are you asking if there is an existing UUID primary key
    generator for Cayenne?

    If you have your own generator, you can set the PKs yourself (or make
    your own PK generator) and it should work fine stored as a varchar,
    unless I'm overlooking something obvious.

    /dev/mrg

    On Tue, May 20, 2008 at 3:51 PM, Adrian Wiesmann <awiesman..omap.org> wrote:
    > Hello all
    >
    > Let's have another question. :)
    >
    > Has anybody used UUIDs with Cayenne? I am interested in two use cases:
    >
    > - Configuring Cayenne so that UUIDs can be used in DataObjects without the
    > need for casts. I tried this some while ago, but Cayenne did not like this
    > when reading data from the database.
    >
    > - Storing UUIDs in a database when the database does not support UUIDs
    > natively. Using varchar(36) seems obvious, but are there any other
    > concepts?
    >
    > I am interested in any thoughts, input, comments.
    >
    > Cheers,
    > Adrian
    >



    This archive was generated by hypermail 2.0.0 : Tue May 27 2008 - 15:59:45 EDT