-->
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.  [ 5 posts ] 
Author Message
 Post subject: Several assembles with embedded mapping files
PostPosted: Fri Feb 16, 2007 4:30 am 
Newbie

Joined: Tue Dec 19, 2006 4:59 am
Posts: 8
Hi all

Can anyone to help me to find a way how use several assembles with embebbded mapping files, using the means of App.Config file?

I tried to use several records
<mapping assembly="Assemble1" />
<mapping assembly="Assemble2" />

But, as it seems to me, it loads only the last assemble.

I'm using the NHibernate 1.0.3.

Thanks in advance for your help.


Top
 Profile  
 
 Post subject: Any answer
PostPosted: Mon Feb 19, 2007 4:43 pm 
Newbie

Joined: Tue Dec 19, 2006 4:59 am
Posts: 8
Hi all

So, nobody knows an answer or it's the stupid question?
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 6:29 pm 
Senior
Senior

Joined: Sat Sep 10, 2005 3:46 pm
Posts: 178
According to the schema, that should work. I use Castle's NHibernate integration and it has a different configuration so I cant say that I have actually mapped directly through the Nhibernate configuration with more than one assembly.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 20, 2007 4:13 am 
Expert
Expert

Joined: Tue Aug 23, 2005 5:52 am
Posts: 335
You can use Configuration.AddAssembly() to add external assemblies. Not sure it's possible through a config file though.

Cheers,

Symon.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 20, 2007 4:27 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Judging from the source, multiple assemblies loaded using <mapping> elements should work. What is the error you are getting? Maybe it's related to something else.


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