vijayjanakiram wrote:
Thanks gert for the quick response...
1) I changed the config file and i am getting the following error.
<id name="Id" generator="assigned">
<column name="Id" sql-type="16" not-null="true"/>
</id>
Additional information: The 'generator' attribute is not declared. An error occurred at file:///C:/Vijay/tryOr/Customer/Cust.hbm.xml, (14, 23).
Next time I must check the documentation and not write from memory :(
vijayjanakiram wrote:
2) I changed the config file as given in the sample documentation
like this.
<id name="Id">
<column name="Id" sql-type="char(32)" not-null="true"/>
<generator class="uuid.hex" />
</id>
I am getting the below error.
An unhandled exception of type 'NHibernate.InvalidProxyTypeException' occurred in nhibernate.dll
Additional information: method get_Id should be virtual
You must either make all public methods/proeprties virtual or add lazy="false" to class mapping.
Gert