Joined: Wed Nov 21, 2007 4:52 am Posts: 1
|
I'm using NHibernate 1.2
Thia is my mapping file:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="NewEggShortMessage.Entity.Sms,NewEggShortMessage.Entity" table="SMS" lazy="false">
<id name="SysNo" column="SysNo" type="Int32" unsaved-value="0">
<generator class="native"/>
</id>
<property column="CellNumber" type="String" name="CellNumber" not-null="true" length="11" />
<property column="SMSContent" type="String" name="SmsContent" not-null="true" length="70" />
<property column="Priority" type="Int32" name="Priority" not-null="true" />
<property column="RetryCount" type="Int32" name="RetryCount" not-null="true" />
<property column="CreateTime" type="DateTime" name="CreateTime" not-null="true" />
<property column="HandleTime" type="DateTime" name="HandleTime" />
<property column="Status" type="Int32" name="Status" not-null="true" />
</class>
</hibernate-mapping>
When I run my app. An exception is thrown. " Could not compile the mapping document"
Have anyone ever got this problem?
Thanks
|
|