[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-3903) CRUD is conversational problem, but seam-gen apps are not conversational enough
Francisco Jose Peredo Noguez (JIRA)
jira-events at lists.jboss.org
Mon Jan 19 17:18:04 EST 2009
[ https://jira.jboss.org/jira/browse/JBSEAM-3903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Francisco Jose Peredo Noguez updated JBSEAM-3903:
-------------------------------------------------
Summary: CRUD is conversational problem, but seam-gen apps are not conversational enough (was: CRUD is conversational, but seam-gen apps are not conversational enough)
> CRUD is conversational problem, but seam-gen apps are not conversational enough
> -------------------------------------------------------------------------------
>
> Key: JBSEAM-3903
> URL: https://jira.jboss.org/jira/browse/JBSEAM-3903
> Project: Seam
> Issue Type: Feature Request
> Affects Versions: 2.1.0.SP1
> Reporter: Francisco Jose Peredo Noguez
>
> Lets say you have 2 classes:
> class Parent{
> private Long id; private Integer version; private String name;
> private Set <Child> children;
> }
> and
> class Child{
> private Long id;private Integer version; private String name;
> private Parent parent;
> }
> with a typical one to many / many to one relationship (Parent.children.Child/Child.parent.Parent)
> So you want them to become @Entities and add the required @Annotations. Then you run seam-gen on them, and run you generated application:
> 1. You click the Parent List menu option.
> 2. You are presented with the page ParentList.seam that allows you search parents, or to create a new one.
> 3. You click the Create parent button.
> 4. You write a name for the parent: "Peter".
> 5. You click "Save".
> 6. You are presented with the page Parent.seam, that displays you newly persisted entity in a "read-only way"
> 7. You click "Done"
> so far so good... but then
> 1. You click the Child List menu option.
> 2. You are presented with the page ChildList.seam that allows you search children, or to create a new one
> 3. You click the Create child button.
> 4. You are presented with the page ChildEdit.seam.
> 5. You write a name for your new Child entity: "John"
> 6. You decide that you want connect this new Child entity with a parent entity, and then you click "Select parent".
> 7. You are presented again with ParentList.seam that allows you to "select" a parent.
> 8. So, you select "Peter" by clicking in the "Select" link
> 9. And you return to ChildEdit.seam, but the value for the name property of the Child is now LOST.
> I think seam-gen should be able to do this correctly (without losing the values in ChildEdit.seam).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list