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: Get data from multiple tables
PostPosted: Thu Oct 23, 2008 10:13 pm 
Newbie

Joined: Wed Oct 22, 2008 10:20 pm
Posts: 11
Hi,

I'm quite new to Hibernate. Last time when I'm using native SQL,
I can simply retrieve data from multiple tables such as,

SELECT t1.t1_id, t1.desc, t2.desc2, t3.desc3
FROM table1 t1, table2 t2, table3 t3
WHERE t1.t1_id = t2.t2_id
AND t2.t2_id = t3.t3_id

As I need to retrieve a large number of records efficiently,
does anyone know how can this works in hiberate ?


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.