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: Native SQL - all fields required?
PostPosted: Thu Sep 01, 2005 7:28 pm 
Newbie

Joined: Tue May 03, 2005 7:13 pm
Posts: 4
Hi, I am using Hibernate 3.x

From documentation I understood that if I explicitly use property (column)
names then I have to use them ALL! Is that correct?
So there is no way to fetch only a few properties of a class (table), is there?


[ Note: HQL does not help in my situation because I cannot do left join
on unmapped fields, I really need to use native SQL. ]

Thanks,
Nik


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 01, 2005 9:27 pm 
Senior
Senior

Joined: Wed Jul 13, 2005 4:31 pm
Posts: 142
Location: Seattle, WA
you can do <return-scalar> and then just map the scalar values in your java code.


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