[JBoss JIRA] (FORGE-916) Faces scaffold does not handle deletion of entities with bidirectional relationships
by Vineet Reynolds (JIRA)
[ https://issues.jboss.org/browse/FORGE-916?page=com.atlassian.jira.plugin.... ]
Vineet Reynolds commented on FORGE-916:
---------------------------------------
[~k.arun406] I'm closing this. Please track FORGE-974 for the issue you're describing.
> 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
12 years, 9 months
[JBoss JIRA] (FORGE-916) Faces scaffold does not handle deletion of entities with bidirectional relationships
by Arun Kumar Kandakatla (JIRA)
[ 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
12 years, 9 months
[JBoss JIRA] (FORGE-916) Faces scaffold does not handle deletion of entities with bidirectional relationships
by Arun Kumar Kandakatla (JIRA)
[ https://issues.jboss.org/browse/FORGE-916?page=com.atlassian.jira.plugin.... ]
Arun Kumar Kandakatla reopened FORGE-916:
-----------------------------------------
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
12 years, 9 months
[JBoss JIRA] (FORGE-997) bean new-bean not working for all types
by Vineet Reynolds (JIRA)
[ https://issues.jboss.org/browse/FORGE-997?page=com.atlassian.jira.plugin.... ]
Vineet Reynolds commented on FORGE-997:
---------------------------------------
Thanks for catching this.
I think it would be appropriate to respond with a more suitable error message here (and for other reserved words). Even if a new bean were to be created, the 'import' keyword would be in the incorrect context, thus rendering the class syntactically invalid. The only suitable way of handling this is to validate the user inputs (and the generated code).
> bean new-bean not working for all types
> ---------------------------------------
>
> Key: FORGE-997
> URL: https://issues.jboss.org/browse/FORGE-997
> Project: Forge
> Issue Type: Bug
> Affects Versions: 1.3.2.Final
> Environment: Eclipse Kepler + Jboss tools 4
> Reporter: Hubert Schumacher
>
> forge command "beans new-bean --type abc.import.cde.ExampleJava" throws exception if type has 'import' in its path. Maybe other magic words as well?!
--
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
12 years, 9 months