Ok, I am past that problem, i mapped it like this
Code:
<component name="lineItems2" class="Intelliun.Collections.EntityBag`1[[Intelliun.Core.Entities.billing.LineItem,Intelliun.Core]], Intelliun.Common">
<bag name="lineItems" inverse="true" lazy="true" cascade="all" >
<key column="INVOICE_VEOID"/>
<one-to-many class="LineItem"/>
</bag>
but now I have this message
InnerException: NHibernate.PropertyNotFoundException
Message="Could not find a getter for property 'lineItems' in class 'Intelliun.Collections.EntityBag`1[Intelliun.Core.Entities.billing.LineItem]'"
Source="NHibernate"
StackTrace:
at NHibernate.Property.BasicPropertyAccessor.GetGetter(Type type, String propertyName)
at NHibernate.Util.ReflectHelper.GetGetter(Type theClass, String propertyName, String propertyAccessorName)
at NHibernate.Util.ReflectHelper.ReflectedPropertyClass(Type theClass, String name, String access)
at NHibernate.Cfg.HbmBinder.GetPropertyType(XmlNode definingNode, Mappings mappings, Type containingType, String propertyName)
at NHibernate.Cfg.HbmBinder.BindCollection(XmlNode node, Collection model, String className, String path, Type containingType, Mappings mappings)
at NHibernate.Cfg.HbmBinder.CollectionType.CollectionTypeBag.Create(XmlNode node, String prefix, String path, PersistentClass owner, Type containingType, Mappings mappings)
at NHibernate.Cfg.HbmBinder.BindComponent(XmlNode node, Component model, Type reflectedClass, String className, String path, Boolean isNullable, Mappings mappings)
at NHibernate.Cfg.HbmBinder.PropertiesFromXML(XmlNode node, PersistentClass model, Mappings mappings)
at NHibernate.Cfg.HbmBinder.BindRootClass(XmlNode node, RootClass model, Mappings mappings)
at NHibernate.Cfg.HbmBinder.BindRoot(XmlDocument doc, Mappings mappings)
at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)
InnerException: