Issue Details (XML | Word | Printable)

Key: JDO-193
Type: Test Test
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Michelle Caisse
Reporter: Craig Russell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

Need new test cases for Map and List where there is no join table; the key is a field of the value type or the value is a field of the key type

Created: 26/Oct/05 09:31 PM   Updated: 05/Oct/06 09:08 PM
Return to search
Component/s: tck2
Affects Version/s: JDO 2 final
Fix Version/s: JDO 2 maintenance release 1

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works JDO-193.patch 2006-09-08 04:08 AM Michelle Caisse 248 kB
Environment: TCK

Resolution Date: 05/Oct/06 09:08 PM


 Description  « Hide
JDO allows mapping of Maps where there is no join table. The metadata for the Employee/Department mapping uses the mapped-by attribute of the map element:

<class name="Department">
<field name="employees" mapped-by="dept">
<key mapped-by="id"/>
</field>
</class>

<class name="Employee">
<field name="id" column="ID"/>
<field name="dept" column="DEPT"/>
</class>

Another mapping would have the key of the Map be the Employee and the value be the id.

We should probably define a separate package for this mapping, as there is some confusion in using parts of the Company model where we have changed a significant part of the model.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Craig Russell made changes - 04/Feb/06 04:27 AM
Field Original Value New Value
Affects Version/s JDO 2 beta [ 12310683 ]
Fix Version/s JDO 2 rc1 [ 12310771 ]
Craig Russell made changes - 25/Feb/06 07:41 AM
Fix Version/s JDO 2 final [ 12310830 ]
Fix Version/s JDO 2 rc1 [ 12310771 ]
Craig Russell made changes - 18/Mar/06 12:34 AM
Fix Version/s JDO 2 final [ 12310830 ]
Craig Russell made changes - 16/Jun/06 04:21 AM
Affects Version/s JDO 2 final [ 12310830 ]
Assignee Michelle Caisse [ mcaisse ]
Affects Version/s JDO 2 beta [ 12310683 ]
Fix Version/s JDO 2 maintenance release 1 [ 12310923 ]
Craig Russell made changes - 11/Aug/06 04:52 PM
Summary Need new test cases for Map where there is no join table; the key is a field of the value type or the value is a field of the key type Need new test cases for Map and List where there is no join table; the key is a field of the value type or the value is a field of the key type
Michelle Caisse made changes - 08/Sep/06 04:08 AM
Attachment JDO-193.patch [ 12340438 ]
Michelle Caisse made changes - 08/Sep/06 08:34 PM
Status Open [ 1 ] In Progress [ 3 ]
Michelle Caisse made changes - 05/Oct/06 09:08 PM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]