Hi List,
i have to following mappings:
public EmployeeMapping(): BaseClassMap<Employee>
{
        Id(x => x.Id);
        References(x => x.Salutation).Cascade.All().Not.LazyLoad();
.......
        HasMany<EmployeeHomeAddress>(x => x.Addresses)
                        .KeyColumn("Foreignkey")
        ????????                Inverse()
                        NotFound.Ignore()
                                                                                
                   .Cascade.AllDeleteOrphan()
                        .Not.LazyLoad();
                }
 public BaseAdressMapping(): ClassMap<BaseAddress>
   {
            Table("InheritedAddresses");
            Id(x => x.Id);
          .........
            DiscriminateSubClassesOnColumn<string>("Type") ;
}

 public class
EmployeeHomeAddressMapping :SubclassMap<EmployeeHomeAddress>
    {
        public EmployeeHomeAddressMapping()
        {
// This mappings is empty
        }
    }

This mapping is only working if i didn't set Inverse() in the
Employeemapping.
Any idea's about this strange behavior???

Thanks in advance
Peter

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to