This content has been marked as final.
Show 3 replies
-
1. Re: CRUD with entity relationship
sachsoft Aug 28, 2008 7:09 AM (in response to sachsoft)
Sachin Sawashe wrote on Aug 27, 2008 19:37:
Thanks for providing seam-gen and the facility to create CRUD .
Its really fast and simple. Also this feature is great for ‘Master Tables’ for almost all projects.
I would like to know if the CRUD entities support relationhip..Let me explain it in more details
I have got 2 entities
Book (id,name,publisherId)
Publisher(publisherId,name)
Relation – One book can have one publisher. A publisher can publish many books.
When I created the tables in MySQL and also created Model Classes for these Entities with a @ManyToOne relation for publisherId in the Books Model class
I used ‘Generate Seam Entities’ with ’Use existing entities’ as Genetation mode.
This gave me all the screens .But the Add Books screen had a separate tab to select the Publisher.
Instead I would prefer to have a list of Publishers in a select/dropdown box .. is there any simple trick to achieve this.Click HELP for text formatting instructions. Then edit this text and check the preview.
-
2. Re: CRUD with entity relationship
sachsoft Aug 29, 2008 7:17 AM (in response to sachsoft)Any Help ???
-
3. Re: CRUD with entity relationship
atao Aug 30, 2008 10:13 AM (in response to sachsoft)Instead I would prefer to have a list of Publishers in a select/dropdown box .. is there any simple trick to achieve this.
No.
Seam-gen generates
generic
files for you. You have to manually change them for any of your own wishes.There are some projects which try to go beyond seam-gen:
http://www.seamframework.org/Community/FormBuilderSeamgenExtensionAnnouncement
http://wiki.jboss.org/wiki/DynamicCrud
See also http://taylor.sourceforge.net/index.php/News
To get an idea of what seam-gen doesn't deal with, you can check jira issues.