Apache JDO Project - [jira] Commented: (JDO-426) NullCollectionsAndIsEmpty does not

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > September 2006 > [jira] Commented: (JDO-426) NullCollectionsAndIsEmpty does not





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Commented: (JDO-426) NullCollectionsAndIsEmpty does not
Abe White (JIRA)

2006-09-16, 1:12 pm

[ http://issues.apache.org/jira/brows...action_12434815 ]

Abe White commented on JDO-426:
-------------------------------

I didn't mean to set the priority of this issue to "Major". Please consider a "Minor" issue.

> NullCollectionsAndIsEmpty does not unset mapped side of relation
> ----------------------------------------------------------------
>
> Key: JDO-426
> URL: http://issues.apache.org/jira/browse/JDO-426
> Project: JDO
> Issue Type: Bug
> Components: tck20
> Affects Versions: JDO 2 final
> Reporter: Abe White
>
> org.apache.jdo.tck.query.jdoql.NullCollectionsAndIsEmpty uses its localSetUp() method to null the projects of an Employee. However, the Employee.projects field uses mapped-by in its mapping, and per section 15.3 of the JDO 2 spec, that means changes to

it aren't reflected in the datastore. To fix, add the following lines after retrieving "emp1" but before nulling its projects in localSetUp():
> for (Iterator itr = emp1.getProjects().iterator(); itr.hasNext();)
> ((Project) itr.next()).removeMember(emp1);


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com