db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Bouschen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JDO-256) Inheritance mapping 1 fails for datastore identity.
Date Tue, 13 Dec 2005 17:06:46 GMT
    [ http://issues.apache.org/jira/browse/JDO-256?page=comments#action_12360316 ] 

Michael Bouschen commented on JDO-256:
--------------------------------------

Both xml files companyNoRelationships and companyAllRelationships define the same pc instances,
but companyNoRelationships does not set any relationship fields. This results in a list of
unrelated pc instances. When using 
companyAllRelationships the result is a graph of related pc instances.  

So with this change the medical and dental insurance relationship fields have a non-null value.

> Inheritance mapping 1 fails for datastore identity.
> ---------------------------------------------------
>
>          Key: JDO-256
>          URL: http://issues.apache.org/jira/browse/JDO-256
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Reporter: Michael Watzek
>     Assignee: Erik Bengtson

>
> Test data has been changed for all inheritance mappings from companyNoRelationships to
companyAllRelationships. Since this change, inheritance mapping 1 for datastore identity fails
throwing a JDOObjectNotFoundException:
> 1) test(org.apache.jdo.tck.mapping.CompletenessTest)javax.jdo.JDOObjectNotFoundException:
No such database row
> FailedObject:9[OID]org.apache.jdo.tck.pc.company.DentalInsurance
> 	at org.jpox.store.rdbms.request.FetchRequest.execute(FetchRequest.java:185)
> 	at org.jpox.store.rdbms.table.ClassTable.fetch(ClassTable.java:2094)
> 	at org.jpox.store.StoreManager.fetch(StoreManager.java:754)
> 	at org.jpox.state.StateManagerImpl.loadDFGFields(StateManagerImpl.java:1549)
> 	at org.jpox.state.StateManagerImpl.isLoaded(StateManagerImpl.java:1749)
> 	at org.apache.jdo.tck.pc.company.Insurance.jdoGetinsid(Insurance.java)
> 	at org.apache.jdo.tck.pc.company.Insurance.getInsid(Insurance.java:67)
> 	at org.apache.jdo.tck.pc.company.Insurance.deepCompareFields(Insurance.java:144)
> 	at org.apache.jdo.tck.pc.company.DentalInsurance.deepCompareFields(DentalInsurance.java:112)
> 	at org.apache.jdo.tck.util.EqualityHelper.deepEquals(EqualityHelper.java:387)
> 	at org.apache.jdo.tck.pc.company.Employee.deepCompareFields(Employee.java:447)
> 	at org.apache.jdo.tck.pc.company.PartTimeEmployee.deepCompareFields(PartTimeEmployee.java:119)
> 	at org.apache.jdo.tck.util.EqualityHelper.deepEquals(EqualityHelper.java:387)
> 	at org.apache.jdo.tck.util.EqualityHelper.deepEquals(EqualityHelper.java:483)
> 	at org.apache.jdo.tck.pc.company.Department.deepCompareFields(Department.java:245)
> 	at org.apache.jdo.tck.util.EqualityHelper.deepEquals(EqualityHelper.java:387)
> 	at org.apache.jdo.tck.util.EqualityHelper.deepEquals(EqualityHelper.java:483)
> 	at org.apache.jdo.tck.pc.company.Company.deepCompareFields(Company.java:220)
> 	at org.apache.jdo.tck.util.EqualityHelper.deepEquals(EqualityHelper.java:387)
> 	at org.apache.jdo.tck.pc.company.Department.deepCompareFields(Department.java:245)
> 	at org.apache.jdo.tck.util.EqualityHelper.deepEquals(EqualityHelper.java:387)
> 	at org.apache.jdo.tck.util.EqualityHelper.deepEquals(EqualityHelper.java:483)
> 	at org.apache.jdo.tck.pc.company.Company.deepCompareFields(Company.java:220)
> 	at org.apache.jdo.tck.mapping.CompletenessTest.test(CompletenessTest.java:126)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:204)
> 	at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:120)
> 	at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:95)

-- 
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


Mime
View raw message