Not sure why, but the above error had something to do with how the
Tester.cs file was defined.  When I changed a property in the O/R
Mapping file generator (NHibernate Mapping Generator), it now defined
the class like:

namespace FirstSample.Domain {
    public class Tester {
        public Tester() {
        }
        public virtual string city { get; set; }
        public virtual string name { get; set; }
        public virtual long recordId { get; set; }
        public virtual long year { get; set; }
    }
}

and the mapping file looks like:

<?xml version="1.0" encoding="utf-8"?>
<hibernate-mapping assembly="FirstSample" xmlns="urn:nhibernate-
mapping-2.2">
  <class name="FirstSample.Domain.Tester, FirstSample" table="TESTER"
lazy="true" >
    <id name="recordId" type="Int64" column="RECORD_ID">
      <generator class="sequence">
        <param name="sequence">TESTER_SEQ</param>
      </generator>
    </id>
    <property name="city" column="CITY" />
    <property name="name" column="NAME" />
    <property name="year" column="YEAR" />
  </class>
</hibernate-mapping>


With this change, the above error no longer happens although I am not
sure why.

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