[ http://issues.apache.org/jira/browse/JDO-127?page=all ] Michael Bouschen reopened JDO-127: ----------------------------------
> Circular references are not stored properly > ------------------------------------------- > > Key: JDO-127 > URL: http://issues.apache.org/jira/browse/JDO-127 > Project: JDO > Type: Bug > Components: tck20 > Environment: JPOX > Reporter: Craig Russell > Assignee: Erik Bengtson > > This information from the company1-1Relationships test shows that with > circular references, all but the last foreign key is stored correctly. > Expected this instance: > FullTimeEmployee(5, emp5Last, emp5First, born 4/Jul/1962, phone {}, hired > 14/Aug/1998, weeklyhours 0.0, $45000.0) > Got persistent instance: > FullTimeEmployee(5, emp5Last, emp5First, born 4/Jul/1962, phone {}, hired > 14/Aug/1998, weeklyhours 0.0, $45000.0) > Detailed list of differences follows... > Context: Employee<5>.dentalInsurance-> Insurance<15>.employee-> > Employee<5>.medicalInsurance-> Insurance<5>.insid > expected '5' > actual '15' > Context: Employee<5>.dentalInsurance-> Insurance<15>.employee-> > Employee<5>.medicalInsurance-> MedicalInsurance<5>.planType > Expected not null, actual null > expected 'HMO' > actual 'null' > Context: Employee<5>.dentalInsurance-> Insurance<15>.employee-> > Employee<5>.mentor > Expected not null, actual null > expected 'FullTimeEmployee(1, emp1Last, emp1First, born 9/Jun/1970, > phone {}, hired 31/Dec/1998, weeklyhours 40.0, $20000.0)' > actual 'null' > Context: Employee<5>.dentalInsurance-> Insurance<15>.employee-> > Employee<5>.protege-> Employee<4>.medicalInsurance-> Insurance<4>.insid > expected '4' > actual '14' > Context: Employee<5>.dentalInsurance-> Insurance<15>.employee-> > Employee<5>.protege-> Employee<4>.medicalInsurance-> > MedicalInsurance<4>.planType > Expected not null, actual null > expected 'HMO' > actual 'null' > Context: Employee<5>.dentalInsurance-> Insurance<15>.employee-> > Employee<5>.protege-> Employee<4>.protege-> Employee<3>.medicalInsurance-> > Insurance<3>.insid > expected '3' > actual '13' > Context: Employee<5>.dentalInsurance-> Insurance<15>.employee-> > Employee<5>.protege-> Employee<4>.protege-> Employee<3>.medicalInsurance-> > MedicalInsurance<3>.planType > Expected not null, actual null > expected 'HMO' > actual 'null' > Context: Employee<5>.dentalInsurance-> Insurance<15>.employee-> > Employee<5>.protege-> Employee<4>.protege-> Employee<3>.protege-> > Employee<2>.medicalInsurance-> Insurance<2>.insid > expected '2' > actual '12' > Context: Employee<5>.dentalInsurance-> Insurance<15>.employee-> > Employee<5>.protege-> Employee<4>.protege-> Employee<3>.protege-> > Employee<2>.medicalInsurance-> MedicalInsurance<2>.planType > Expected not null, actual null > expected 'HMO' > actual 'null' > Context: Employee<5>.dentalInsurance-> Insurance<15>.employee-> > Employee<5>.protege-> Employee<4>.protege-> Employee<3>.protege-> > Employee<2>.protege-> Employee<1>.medicalInsurance-> Insurance<1>.insid > expected '1' > actual '11' > Context: Employee<5>.dentalInsurance-> Insurance<15>.employee-> > Employee<5>.protege-> Employee<4>.protege-> Employee<3>.protege-> > Employee<2>.protege-> Employee<1>.medicalInsurance-> > MedicalInsurance<1>.planType > Expected not null, actual null > expected 'PPO' > actual 'null' > Context: Employee<5>.dentalInsurance-> Insurance<15>.employee-> > Employee<5>.protege-> Employee<4>.protege-> Employee<3>.protege-> > Employee<2>.protege-> Employee<1>.protege > Expected not null, actual null > expected 'FullTimeEmployee(5, emp5Last, emp5First, > born 4/Jul/1962, phone {}, hired 14/Aug/1998, weeklyhours 0.0, $45000.0)' > actual 'null' > Context: Employee<5>.mentor > Expected not null, actual null > expected 'FullTimeEmployee(1, emp1Last, emp1First, born 9/Jun/1970, phone {}, > hired 31/Dec/1998, weeklyhours 40.0, $20000.0)' > actual 'null' -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
