Can you provide an updated mapping file?
Here is mine:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="false">
<class name="PersonRage.Person, PersonRage" table="Person">
<id name="Id" type="Int32" access="nosetter.camelcase" >
<column name="personId" not-null="true" unique="true" />
<generator class="native" />
</id>
<version name="Version" column="Version" unsaved-value="0" access="nosetter.camelcase"/>
<property name="Name" column="Name" />
<property name="Status" column="Status" type="PersonRage.Person+PersonStatus, PersonRage" />
</class>
</hibernate-mapping>
Note! The Version element must come before any Property elements.
If you are using Visual Studio to write your code and mappings, then you should specify the NHibernate XSDs for your XML mapping files... it will give you intellisense and cut down on errors. Simply open up your mapping file and go to the properties window. Click the schema property and navigate to your nhibernate source directory (get the code and unzip it if you don't have it already). Select the mapping and generic XSDs.
My schema property for the above xml file looks like:
"C:\Program Files\NHibernate\src\src\NHibernate\nhibernate-generic.xsd" "C:\Program Files\NHibernate\src\src\NHibernate\nhibernate-mapping.xsd"
This will help you catch and order errors in defining elements.