These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Mapping File Problem
PostPosted: Wed Nov 21, 2007 4:59 am 
Newbie

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 21, 2007 11:47 am 
Beginner
Beginner

Joined: Mon Oct 22, 2007 5:44 am
Posts: 28
Hi,

Please attach the error details and I'll try to help.

If this is your first experience, I'd suggest you to run a simple example and then build your own project.

_________________
dyahav


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.