[
https://issues.jboss.org/browse/FORGE-996?page=com.atlassian.jira.plugin....
]
Vineet Reynolds updated FORGE-996:
----------------------------------
Assignee: Vineet Reynolds
Affects Version/s: 1.3.2.Final
Component/s: Scaffold
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
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