Uploaded image for project: 'OJB'
  1. OJB
  2. OJB-8

Problem when using cascading delete on empty 1:1 reference

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.x CVS
    • 1.0.x CVS
    • ODMG-API
    • None
    • all

    Description

      When Shop has a 1:1 reference and cascading delete for all references will be enabled, an exception occur when the 1:1 reference is empty.

      tx.begin();
      // now we enable cascading delete
      tx.setCascadingDelete(Shop.class, true);
      database.deletePersistent(s);
      tx.commit();

      Attachments

        Activity

          People

            arminw Armin Waibel
            arminw Armin Waibel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: