PDA

View Full Version : roo ManyToMany



djmurf
Aug 6th, 2009, 11:15 AM
Just curious if roo supports building a ManyToMany relationship with the roo shell.

I've been able to build a OneToMany, a ManyToOne, etc, but the only way I've found of implementing a ManyToMany is to hand modify the Entity Classes, and then udpate the list.jsp and edit.jsp files to correctly allow their update/add.

Thanks

Murf

Stefan Schmidt
Aug 11th, 2009, 01:20 AM
@djmurf

The m:n relationship can be replicated with the existing relationship support in Roo. Please find the relevant discussion here:

http://forum.springsource.org/showthread.php?t=74203

We have yet to see a compelling reason to support m:n relationships via the @ManyToMany annotation (it would also be somewhat awkward to support in the generated UI).

-Stefan

djmurf
Aug 11th, 2009, 01:21 PM
Thank you much, will check out the posting!