Vineet Reynolds created FORGE-996:
-------------------------------------
Summary: 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
Reporter: Vineet Reynolds
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