-->
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 can I make Nhibernate ignore mapping of fields
PostPosted: Mon Oct 10, 2011 8:14 am 
Newbie

Joined: Mon Oct 10, 2011 7:27 am
Posts: 1
I have an SP that returns 4 columns of a table. I have a corresponding class with 4 properties.. and a mappping file with 4 properties. Everything is just fine so far.

I have another SP that returns 2 columns from same table. I want to make use of same class and mapping file. But it throws an exception here because Nhibernate expects 4 paramerts but SP returns only 2.

How can i tell Nhibernate to ignore mapping for other 2 columns which SP is not returning? Please advise. Any help would be highly appreciated. Thanks in advance.


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.