Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-497

Add behavior for relationship updates to specification and tck tests

    XMLWordPrintableJSON

Details

    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

      Attachments

        Activity

          People

            mcaisse Michelle Caisse
            clr Craig L Russell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: