Are you implementing the Timestamaple Interface???

I had exactly the same error before.

If jdoGetTimestamp returns 0 Castor assumes that the object is new and tries
to create it in the database.


----- Original Message -----
From: "Jacek Kruszelnicki" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 21, 2001 7:58 PM
Subject: Re: [castor-dev] Castor behaves differently within JBoss


>
> But this is exactly what I want. The Company (ID=30) got created a long
> time ago - and that's the way it should be.
> Now I am creating a new object (of type Test, id=70) and want it to point
> to an _existing_ object (Company, id=30)
> The code works fine if the referenced object does not yet exist, but
should
> not Castor detect whether the about-to-be referenced object already exists
> in persistent storage and _NOT_ try to create it again if it does?
> I thought it would/should?
>
> -- Jacek
>
> >Jacek,
> >
> >Yes, this means that there's already an entry in the database with
> >an id or 30. If you're running the examples over and over again
> >and not cleaning out the database in between each invocation you'll
> >see this.
> >
> >--
> >
> >perl -e 'print
> >unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
> >
> >-----------------------------------------------------------
> >If you wish to unsubscribe from this mailing, send mail to
> >[EMAIL PROTECTED] with a subject of:
> >         unsubscribe castor-dev
>
> Jacek Kruszelnicki
> Numatica Corporation
> E-mail: [EMAIL PROTECTED]
> Phone: (781) 756 8064
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
>

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to