db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Russell (JIRA)" <j...@apache.org>
Subject [jira] Created: (JDO-497) Add behavior for relationship updates to specification and tck tests
Date Mon, 11 Jun 2007 18:49:26 GMT
Add behavior for relationship updates to specification and tck tests
--------------------------------------------------------------------

                 Key: JDO-497
                 URL: https://issues.apache.org/jira/browse/JDO-497
             Project: JDO
          Issue Type: New Feature
          Components: tck2, tck2-legacy
    Affects Versions: JDO 2 final
            Reporter: Craig Russell
             Fix For: JDO 2 maintenance release 1


Add relationship tests

One-many (Department-Employee)
Create Employee; add to Department.employees
Remove Employee from Department.employees
Add existing Employee to Department.employees where Employee.department == null
Add existing Employee to Department.employees where Employee.department != null

Many-one (Employee-Department)
Create Employee; set Employee.department
Change Employee.department from null to existing Department
Change Employee.department from one Department to another
Set Employee.department to null
Delete Employee with Employee.department != null

One-Zero (Employee-Insurance)
Set Employee.insurance to null
Set Employee.insurance to created Insurance
Set Employee.insurance to existing Insurance

Zero-One (Insurance-Employee)
Set Insurance.employee to null
Set Insurance.employee to different Employee

Many-Many (Employee-Project)
Add created Project to Employee.projects
Remove Project from Employee.projects


-- 
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