Note that there are some explanatory texts on larger screens.

plurals
  1. PONHibernate Could not determine type for [namespace,assembly] for columns: NHibernate.Mapping.Column(column)
    primarykey
    data
    text
    <p>I'm confused with this situation. Having these two classes:</p> <pre><code>public class Payment { public Payment() { } public string Trn { get; set; } public TxType TxTypeId { get; set; } public string TxCode { get; set; } public System.Nullable&lt;decimal&gt; Amount { get; set; } public System.Nullable&lt;System.DateTime&gt; DateStamp { get; set; } } public PaymentAudit() { } public System.DateTime DateStamp { get; set; } public Payment Trn { get; set; } public PaymentSaga PaymentStateId { get; set; } public ProcessState ProcessState { get; set; } public PublishState PublishState { get; set; } public System.Nullable&lt;short&gt; ChgCount { get; set; } public string UserName { get; set; } </code></pre> <p>And mappings are:</p> <pre><code> &lt;class name="Payment" table="Payment" lazy="false" &gt; &lt;id name="Trn"&gt; &lt;generator class="identity" /&gt; &lt;/id&gt; &lt;many-to-one insert="false" update="false" lazy="false" name="TxTypeId"&gt; &lt;column name="TxTypeId" sql-type="varchar" not-null="false" /&gt; &lt;/many-to-one&gt; &lt;property name="TxTypeId"&gt; &lt;column name="TxTypeId" sql-type="varchar" not-null="false" /&gt; &lt;/property&gt; &lt;many-to-one insert="false" update="false" lazy="false" name="TxCode"&gt; &lt;column name="TxCode" sql-type="varchar" not-null="false" /&gt; &lt;/many-to-one&gt; &lt;property name="TxCode"&gt; &lt;column name="TxCode" sql-type="varchar" not-null="false" /&gt; &lt;/property&gt; &lt;property name="Amount"&gt; &lt;column name="Amount" sql-type="decimal" not-null="false" /&gt; &lt;/property&gt; &lt;property name="DateStamp"&gt; &lt;column name="DateStamp" sql-type="datetime" not-null="false" /&gt; &lt;/property&gt; &lt;bag name="PaymentAudits" inverse="true" cascade="none"&gt; &lt;key column="Trn" /&gt; &lt;one-to-many class="PaymentAudit" not-found="ignore" /&gt; &lt;/bag&gt; &lt;/class&gt; &lt;class name="PaymentAudit" table="PaymentAudit" &gt; &lt;composite-id&gt; &lt;key-many-to-one name="PaymentStateId" column="PaymentStateId" /&gt; &lt;key-property name="DateStamp" column="DateStamp" /&gt; &lt;key-many-to-one name="ProcessState" column="ProcessState" /&gt; &lt;/composite-id&gt; &lt;property name="PublishState"&gt; &lt;column name="PublishState" sql-type="varchar" not-null="false" /&gt; &lt;/property&gt; &lt;many-to-one name="Trn"&gt; &lt;column name="Trn" sql-type="varchar" not-null="false" /&gt; &lt;/many-to-one&gt; &lt;property name="ChgCount"&gt; &lt;column name="ChgCount" sql-type="smallint" not-null="false" /&gt; &lt;/property&gt; &lt;property name="UserName"&gt; &lt;column name="UserName" sql-type="nvarchar" not-null="false" /&gt; &lt;/property&gt; &lt;many-to-one name="PublishState"&gt; &lt;column name="PublishState" sql-type="varchar" not-null="false" /&gt; &lt;/many-to-one&gt; &lt;/class&gt; </code></pre> <p>The tables,</p> <p><strong>Payment:</strong><br> Trn PK<br> TxTypeId FK<br> TxCode FK<br> Amount<br> DateStamp<br></p> <p><strong>PaymentAudit:</strong><br> PaymentStateId PK<br> DateStamp PK<br> ProcessState PK<br> PublishState FK<br> Trn FK<br> ChgCount<br> UserName<br></p> <p>And I got this error: <strong><em>Could not determine type for: MyProject.NHibernate.Payment.Model.Payment.Payment, MyProject.NHibernate.Payment.Model, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, for columns: NHibernate.Mapping.Column(Trn)</em></strong></p> <p>Any ideas? Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload