
|
If you were logged in you would be able to see more operations.
|
|
|
|
File Attachments:
|
|
|
Environment:
|
TCK
|
|
| Resolution Date: |
05/Oct/06 09:08 PM
|
|
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.
|
|
Description
|
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. |
Show » |
| No work has yet been logged on this issue.
|
|