History: I had a class User and class Organization: User. I did not use any mappings for these classes, let FNH do the mapping automatically. Then i added
public class OrganizationMap : IAutoMappingOverride<Organization>
{
public void Override(AutoMap<Organization> mapping)
{
}
}
Please note that there are no overrides. Therefore, I did not expect any changes in the behavior of FNH. But I got this (actually when exporting the schema):
NHibernate.MappingException: (XmlDocument) (2,4): XML error checking: The 'class' element in namespace 'urn: nhibernate-mapping-2.2' has incomplete content. List of expected items: 'meta, subquery, cache, sync, comment, tuplizer, id, composite-id' in the namespace. 'Urns: NHibernate-mapping-2,2'
Orders.Core.Organization.hbm.xml :
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-access="">
<class name="Orders.Core.Organization, Orders.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" table="Organizations" xmlns="urn:nhibernate-mapping-2.2" />
</hibernate-mapping>
, , User.hbm, - :
public class UserMap : IAutoMappingOverride<User>
{
public void Override(AutoMap<User> mapping)
{
mapping.JoinedSubClass<Organization>("ColumnId", m => {...}
);
}
}
... , , 5 Override.
?