02-15-07 06: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 p
ersistence capable package, order, with two classes, Order and OrderItem. Th
e test is a new version of the CompletenessTest, CompletenessTestOrder.
The test fails in the RI. It appears that the two Item instances that are d
efined 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 fiel
ds of reference types, the type of the key field is the reference type in th
e 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 refe
rence 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.
[ Post a follow-up to this message ]
|