OK, for now I set autostore to false in the MBean configuration.
So I can now create a new object and refer it to an existing object - ONLY
IF the referred object does not use a key-generator...
Can anybody do this WITH the referred-to , existing object which uses a
key-generator?
Thanks,
-- Jacek
At 01:58 PM 11/21/2001 -0500, you wrote:
>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
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