Aug 8th, 2009, 06:32 PM
How to create a controller/jsp for a one to many relationship?
First off, great work on a fantastic framework! I started off my latest project with spring roo. My data model has a a one-to-many relationship.
Subscriber --> Addresses
When I use the below command it generated a page which creates the entity from a many-to-one perspective i.e I can assign a user to an address. I want to create multiple addresses in the same page as I create the user. How do I achieve this? Should I completly customize the behavior or is there some way I can have roo generate this controller & page for me?
Here is my controller: new controller automatic ~.web.SubscriberController -formBackingObject ~.domain.Subscriber