Hi
I am receiving an Nhibernate MappingException when I'm trying to map a property of a class which is a collection which will have as an item a class that is ownned by another subject area(context). I wish to load only the foreign key into the class. The Client property is a custom collection that implements IUserCollectionType.
The nHibernate exception is
Error mapping generic collection GrantEd.DomainModel.ProgrammeMgmt.ClientPostingAccount.Clients: expected 1 generic parameters, but the property type has 2.
The two generic parameters are one to identify the type of class the collection contains and the second to identify the type of the key used for the collection.
Thanks
Peter
NHibernate versioin 1.2.0.4000
Mapping documents:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="GrantEd.DomainModel.ProgrammeMgmt.ClientPostingAccount, GrantEd.DomainModel.ProgrammeMgmt" table="ClientPostingAccount">
<id name="id" type="Int32" unsaved-value="null" access="field" >
<column name="ClientPostingAccountId" length="4" sql-type="int" not-null="true" unique="true" index="PK_ClientPostingAccount" />
<generator class="identity" />
</id>
<component name="Created" class="GrantEd.DomainModel.Core.Audit, GrantEd.DomainModel.Core">
<property name="ActionDate" column="CreatedActionDate" type="DateTime" not-null="true"/>
<property name="ActionUser" column="CreatedActionUser" type="String" length="50" not-null="true"/>
</component>
<component name="LastUpdated" class="GrantEd.DomainModel.Core.Audit, GrantEd.DomainModel.Core">
<property name="ActionDate" column="LastUpdatedActionDate" type="DateTime" not-null="true"/>
<property name="ActionUser" column="LastUpdatedActionUser" type="String" length="50" not-null="true"/>
</component>
<property name="Active" type="Boolean">
<column name="Active" length="1" sql-type="bit" not-null="true"/>
</property>
<property name="Timestamp" type="Byte[]">
<column name="`Timestamp`" length="8" sql-type="timestamp" not-null="true"/>
</property>
<many-to-one name="ProgrammeRound" class="GrantEd.DomainModel.ProgrammeMgmt.ProgrammeRound, GrantEd.DomainModel.ProgrammeMgmt">
<column name="ProgrammeRoundId" length="4" sql-type="int" not-null="true"/>
</many-to-one>
<component name = "StateCd" >
<property name="Id" column="StateCd" type="int" not-null="false" />
</component>
<many-to-one name="PostingAccount" class="GrantEd.DomainModel.ProgrammeMgmt.PostingAccount, GrantEd.DomainModel.ProgrammeMgmt">
<column name="PostingAccountId" length="4" sql-type="int" not-null="true"/>
</many-to-one>
<set name="_clientTypeCodes" collection-type="GrantEd.DomainModel.Code.ClientTypeCodes, GrantEd.DomainModel.Code" table="ClientPostingAccountClientTypeCode" access="field" >
<key column="ClientPostingAccountId"/>
<many-to-many class="GrantEd.DomainModel.Code.ClientTypeCode, GrantEd.DomainModel.Code" column="ClientTypeId"/>
</set>
<set name="Clients" table="ClientPostingAccountClient" access="property" lazy="false">
<key column="ClientPostingAccountId"/>
<composite-element class="GrantEd.DomainModel.ClientMgmt.Clients, GrantEd.DomainModel.ClientMgmt">
<property name="id" type="int"/>
</composite-element>
</set>
</class>
</hibernate-mapping>
Class definitionCode:
[Serializable]
public partial class ClientPostingAccount : DomainBase<int>, IAuditable , IAssignedId<int>
{
private Audit _Created;
private Audit _LastUpdated;
protected bool _active;
protected byte[] _timestamp;
protected ProgrammeRound _programmeRound;
protected StateCode _stateCd;
protected PostingAccount _postingAccount;
private IDomainCollection< ClientTypeCode, int> _clientTypeCodes ;
private IDomainCollection< Client, int> _clients ;
public ClientPostingAccount(): base() { }
#region IAssignedId<string> Members
public void SetAssignedIdTo(int assignedId)
{
this.id = assignedId ;
}
#endregion
public virtual Audit Created
{
get { return _Created; }
set { _Created = value; }
}
public virtual Audit LastUpdated
{
get { return _LastUpdated; }
set { _LastUpdated = value; }
}
[NotNullValidator]
public virtual bool Active
{
get { return _active; }
set { _active = value; }
}
public virtual byte[] Timestamp
{
get { return _timestamp; }
set { _timestamp = value; }
}
public virtual ProgrammeRound ProgrammeRound
{
get { return _programmeRound; }
set { _programmeRound = value; }
}
public virtual StateCode StateCd
{
get { return _stateCd; }
set { _stateCd = value; }
}
public virtual PostingAccount PostingAccount
{
get { return _postingAccount; }
set { _postingAccount = value; }
}
public virtual IDomainCollection< ClientTypeCode, int> ClientTypeCodes
{
get {
// NULL is returned if collection is lazy loaded. This is to distinguish with the scenario where the collection is loaded but empty.
if (!NHibernate.NHibernateUtil.IsInitialized(_clientTypeCodes))
{
_clientTypeCodes = null ;
}
return _clientTypeCodes;
}
set {_clientTypeCodes = value ;}
}
public virtual IDomainCollection< Client, int> Clients
{
get {
// NULL is returned if collection is lazy loaded. This is to distinguish with the scenario where the collection is loaded but empty.
if (!NHibernate.NHibernateUtil.IsInitialized(_clients))
{
_clients = null ;
}
return _clients;
}
set {_clients = value ;}
}
}
Using SQL 2005Debug level Hibernate log excerpt:Code:
2007-07-17 10:18:26,714#[6]#INFO #NHibernate.Cfg.Environment#[(null)]# NHibernate 1.2.0.4000 (1.2.0.4000)
2007-07-17 10:18:26,714#[6]#INFO #NHibernate.Cfg.Environment#[(null)]# nhibernate section not found in application configuration file
2007-07-17 10:18:26,714#[6]#INFO #NHibernate.Cfg.Environment#[(null)]# Bytecode provider name : lcg
2007-07-17 10:18:26,714#[6]#INFO #NHibernate.Cfg.Environment#[(null)]# Using reflection optimizer
2007-07-17 10:18:26,714#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Searching for mapped documents in assembly: GrantEd.DomainModel.Code
2007-07-17 10:18:26,730#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Adding embedded mapping document: GrantEd.DomainModel.Code.NHibernate_Mapping.PaymentModeCode.hbm.xml
2007-07-17 10:18:26,730#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Mapping resource: GrantEd.DomainModel.Code.NHibernate_Mapping.PaymentModeCode.hbm.xml
2007-07-17 10:18:26,808#[6]#INFO #NHibernate.Dialect.Dialect#[(null)]# Using dialect: NHibernate.Dialect.MsSql2005Dialect
2007-07-17 10:18:26,855#[6]#INFO #NHibernate.Cfg.HbmBinder#[(null)]# Mapping class: GrantEd.DomainModel.Code.PaymentModeCode -> PaymentModeCode
2007-07-17 10:18:26,901#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Id -> PaymentModeCodeId, type: Int32
2007-07-17 10:18:26,901#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: name -> Name, type: String
2007-07-17 10:18:26,901#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: description -> Description, type: String
2007-07-17 10:18:26,901#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: active -> Active, type: Boolean
2007-07-17 10:18:26,917#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> CreatedActionDate, type: DateTime
2007-07-17 10:18:26,917#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> CreatedActionUser, type: String
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Created -> CreatedActionDate, CreatedActionUser, type: Audit
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> LastUpdatedActionDate, type: DateTime
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> LastUpdatedActionUser, type: String
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: LastUpdated -> LastUpdatedActionDate, LastUpdatedActionUser, type: Audit
2007-07-17 10:18:26,948#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Adding embedded mapping document: GrantEd.DomainModel.Code.NHibernate_Mapping.StateCode.hbm.xml
2007-07-17 10:18:26,948#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Mapping resource: GrantEd.DomainModel.Code.NHibernate_Mapping.StateCode.hbm.xml
2007-07-17 10:18:26,948#[6]#INFO #NHibernate.Dialect.Dialect#[(null)]# Using dialect: NHibernate.Dialect.MsSql2005Dialect
2007-07-17 10:18:26,948#[6]#INFO #NHibernate.Cfg.HbmBinder#[(null)]# Mapping class: GrantEd.DomainModel.Code.StateCode -> StateCode
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Id -> StateCodeId, type: Int32
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: name -> Name, type: String
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: description -> Description, type: String
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: active -> Active, type: Boolean
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> CreatedActionDate, type: DateTime
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> CreatedActionUser, type: String
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Created -> CreatedActionDate, CreatedActionUser, type: Audit
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> LastUpdatedActionDate, type: DateTime
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> LastUpdatedActionUser, type: String
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: LastUpdated -> LastUpdatedActionDate, LastUpdatedActionUser, type: Audit
2007-07-17 10:18:26,948#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Adding embedded mapping document: GrantEd.DomainModel.Code.NHibernate_Mapping.AuthorizationPermissionTypeCode.hbm.xml
2007-07-17 10:18:26,948#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Mapping resource: GrantEd.DomainModel.Code.NHibernate_Mapping.AuthorizationPermissionTypeCode.hbm.xml
2007-07-17 10:18:26,948#[6]#INFO #NHibernate.Dialect.Dialect#[(null)]# Using dialect: NHibernate.Dialect.MsSql2005Dialect
2007-07-17 10:18:26,948#[6]#INFO #NHibernate.Cfg.HbmBinder#[(null)]# Mapping class: GrantEd.DomainModel.Code.AuthorizationPermissionTypeCode -> AuthorizationPermissionTypeCode
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Id -> AuthorizationPermissionTypeCodeId, type: Int32
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: name -> Name, type: String
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: description -> Description, type: String
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: active -> Active, type: Boolean
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> CreatedActionDate, type: DateTime
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> CreatedActionUser, type: String
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Created -> CreatedActionDate, CreatedActionUser, type: Audit
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> LastUpdatedActionDate, type: DateTime
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> LastUpdatedActionUser, type: String
2007-07-17 10:18:26,948#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: LastUpdated -> LastUpdatedActionDate, LastUpdatedActionUser, type: Audit
2007-07-17 10:18:26,948#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Adding embedded mapping document: GrantEd.DomainModel.Code.NHibernate_Mapping.SectorCode.hbm.xml
2007-07-17 10:18:26,964#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Mapping resource: GrantEd.DomainModel.Code.NHibernate_Mapping.SectorCode.hbm.xml
2007-07-17 10:18:26,964#[6]#INFO #NHibernate.Dialect.Dialect#[(null)]# Using dialect: NHibernate.Dialect.MsSql2005Dialect
2007-07-17 10:18:26,964#[6]#INFO #NHibernate.Cfg.HbmBinder#[(null)]# Mapping class: GrantEd.DomainModel.Code.SectorCode -> SectorCode
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Id -> SectorCodeId, type: Int32
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: name -> Name, type: String
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: description -> Description, type: String
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: active -> Active, type: Boolean
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> CreatedActionDate, type: DateTime
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> CreatedActionUser, type: String
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Created -> CreatedActionDate, CreatedActionUser, type: Audit
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> LastUpdatedActionDate, type: DateTime
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> LastUpdatedActionUser, type: String
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: LastUpdated -> LastUpdatedActionDate, LastUpdatedActionUser, type: Audit
2007-07-17 10:18:26,964#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Adding embedded mapping document: GrantEd.DomainModel.Code.NHibernate_Mapping.RuleTypeCode.hbm.xml
2007-07-17 10:18:26,964#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Mapping resource: GrantEd.DomainModel.Code.NHibernate_Mapping.RuleTypeCode.hbm.xml
2007-07-17 10:18:26,964#[6]#INFO #NHibernate.Dialect.Dialect#[(null)]# Using dialect: NHibernate.Dialect.MsSql2005Dialect
2007-07-17 10:18:26,964#[6]#INFO #NHibernate.Cfg.HbmBinder#[(null)]# Mapping class: GrantEd.DomainModel.Code.RuleTypeCode -> RuleTypeCode
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Id -> RuleTypeCodeId, type: Int32
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: name -> Name, type: String
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: description -> Description, type: String
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: active -> Active, type: Boolean
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> CreatedActionDate, type: DateTime
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> CreatedActionUser, type: String
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Created -> CreatedActionDate, CreatedActionUser, type: Audit
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> LastUpdatedActionDate, type: DateTime
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> LastUpdatedActionUser, type: String
2007-07-17 10:18:26,964#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: LastUpdated -> LastUpdatedActionDate, LastUpdatedActionUser, type: Audit
2007-07-17 10:18:26,964#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Adding embedded mapping document: GrantEd.DomainModel.Code.NHibernate_Mapping.RoleTypeCode.hbm.xml
2007-07-17 10:18:26,964#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Mapping resource: GrantEd.DomainModel.Code.NHibernate_Mapping.RoleTypeCode.hbm.xml
2007-07-17 10:18:26,964#[6]#INFO #NHibernate.Dialect.Dialect#[(null)]# Using dialect: NHibernate.Dialect.MsSql2005Dialect
2007-07-17 10:18:26,980#[6]#INFO #NHibernate.Cfg.HbmBinder#[(null)]# Mapping class: GrantEd.DomainModel.Code.RoleTypeCode -> RoleTypeCode
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Id -> RoleTypeCodeId, type: Int32
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: name -> Name, type: String
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: description -> Description, type: String
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: active -> Active, type: Boolean
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> CreatedActionDate, type: DateTime
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> CreatedActionUser, type: String
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Created -> CreatedActionDate, CreatedActionUser, type: Audit
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> LastUpdatedActionDate, type: DateTime
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> LastUpdatedActionUser, type: String
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: LastUpdated -> LastUpdatedActionDate, LastUpdatedActionUser, type: Audit
2007-07-17 10:18:26,980#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Adding embedded mapping document: GrantEd.DomainModel.Code.NHibernate_Mapping.FundingLimitCode.hbm.xml
2007-07-17 10:18:26,980#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Mapping resource: GrantEd.DomainModel.Code.NHibernate_Mapping.FundingLimitCode.hbm.xml
2007-07-17 10:18:26,980#[6]#INFO #NHibernate.Dialect.Dialect#[(null)]# Using dialect: NHibernate.Dialect.MsSql2005Dialect
2007-07-17 10:18:26,980#[6]#INFO #NHibernate.Cfg.HbmBinder#[(null)]# Mapping class: GrantEd.DomainModel.Code.FundingLimitCode -> FundingLimitCode
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Id -> FundingLimitCodeId, type: Int32
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: name -> Name, type: String
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: description -> Description, type: String
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: active -> Active, type: Boolean
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> CreatedActionDate, type: DateTime
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> CreatedActionUser, type: String
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Created -> CreatedActionDate, CreatedActionUser, type: Audit
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> LastUpdatedActionDate, type: DateTime
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> LastUpdatedActionUser, type: String
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: LastUpdated -> LastUpdatedActionDate, LastUpdatedActionUser, type: Audit
2007-07-17 10:18:26,980#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Adding embedded mapping document: GrantEd.DomainModel.Code.NHibernate_Mapping.FundingTypeCode.hbm.xml
2007-07-17 10:18:26,980#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Mapping resource: GrantEd.DomainModel.Code.NHibernate_Mapping.FundingTypeCode.hbm.xml
2007-07-17 10:18:26,980#[6]#INFO #NHibernate.Dialect.Dialect#[(null)]# Using dialect: NHibernate.Dialect.MsSql2005Dialect
2007-07-17 10:18:26,980#[6]#INFO #NHibernate.Cfg.HbmBinder#[(null)]# Mapping class: GrantEd.DomainModel.Code.FundingTypeCode -> FundingTypeCode
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Id -> FundingTypeCodeId, type: Int32
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: name -> Name, type: String
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: description -> Description, type: String
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: active -> Active, type: Boolean
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> CreatedActionDate, type: DateTime
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> CreatedActionUser, type: String
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Created -> CreatedActionDate, CreatedActionUser, type: Audit
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> LastUpdatedActionDate, type: DateTime
2007-07-17 10:18:26,980#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> LastUpdatedActionUser, type: String
2007-07-17 10:18:26,995#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: LastUpdated -> LastUpdatedActionDate, LastUpdatedActionUser, type: Audit
2007-07-17 10:18:26,995#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Adding embedded mapping document: GrantEd.DomainModel.Code.NHibernate_Mapping.ClientTypeCode.hbm.xml
2007-07-17 10:18:26,995#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Mapping resource: GrantEd.DomainModel.Code.NHibernate_Mapping.ClientTypeCode.hbm.xml
2007-07-17 10:18:26,995#[6]#INFO #NHibernate.Dialect.Dialect#[(null)]# Using dialect: NHibernate.Dialect.MsSql2005Dialect
2007-07-17 10:18:26,995#[6]#INFO #NHibernate.Cfg.HbmBinder#[(null)]# Mapping class: GrantEd.DomainModel.Code.ClientTypeCode -> ClientTypeCode
2007-07-17 10:18:26,995#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Id -> ClientTypeId, type: Int32
2007-07-17 10:18:26,995#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: name -> Name, type: String
2007-07-17 10:18:26,995#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: description -> Description, type: String
2007-07-17 10:18:26,995#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: active -> Active, type: Boolean
2007-07-17 10:18:26,995#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> CreatedActionDate, type: DateTime
2007-07-17 10:18:26,995#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> CreatedActionUser, type: String
2007-07-17 10:18:26,995#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Created -> CreatedActionDate, CreatedActionUser, type: Audit
2007-07-17 10:18:26,995#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> LastUpdatedActionDate, type: DateTime
2007-07-17 10:18:26,995#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> LastUpdatedActionUser, type: String
2007-07-17 10:18:26,995#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: LastUpdated -> LastUpdatedActionDate, LastUpdatedActionUser, type: Audit
2007-07-17 10:18:26,995#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Searching for mapped documents in assembly: GrantEd.DomainModel.ProgrammeMgmt
2007-07-17 10:18:27,011#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Adding embedded mapping document: GrantEd.DomainModel.ProgrammeMgmt.NHibernate_Mapping.PostingAccountCalculatorRegistry.hbm.xml
2007-07-17 10:18:27,011#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Mapping resource: GrantEd.DomainModel.ProgrammeMgmt.NHibernate_Mapping.PostingAccountCalculatorRegistry.hbm.xml
2007-07-17 10:18:27,011#[6]#INFO #NHibernate.Dialect.Dialect#[(null)]# Using dialect: NHibernate.Dialect.MsSql2005Dialect
2007-07-17 10:18:27,011#[6]#INFO #NHibernate.Cfg.HbmBinder#[(null)]# Mapping class: GrantEd.DomainModel.ProgrammeMgmt.PostingAccountCalculatorRegistry -> PostingAccountCalculatorRegistry
2007-07-17 10:18:27,011#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: id -> PostingAccountCalculatorRegistryId, type: Int32
2007-07-17 10:18:27,011#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> CreatedActionDate, type: DateTime
2007-07-17 10:18:27,011#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> CreatedActionUser, type: String
2007-07-17 10:18:27,011#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Created -> CreatedActionDate, CreatedActionUser, type: Audit
2007-07-17 10:18:27,011#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> LastUpdatedActionDate, type: DateTime
2007-07-17 10:18:27,011#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> LastUpdatedActionUser, type: String
2007-07-17 10:18:27,011#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: LastUpdated -> LastUpdatedActionDate, LastUpdatedActionUser, type: Audit
2007-07-17 10:18:27,011#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: CalculatorName -> CalculatorName, type: String
2007-07-17 10:18:27,011#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Description -> Description, type: String
2007-07-17 10:18:27,011#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: SupportingDocumentURL -> SupportingDocumentURL, type: String
2007-07-17 10:18:27,011#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Active -> Active, type: Boolean
2007-07-17 10:18:27,011#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Timestamp -> Timestamp, type: Byte[]
2007-07-17 10:18:27,058#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: _postingCalculatorIdProgrammeRounds, type: DomainCollectionBase`2
2007-07-17 10:18:27,058#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Adding embedded mapping document: GrantEd.DomainModel.ProgrammeMgmt.NHibernate_Mapping.TestDetail.hbm.xml
2007-07-17 10:18:27,058#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Mapping resource: GrantEd.DomainModel.ProgrammeMgmt.NHibernate_Mapping.TestDetail.hbm.xml
2007-07-17 10:18:27,058#[6]#INFO #NHibernate.Dialect.Dialect#[(null)]# Using dialect: NHibernate.Dialect.MsSql2005Dialect
2007-07-17 10:18:27,058#[6]#INFO #NHibernate.Cfg.HbmBinder#[(null)]# Mapping class: GrantEd.DomainModel.ProgrammeMgmt.TestDetail -> TestDetail
2007-07-17 10:18:27,058#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: id -> TestDetailId, type: Int32
2007-07-17 10:18:27,058#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Name -> Name, type: String
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: TestMaster -> TestMasterId, type: TestMaster
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Id -> StateCd, type: Int32
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: StateCd -> StateCd, type: StateCode
2007-07-17 10:18:27,073#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Adding embedded mapping document: GrantEd.DomainModel.ProgrammeMgmt.NHibernate_Mapping.PostingAccount.hbm.xml
2007-07-17 10:18:27,073#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Mapping resource: GrantEd.DomainModel.ProgrammeMgmt.NHibernate_Mapping.PostingAccount.hbm.xml
2007-07-17 10:18:27,073#[6]#INFO #NHibernate.Dialect.Dialect#[(null)]# Using dialect: NHibernate.Dialect.MsSql2005Dialect
2007-07-17 10:18:27,073#[6]#INFO #NHibernate.Cfg.HbmBinder#[(null)]# Mapping class: GrantEd.DomainModel.ProgrammeMgmt.PostingAccount -> PostingAccount
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: id -> PostingAccountId, type: Int32
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> CreatedActionDate, type: DateTime
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> CreatedActionUser, type: String
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Created -> CreatedActionDate, CreatedActionUser, type: Audit
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> LastUpdatedActionDate, type: DateTime
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> LastUpdatedActionUser, type: String
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: LastUpdated -> LastUpdatedActionDate, LastUpdatedActionUser, type: Audit
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: CostCentre -> CostCentre, type: String
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Active -> Active, type: Boolean
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Timestamp -> Timestamp, type: Byte[]
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ExpenseAccountId -> ExpenseAccountId, type: GLAccount
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: LiabilityAccountId -> LiabilityAccountId, type: GLAccount
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: _clientPostingAccounts, type: DomainCollectionBase`2
2007-07-17 10:18:27,073#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Adding embedded mapping document: GrantEd.DomainModel.ProgrammeMgmt.NHibernate_Mapping.EntitlementCalculatorRegistration.hbm.xml
2007-07-17 10:18:27,073#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Mapping resource: GrantEd.DomainModel.ProgrammeMgmt.NHibernate_Mapping.EntitlementCalculatorRegistration.hbm.xml
2007-07-17 10:18:27,073#[6]#INFO #NHibernate.Dialect.Dialect#[(null)]# Using dialect: NHibernate.Dialect.MsSql2005Dialect
2007-07-17 10:18:27,073#[6]#INFO #NHibernate.Cfg.HbmBinder#[(null)]# Mapping class: GrantEd.DomainModel.ProgrammeMgmt.EntitlementCalculatorRegistration -> EntitlementCalculatorRegistration
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: id -> EntitlementCalculatorRegistrationId, type: Int32
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> CreatedActionDate, type: DateTime
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> CreatedActionUser, type: String
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Created -> CreatedActionDate, CreatedActionUser, type: Audit
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> LastUpdatedActionDate, type: DateTime
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> LastUpdatedActionUser, type: String
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: LastUpdated -> LastUpdatedActionDate, LastUpdatedActionUser, type: Audit
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: CalculatorName -> CalculatorName, type: String
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Description -> Description, type: String
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: SupportingDocumentURL -> SupportingDocumentURL, type: String
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Timestamp -> Timestamp, type: Byte[]
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: _entitlementCalculatorIdProgrammeRounds, type: DomainCollectionBase`2
2007-07-17 10:18:27,073#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Adding embedded mapping document: GrantEd.DomainModel.ProgrammeMgmt.NHibernate_Mapping.ClientPostingAccount.hbm.xml
2007-07-17 10:18:27,073#[6]#INFO #NHibernate.Cfg.Configuration#[(null)]# Mapping resource: GrantEd.DomainModel.ProgrammeMgmt.NHibernate_Mapping.ClientPostingAccount.hbm.xml
2007-07-17 10:18:27,073#[6]#INFO #NHibernate.Dialect.Dialect#[(null)]# Using dialect: NHibernate.Dialect.MsSql2005Dialect
2007-07-17 10:18:27,073#[6]#INFO #NHibernate.Cfg.HbmBinder#[(null)]# Mapping class: GrantEd.DomainModel.ProgrammeMgmt.ClientPostingAccount -> ClientPostingAccount
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: id -> ClientPostingAccountId, type: Int32
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> CreatedActionDate, type: DateTime
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> CreatedActionUser, type: String
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Created -> CreatedActionDate, CreatedActionUser, type: Audit
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionDate -> LastUpdatedActionDate, type: DateTime
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ActionUser -> LastUpdatedActionUser, type: String
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: LastUpdated -> LastUpdatedActionDate, LastUpdatedActionUser, type: Audit
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Active -> Active, type: Boolean
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Timestamp -> Timestamp, type: Byte[]
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: ProgrammeRound -> ProgrammeRoundId, type: ProgrammeRound
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: Id -> StateCd, type: Int32
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: StateCd -> StateCd, type: StateCode
2007-07-17 10:18:27,073#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: PostingAccount -> PostingAccountId, type: PostingAccount
2007-07-17 10:18:27,073#[6]#INFO #NHibernate.Cfg.HbmBinder#[(null)]# Mapping collection: GrantEd.DomainModel.ProgrammeMgmt.ClientPostingAccount._clientTypeCodes -> ClientPostingAccountClientTypeCode
2007-07-17 10:18:27,089#[6]#DEBUG#NHibernate.Cfg.HbmBinder#[(null)]# Mapped property: _clientTypeCodes, type: DomainCollectionBase`2
2007-07-17 10:18:27,089#[6]#INFO #NHibernate.Cfg.HbmBinder#[(null)]# Mapping collection: GrantEd.DomainModel.ProgrammeMgmt.ClientPostingAccount.Clients -> ClientPostingAccountClient
2007-07-17 10:18:27,089#[6]#ERROR#NHibernate.Cfg.Configuration#[(null)]# Could not compile the mapping document: GrantEd.DomainModel.ProgrammeMgmt.NHibernate_Mapping.ClientPostingAccount.hbm.xml
NHibernate.MappingException: Could not compile the mapping document: GrantEd.DomainModel.ProgrammeMgmt.NHibernate_Mapping.ClientPostingAccount.hbm.xml ---> NHibernate.MappingException: Error mapping generic collection GrantEd.DomainModel.ProgrammeMgmt.ClientPostingAccount.Clients: expected 1 generic parameters, but the property type has 2
at NHibernate.Mapping.Collection.CheckGenericArgumentsLength(Int32 expectedLength)
at NHibernate.Mapping.Set.get_DefaultCollectionType()
at NHibernate.Mapping.Collection.get_CollectionType()
at NHibernate.Mapping.Collection.get_Type()
at NHibernate.Cfg.HbmBinder.BindProperty(XmlNode node, Property property, Mappings mappings)
at NHibernate.Cfg.HbmBinder.CreateProperty(IValue value, String propertyName, Type parentClass, XmlNode subnode, 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(XmlDocument doc, String name)
--- End of inner exception stack trace ---
[/list][/quote]