Sorry about the wrong version of the test driver.  Please replace with
the attached test code.

Thanks!
-Naveen


-----Original Message-----
From: Thomas Yip [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 7:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Potential bug fix for 1:1 relationship updates
in long transactions



Did you modify your test since that?
I ran your test. I terminated successfully.



Thomas


-----Original Message-----
>From: Sharma, Naveen [mailto:[EMAIL PROTECTED]]
>Sent: Monday, October 22, 2001 11:46 AM
>To: [EMAIL PROTECTED]
>Subject: Re: [castor-dev] Potential bug fix for 1:1 relationship
updates in
long transactions
>
>Thomas,
>
>I had submitted a test earlier. Please look at the following link
>http://www.mail-archive.com/castor-dev@exolab.org/msg00768.html
>
>Thanks!
>
>-Naveen
>
>-----Original Message-----
>From: Thomas Yip [mailto:[EMAIL PROTECTED]]
>Sent: Monday, October 22, 2001 2:32 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [castor-dev] Potential bug fix for 1:1 relationship
updates
>in long transactions
>
>
>
>The line that you suggest to remove is necessary. The patch didn't aim
>to
>the real problem.
>If you can submit me an independently test case showing your problem, I
>can
>take a look at it.
>
>
>
>Thomas
>
>
>
>-----Original Message-----
>>From: Sharma, Naveen [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, October 22, 2001 7:23 AM
>>To: [EMAIL PROTECTED]
>>Subject: [castor-dev] Potential bug fix for 1:1 relationship updates
in
>long transactions
>>
>>
>>I am having the following problem:
>>I load a parent from the database which has an associated 1:1 related
>>child. Now I want to break the relationship between the parent and its
>>associated child and relate the parent to a new child. When I try to
do
>>this I get the exception below:
>>The potential bug fix is also described below.
>>[NCS] Castor: Creating Parent (null)
>>[NCS] Castor: Creating Child (null)
>>[NCS] SELECT "PARENT"."OID","PARENT"."VALUE","CHILD"."OID" FROM
>>"PARENT","CHILD" WHERE "PARENT"."OID"="CHILD"."PARENTOID"(+)
>>[NCS] Castor: Loading Child (1285)
>>[NCS] Castor: Loading Parent (1284)
>>[NCS] Castor: Storing Child (1285)
>>[NCS] SELECT "PARENT"."OID","PARENT"."VALUE","CHILD"."OID" FROM
>>"PARENT","CHILD" WHERE "PARENT"."OID"="CHILD"."PARENTOID"(+)
>>[NCS] Castor: Loading Child (1285)
>>[NCS] Castor: Loading Parent (1284)
>>[NCS] Castor: Loading Child (1285)
>>[NCS] Castor: Creating Child (0)
>>org.exolab.castor.jdo.PersistenceException: The identity of a data
>>object of type Child, has been changed from 0 to 1,286 since it is
>>loaded/create/update.
>>at
>org.exolab.castor.persist.ClassMolder.preStore(ClassMolder.java:1120)
>>at org.exolab.castor.persist.LockEngine.preStore(LockEngine.java:726)
>>at
>>org.exolab.castor.persist.TransactionContext.prepare(TransactionContex
t
>

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

OracleTest.java

Reply via email to