-->
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: Does it have to contain all fields?
PostPosted: Mon Jun 11, 2007 10:17 am 
Newbie

Joined: Mon Apr 23, 2007 3:55 pm
Posts: 10
I'm trying to get a user by it's username and password. Nothing advance. When I try to do this NHibernate starts complaining about me not returning all fields, they're null.

Refer to: http://forum.hibernate.org/viewtopic.ph ... procedures

Which is the same problem as mine. Can I somehow return my user object with only the username and password instead of all fields, many-to-one and such? I've tried, not-null="false". It needs a bit more performance if it need to load all the fields instead one two. And my stored procedures are way to big for it's purpose.

Anyone have any ideas? :(

EDIT:
I should use scalar queries right? Now, how do I extract them from my result?


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.