db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michelle Caisse (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JDO-457) Add new tests for compound identity.
Date Thu, 15 Feb 2007 03:22:05 GMT

     [ https://issues.apache.org/jira/browse/JDO-457?page=com.atlassian.jira.plugin.system.issuetabpanels: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.


Mime
View raw message