]
Vineet Reynolds closed FORGE-996.
---------------------------------
Fix Version/s: 1.3.3.Final
Resolution: Done
Pushed upstream:
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: