-->
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: CreateSQLQuery not getting the results from multiple tables
PostPosted: Wed Apr 21, 2004 5:39 am 
Newbie

Joined: Mon Apr 19, 2004 10:12 am
Posts: 19
Location: India
delpouve wrote:
have read twice the doc about sql query?

Sorry, i didnot post the entire query.

the query is
createSQLQuery("select {cvo}.customeridvc,{cvo}.customernamevc,{cvo}.shortnamevc,{cvo}.creditstatusvc,{cgvo}.groupnamevc from customer as {cvo}
left outer join customergroup as {cgvo} on cgvo.custgroupidvc=cgvo.custgroupidvc");

I need to get the data from both the tables customer and customer group. No where in the hibernate reference an example is given to get the data from multiple tables using the createSQLQuery statement with left outer join.

Can you please help me out.

_________________
Ravi Kumar


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 21, 2004 7:38 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
please stop duplicating posts in the forum


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.