-->
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.  [ 1 post ] 
Author Message
 Post subject: How to import a non persistent class for projection?
PostPosted: Mon Jul 30, 2007 9:05 am 
Newbie

Joined: Wed Aug 16, 2006 3:35 am
Posts: 2
Hi
I'm using NHibernate 1.0.0.0 and I'd like to project some properties of a persistent class into a non persistent class.
The problem is that the non persistent class is not part of my model(the assembly that I add to Configuration object before building the session factory) and thus I get a "Type xxxx could not be found" exception.
I try to add my assembly to Configuration before building the session factory but I get a "duplicated import " exception and I don't know why.
(Because there is no class with that name in my assembly to generate a duplicate import)
Then I try to add my class to configuration object using AddClass() method but again it says that no mapping for this class exsists.
Then here is my question :
How can I configure factory session so that NHibernate can find my non persistent class type and do the projection for me?

Thank you
Nima


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

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.