hmm maybe:
where Gender='laddie' / where Gender='lassie' On Thu, Mar 26, 2009 at 5:09 PM, Joao <[email protected]> wrote: > > > Hi, I'm trying to map 2 collections of the same entity, but when I > load the data from the database, both collections have the same > entities, because they map the same key column... > > Here is a sample code part similar to mine, where a "School" has 2 > collections of "Students", the Boys and the Girls collections: > > ... > <bag name="Boys" generic="true" table="`tblStudents`" inverse="true" > cascade="all-delete-orphan"> > <key column ="`IdSchool`"></key> > <one-to-many class ="Eg.Student,Eg" /> > </bag> > > <bag name="Girls" generic="true" table="`tblStudents`" inverse="true" > cascade="all-delete-orphan"> > <key column ="`IdSchool`"></key> > <one-to-many class ="Eg.Student,Eg" /> > </bag> > ... > > How can I map this collections correctly? > > > > -- Ken Egozi. http://www.kenegozi.com/blog http://www.delver.com http://www.musicglue.com http://www.castleproject.org http://www.gotfriends.co.il --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
