Re: object id's are not sequential - ?

From: Jürgen Saar (jsaa..eb.de)
Date: Mon Jan 10 2005 - 03:10:06 EST

  • Next message: Jürgen Saar: "Dataviews"

    The PK generating process only generates an unique ID.
    Sequences are actual not supported by cayenne,
    but have been discussed many times in past,
    and I think will be possible in a coming cayenne release.

    Matt Kerr <mat..entralparksoftware.com> schrieb am 10.01.05 04:33:09:
    >
    > dear list members -
    >
    > forgive potentially obvious question ..
    >
    > i call dataContext.createAndRegisterNewObject()
    > on objects A, B, and C .. respectively.
    >
    > after commitChanges() the object id's (pk) in the db
    > do not have the same ordering ?
    >
    > they appear like ...
    >
    > 1 - C
    > 2 - A
    > 3 - B
    >
    > or whatever :-/
    >
    >
    > is there some way to have the id's follow the
    > same ordering as the createAndRegisterNewObject() invocations?
    >
    > (aside from being heavy handed, and calling commitChanges())
    >
    > thanks!
    > -matt
    >
    > ~~
    > Marriage changes passion. Suddenly you're in bed with a relative.

    ;-)))

    __________________________________________________________
    Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
    weltweit telefonieren! http://freephone.web.de/?mc=021201



    This archive was generated by hypermail 2.0.0 : Mon Jan 10 2005 - 03:10:19 EST