On Wed, Apr 16, 2008 at 2:33 AM, <[EMAIL PROTECTED]> wrote: > Hi, > > First of all, many thanks to Matt and all contributing to this wonderful > project. I week ago I could hardly ride a bike and now I feel like doing web > app wheelies!
Excellent - nice work! > > Is there a quick/easy way to add a simple relation to CRUD functionality in > AppFuse? Having been pampered by appfuse:gen for magically generating CRUD > code from form to db, I was hoping there might be an easy way to extend this > to related objects. > > For example, if I would want the extend the Person type in the tutorial > with a company property, and I would like the values for this property to > come from a separate Company object (ultimately from a separate db table > holding company data) - what steps would you recommend? Is it a good idea to > generate CRUD for Person and Company POJOs and then tweak the code to > connect them? Are there any tutorials/examples on this? The current CRUD functionality does not handle relationships very well. This is mainly because we haven't taken the time to implement it. It should just be a matter of modifying the templates to allow it. In the meantime, I'd suggest generating CRUD and then adding the relationships and UI. You should only need to modify your POJOs and the view. Everything else should be transparent, unless you're using iBATIS. You'll need to modify the SQL statements if you are. Matt > > Thanks, > > Ger-Jan > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
