-->
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: hbm files and classes in seperate assembly
PostPosted: Sun Oct 30, 2005 7:28 am 
This is how my project looks like:
MyProg.Data -> Contains all classes
MyProg.Data.Default -> default/old database implementation
MyProg.Data.NHibernated -> NHibernate implementation, contains .hbm.xml files

These are different assemblies.

When I try to add the Assembly to the config, is tells me it can't find the classes, when I add the classes, it can't find the .hbm.xml files...

In the .hbm.xml file I have specified this:
Code:
<class name="MyProg.Data.MyObject, MyProg.Data">...</code>


how can I keep hbm's and classes seperate, and still have NHibernate running?


Top
  
 
 Post subject:
PostPosted: Sun Oct 30, 2005 8:08 am 
I found my error (after 2 days):

I forgot the assembly attribute of the class node in the mapping file


Top
  
 
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.