2009/6/5 ThoHa <[email protected]> > <bag name="PersonalCourts" table="Court" lazy="true" > where="class = 'PT.Bellum.Common.DataTypes.PersonalCourt'" > inverse="true"> > <key column="ParentTown" /> > <one-to-many class="PT.Bellum.Common.DataTypes.PersonalCourt" /> > </bag> > > This works, but it will fail as soon as PersonalCourt will be > inherited by other classes. >
Sure it fail if you don't change the mapping and if you don't change the mapping you can't persist the new class inheriting from PersonalCourt. Btw if you are using a IList<T> in NH2.1.0 the problem is solved by NH. The no option "where" clause was a breaking change between NH1.0.4 and NH1.2.0 in NH2.1.0 the breaking change was removed if you are using a generic list. -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
