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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M2
    • Fix Version/s: 2.0.0-M2
    • Component/s: kernel
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: