[Lift] Re: Relationships -- just a quick ORM question

2009-05-27 Thread Timothy Perrett
What persistance mech are you using Mapper or JPA? The solution differs depending on your choice. Cheers, Tim On May 27, 10:38 pm, Joe Wass j...@folktunefinder.com wrote: Is there an idiomatic way to represent the following? I've done it many times before manually in PHP, but never with ORM.

[Lift] Re: Relationships -- just a quick ORM question

2009-05-27 Thread Joe Wass
Mapper (by default) On May 27, 11:03 pm, Timothy Perrett timo...@getintheloop.eu wrote: What persistance mech are you using Mapper or JPA? The solution differs depending on your choice. Cheers, Tim On May 27, 10:38 pm, Joe Wass j...@folktunefinder.com wrote: Is there an idiomatic way to

[Lift] Re: Relationships -- just a quick ORM question

2009-05-27 Thread Timothy Perrett
So your saying you want a one to many join: 1 school has many subjects? You can of course do this with mapper, by default mapper is not a black box full of magic like, say, Ruby's active record, so you need to fit some of the convenience method plumbing yourself if you need it. Assuming you

[Lift] Re: Relationships -- just a quick ORM question

2009-05-27 Thread Joe Wass
Yes, that was the missing link (I think), thank you. I did do a fair amount of RoR two years ago, so I may have forgotten it all but the expectation of magic is still there! Joe On May 27, 11:28 pm, Timothy Perrett timo...@getintheloop.eu wrote: So your saying you want a one to many join: