<properties> not supported (btw it is only a way to group some properties)

On Mon, Aug 16, 2010 at 4:58 AM, Adeel <[email protected]> wrote:

> I can't get it to work.
> I have implemented it as follows:
>
> The parent mapping:
>
>      <many-to-one name="DefaultProduct" class="WaardeopbouwProduct"
> property-ref="defaultVerzekeraarDefaultProduct">
>        <column name="DefaultVerzekeraar"/>
>        <column name="DefaultProduct"/>
>      </many-to-one>
>
> The child mapping:
>
>      <properties name="defaultVerzekeraarDefaultProduct">
>        <property name="Maatschappij" column="MaatschappijID"
> insert="false" update="false"/>
>        <property name="TasCode" column="TasCode" insert="false"
> update="false"/>
>      </properties>
>
> When I run this, I get an error : {"Could not compile the mapping
> document: TBS.BusinessLayer.Mapping.WaardeopbouwProduct.hbm.xml"}
> (Which is the child mapping document)
> The innerexception is: Unable to cast object of type
> NHibernate.Cfg.MappingSchema.HbmProperties to type
> NHibernate.Cfg.MappingSchema.IEntityPropertyMapping.
>
> The stacktrace is as follows:
>
> "   at System.Linq.Enumerable.<CastIterator>d__aa`1.MoveNext()\r\n
> at NHibernate.Cfg.XmlHbmBinding.PropertiesBinder.Bind(IEnumerable`1
> properties, Table table, IDictionary`2 inheritedMetas, Action`1
> modifier, Action`1 addToModelAction)\r\n   at
> NHibernate.Cfg.XmlHbmBinding.PropertiesBinder.Bind(IEnumerable`1
> properties, IDictionary`2 inheritedMetas, Action`1 modifier)\r\n   at
> NHibernate.Cfg.XmlHbmBinding.PropertiesBinder.Bind(IEnumerable`1
> properties, IDictionary`2 inheritedMetas)\r\n   at
> NHibernate.Cfg.XmlHbmBinding.RootClassBinder.Bind(HbmClass
> classSchema, IDictionary`2 inheritedMetas)\r\n   at
> NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.AddRootClasses(HbmClass
> rootClass, IDictionary`2 inheritedMetas)\r\n   at
>
> NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.AddEntitiesMappings(HbmMapping
> mappingSchema, IDictionary`2 inheritedMetas)\r\n   at
> NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.Bind(HbmMapping
> mappingSchema)\r\n   at
> NHibernate.Cfg.Configuration.AddDeserializedMapping(HbmMapping
> mappingDocument, String documentFileName)"
>
> Can anyone help, please?!?!?
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>


-- 
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.

Reply via email to