Okay, I have managed to reproduce this bug in a small test project. Needed to post an attachment so have raised an issue: http://code.google.com/p/fluent-nhibernate/issues/detail?id=173
On Mar 26, 7:00 pm, James <[email protected]> wrote: > I've done a bit more research and perhaps this particular test isn't > demonstrating the failure I'm experiencing. In my actual project > custom type conventions are being ignored in subclasses and FNH is > trying to map them as ManyToOne relationships instead of abiding by > the type convention. > > On Mar 26, 3:33 pm, James <[email protected]> wrote: > > > Mapping fails if a custom-typed property is in a subclass of another > > mapped type. > > > For example, introducing this class: > > > public class SubClassWithUserType : ClassWithUserType > > { > > public Custom CustomTwo { get; set; } > > } > > > into TestFixtures.cs causes a number of the existing tests to fail. > > > Index: trunk/src/FluentNHibernate.Testing/AutoMap/TestFixtures.cs > > =================================================================== > > --- trunk/src/FluentNHibernate.Testing/AutoMap/TestFixtures.cs > > (revision 432) > > +++ trunk/src/FluentNHibernate.Testing/AutoMap/TestFixtures.cs > > (working copy) > > @@ -109,6 +109,11 @@ > > public Custom Custom { get; set; } > > } > > > + public class SubClassWithUserType : ClassWithUserType > > + { > > + public Custom CustomTwo { get; set; } > > + } > > + > > public class ClassWithCompositeUserType > > { > > public int Id { get; set; } > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" 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/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---
