-->
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.  [ 3 posts ] 
Author Message
 Post subject: Problem with NHibernate Quickstart tutorial.
PostPosted: Fri Nov 04, 2005 12:47 pm 
Regular
Regular

Joined: Fri Nov 04, 2005 12:37 pm
Posts: 81
Working through this:
http://wiki.nhibernate.org/display/NH/Quick+Start+Guide

Im a java developer who used hibernate, im learning c#.....so i thought i would give nhibernate a try....but alas i appear i cant handle it.

Im getting this error:


Exception Details: NHibernate.MappingException: Unknown entity class: WebApplication3.code.User

Source Error:
Line 69: session.Save(newUser);

What have i done wrong? the name space in my user class is WebApplication3.code and my maping file has a class mapping to: WebApplicaftion3.code.User

help!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 04, 2005 2:48 pm 
Newbie

Joined: Fri Nov 04, 2005 2:45 pm
Posts: 18
Location: Gainesville, FL
Most of the times that I've encountered this error, it's because I forgot to set the Build Actions property of the mapping file to "Embedded Resource", and NHibernate can't find the mapping file.

For more info, see this post:

http://nhibernate.sourceforge.net/forum/viewtopic.php?t=487

Hope that helps.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 06, 2005 7:03 pm 
Regular
Regular

Joined: Fri Nov 04, 2005 12:37 pm
Posts: 81
No i have embedded the mapping file :(


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.