I am unable to use <version> in my mapping file. Am I doing wrong is version not longer supported in NHibernate 1.2 CR1 ??
My mapping file:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="lgTronic.Spada.Business.Entities.ClassComment,lgTronic.Spada.Business.Entities" table="Comments">
<id name="Id" column="id" type="int" unsaved-value="0" >
<generator class="identity"></generator>
</id>
<property name="CommentStyle" length="50" not-null="true"></property>
<property name="Comment"></property>
<property name="CreatedDate" not-null="true"></property>
<property name="ModifiedDate" not-null="true"></property>
<property name="CreatedBy" length="50" not-null="true"></property>
<property name="ModifiedBy" length="50" not-null="true"></property>
<version name ="verson"></version>
</class>
</hibernate-mapping>
My exeption:
Code:
.........................
The element 'class' in namespace 'urn:nhibernate-mapping-2.2' has invalid child element 'version' in namespace 'urn:nhibernate-mapping-2.2'. List of possible elements expecte.............