[
http://issues.apache.org/jira/browse/JDO-285?page=comments#action_12368136 ]
Michael Watzek commented on JDO-285:
------------------------------------
Hi Andy,
the exceptions above can be reproduced executing the code below in conjunction
with mapping 4. The code makes persistent a full time employee and iterates the
person extent using subclasses equals true. Note, that the exceptions can be
reproduces on a clean database with only one full time employee. The exceptions
are thrown from call Iterator.next() in line "collection.iterator().next();".
Regards,
Michael
PersistenceManager pm = getPM();
FullTimeEmployee emp = new FullTimeEmployee(1, "first", "last",
"middle",
new Date(), new Date(), 1000.0);
pm.currentTransaction().begin();
pm.makePersistent(emp);
pm.currentTransaction().commit();
pm.currentTransaction().begin();
Extent extent = pm.getExtent(Person.class, true);
Query query = pm.newQuery();
query.setClass(Person.class);
query.setCandidates(extent);
Collection collection = (Collection) query.execute();
collection.iterator().next();
pm.currentTransaction().commit();
> Fix list of teardown classes in company model reader.
> -----------------------------------------------------
>
> Key: JDO-285
> URL: http://issues.apache.org/jira/browse/JDO-285
> Project: JDO
> Type: Bug
> Components: tck20
> Versions: JDO 2 beta
> Reporter: Michael Watzek
> Assignee: Michael Watzek
> Fix For: JDO 2 final
> Attachments: JDO-285.patch
>
> The list of teardown classes in company model should not contain subclasses
> of inheritance hierarchies insurance and person. In t-conference, Jan 27, we
> agreed that the correct order is: Insurance.class, Person.class,
> Department.class, Company.class, Project.class.
--
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