Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
JDO 2 final (2.0)
-
None
Description
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
Delete Department
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
Delete Employee
Zero-One (Insurance-Employee)
Set Insurance.employee to null
Set Insurance.employee to different Employee
Delete Insurance
Many-Many (Employee-Project)
Add created Project to Employee.projects
Remove Project from Employee.projects
Delete Employee