You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Fay Wang (JIRA)" <ji...@apache.org> on 2009/04/29 06:57:30 UTC

[jira] Created: (OPENJPA-1053) Updating an entity by setting an embeddable to it does not work properly if the embeddable has a relationship with another entity with cascade delete

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

                 Key: OPENJPA-1053
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1053
             Project: OpenJPA
          Issue Type: Bug
          Components: kernel
    Affects Versions: 2.0.0
            Reporter: Fay Wang
            Assignee: Fay Wang


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,

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (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

Posted by "Fay Wang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fay Wang resolved OPENJPA-1053.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

> Updating an entity by setting an embeddable to it does not work properly if the embeddable has a cascade delete relationship with another entity
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1053
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1053
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 2.0.0
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>             Fix For: 2.0.0
>
>         Attachments: OPENJPA-1053.patch
>
>
> 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,

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (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

Posted by "Fay Wang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fay Wang updated OPENJPA-1053:
------------------------------

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

> Updating an entity by setting an embeddable to it does not work properly if the embeddable has a cascade delete relationship with another entity
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1053
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1053
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 2.0.0
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>             Fix For: 2.0.0
>
>         Attachments: OPENJPA-1053.patch
>
>
> 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,

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (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

Posted by "Thomas O Rowe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713120#action_12713120 ] 

Thomas O Rowe commented on OPENJPA-1053:
----------------------------------------

Successfully verified on RHEL 5.1 AMD64 w/ IBM SE6. 

> Updating an entity by setting an embeddable to it does not work properly if the embeddable has a cascade delete relationship with another entity
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1053
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1053
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 2.0.0
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>             Fix For: 2.0.0
>
>         Attachments: OPENJPA-1053.patch
>
>
> 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,

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OPENJPA-1053) Updating an entity by setting an embeddable to it does not work properly if the embeddable has a relationship with another entity with cascade delete

Posted by "Fay Wang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fay Wang updated OPENJPA-1053:
------------------------------

    Attachment: OPENJPA-1053.patch

Test cases will be provided later.

> Updating an entity by setting an embeddable to it does not work properly if the embeddable has a relationship with another entity with cascade delete 
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1053
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1053
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 2.0.0
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>         Attachments: OPENJPA-1053.patch
>
>
> 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,

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.