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,

        Activity

        Hide
        faywang Fay Wang added a comment -

        Test cases will be provided later.

        Show
        faywang Fay Wang added a comment - Test cases will be provided later.
        Hide
        to_rowe Thomas O Rowe added a comment -

        Successfully verified on RHEL 5.1 AMD64 w/ IBM SE6.

        Show
        to_rowe Thomas O Rowe added a comment - Successfully verified on RHEL 5.1 AMD64 w/ IBM SE6.

          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:

              Development