Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1053

Updating an entity by setting an embeddable to it does not work properly if the embeddable has a cascade delete relationship with another entity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M2
    • 2.0.0-M2
    • kernel
    • None

    Description

      Updating an entity (EntityA) by setting a new embeddable to it when the embeddable has a relationship with another entity (EntityB) with cascade delete does not work:

      (1) the old entityB referenced by the old embeddable in EntityA will be deleted.
      (2) if the EntityB also has cascade delete relation with EntityA, the EntityA will also be deleted,

      Attachments

        1. OPENJPA-1053.patch
          4 kB
          Fay Wang

        Activity

          People

            faywang Fay Wang
            faywang Fay Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: