Ok, I tried and I am getting error about no type specified
NHibernate.MappingException: No type name specified
at NHibernate.Mapping.SimpleValue.get_Type()
at NHibernate.Cfg.XmlHbmBinding.CollectionBinder.BindMapSecondPass
(XmlNode node, Map model, IDictionary`2 persistentClasses)
at
NHibernate.Cfg.XmlHbmBinding.CollectionBinder.<>c__DisplayClass4.<AddMapSecondPass>b__3
(IDictionary`2 persistentClasses)
at NHibernate.Cfg.Configuration.SecondPassCompile()
at NHibernate.Cfg.Configuration.BuildSessionFactory()
here is how I tried to map it in Client
<map name="AccountTypeHistory" access="nosetter.camelcase-underscore"
table="ClientAcctType">
<key column="ClientId"/>
<index column="EffDt"/>
<one-to-many
class="SR.Domain.Client.Values.ClientAccountTypeHistoryItem,
SR.Domain"/>
</map>
here is the history item mapping
<class name="SR.Domain.Client.Values.ClientAccountTypeHistoryItem,
SR.Domain"
table="ClientAcctType" lazy="true" >
<composite-id
class="SR.Domain.Client.Values.ClientAccountTypeCompositeID,
SR.Domain"
name="Id" access="nosetter.lowercase-underscore">
<key-property name="ClientID" column="ClientId" type="Int32"/>
<key-property name="EffectiveDate" column="EffDt"
type="DateTime" />
</composite-id>
</class>
> Have you tried using a <map>? With <key column="ClientId"/> and <index
> column="EffDt"/>.
>
> /Oskar
>
> 2009/3/17 epitka <
exptrade2...@yahoo.com>