Re: bug in objectId generation?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Mar 15 2006 - 09:24:55 EST

  • Next message: WONDER: "Re: caching problem ?"

    > So it is possible to create only 2^8 new objects with
    > createAndRegisterNewObject().....

    No - 2^8^8

    On Mar 15, 2006, at 5:18 PM, Tomas Jucius wrote:
    > Hi,
    >
    > I have found that ObjectId class constructor uses 8 byte objectId
    > generation:
    >
    > public ObjectId(String entityName) {
    > this.entityName = entityName;
    > this.key = IDUtil.pseudoUniqueByteSequence8 (); //
    > Returns 8 byte key - something strange..
    > }
    >
    >
    >
    > So it is possible to create only 2^8 new objects with
    > createAndRegisterNewObject().....
    >
    > Shouldn't you change this????
    >
    >
    > I am using Cayenne 1.2M11..
    >
    >
    >
    >
    > TJ
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Mar 15 2006 - 09:24:58 EST