| Michelle Caisse (JIRA) 2007-02-15, 1:11 am |
|
[ https://issues.apache.org/jira/brow...ls:all-tabpanel ]
Michelle Caisse updated JDO-457:
--------------------------------
Attachment: jdo-457.diff
The attached patch implements a test for compound identity. It uses a new persistence capable package, order, with two classes, Order and OrderItem. The test is a new version of the CompletenessTest, CompletenessTestOrder.
The test fails in the RI. It appears that the two Item instances that are defined in the test data are not persisted to the database.
> Add new tests for compound identity.
> ------------------------------------
>
> Key: JDO-457
> URL: https://issues.apache.org/jira/browse/JDO-457
> Project: JDO
> Issue Type: Test
> Components: tck2, tck2-legacy
> Affects Versions: JDO 2 final
> Reporter: Craig Russell
> Assigned To: Michelle Caisse
> Fix For: JDO 2 maintenance release 1
>
> Attachments: jdo-457.diff
>
>
> In 5.4.1, Compound Identity should be updated to reflect that for key fields of reference types, the type of the key field is the reference type in the class but the oid of the reference type in the oid class.
> We need a test for persistent classes in which the key of one class consists of a reference to another class plus another field. For example, LineItem contains a reference to Order plus a LineNumber.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|