[forge-issues] [JBoss JIRA] (FORGE-996) Incorrect deletion logic is generation for OneToOne relationships and inverse sides of ManyToMany relationships

Vineet Reynolds (JIRA) jira-events at lists.jboss.org
Sat Jul 6 01:43:20 EDT 2013


     [ https://issues.jboss.org/browse/FORGE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vineet Reynolds closed FORGE-996.
---------------------------------

    Fix Version/s: 1.3.3.Final
       Resolution: Done


Pushed upstream: https://github.com/forge/core/commit/8c0103dc1748c45b947ed509faaaaa4fc93b270b
                
> Incorrect deletion logic is generation for OneToOne relationships and inverse sides of ManyToMany relationships
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: FORGE-996
>                 URL: https://issues.jboss.org/browse/FORGE-996
>             Project: Forge
>          Issue Type: Bug
>          Components: Scaffold
>    Affects Versions: 1.3.2.Final
>            Reporter: Vineet Reynolds
>            Assignee: Vineet Reynolds
>             Fix For: 1.3.3.Final
>
>
> Given two classes {{Foo}} and {{Bar}} the following deletion code is generated for bidirectional OneToOne relationship between them:
> {code:title=FooBean.java|borderStyle=solid}
> Foo foo = deletableEntity.getFoo();deletableEntity.setBar(null);this.entityManager.merge(foo);
> {code}
> {code:title=BarBean.java|borderStyle=solid}
> Example bar = deletableEntity.getBar();deletableEntity.setFoo(null);this.entityManager.merge(bar);
> {code}
> This is incorrect - the setters on the {{deletableEntity}} should not be invoked.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the forge-issues mailing list