[
https://issues.jboss.org/browse/FORGE-916?page=com.atlassian.jira.plugin....
]
Arun Kumar Kandakatla edited comment on FORGE-916 at 7/7/13 2:22 PM:
---------------------------------------------------------------------
Hi,
I am unable to delete the records in bidirectional relationship.
Simulation Steps. First create a web-project(name: sample)
1. Create entity User.java with firstName and lastName as string fields.
2. Create entity Address.java with addressType, street, city, State and zip as string
fields.
3. Create bidirectional oneToMany relationship between User and Address entities.
4. Generate the code using Scaffold from-entity.
5. Build the project and deploy in jboss AS 7.
6. Open the application in browser.
7. Create the user with multiple Addresses and save.
8. Now try to edit the user and add additional Address record using + command link. Dont
click on save.
9. Try to remove the newly added record. record never get deleted.
10. But able to delete the old address records.
was (Author: k.arun406):
Hi,
I am unable to delete the records in bidirectional relationship.
Simulation Steps.
1. Create entity User.java with firstName and lastName as string fields.
2. Create entity Address.java with addressType, street, city, State and zip as string
fields.
3. Create bidirectional oneToMany relationship between User and Address entities.
4. Generate the code using Scaffold from-entity.
5. Build the project and deploy in jboss AS 7.
6. Open the application in browser.
7. Create the user with multiple Addresses and save.
8. Now try to edit the user and add additional Address record using + command link. Dont
click on save.
9. Try to remove the newly added record. record never get deleted.
10. But able to delete the old address records.
Faces scaffold does not handle deletion of entities with
bidirectional relationships
------------------------------------------------------------------------------------
Key: FORGE-916
URL:
https://issues.jboss.org/browse/FORGE-916
Project: Forge
Issue Type: Bug
Components: Scaffold
Affects Versions: 1.0.5.Final, 1.3.0.Final
Reporter: Vineet Reynolds
Assignee: Vineet Reynolds
Fix For: 1.3.2.Final
The generated Faces scaffold contains code to handle deletion. But this works only for
some scenarios.
For bidirectional relationships, the generated code in the View Beans should perform
deletion on both sides of the relationship. Currently, this is performed on only one side
- the side corresponding to the view from where deletion was triggered.
--
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