-->
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: Cascading joins in hibernate
PostPosted: Thu Feb 26, 2009 10:28 am 
Newbie

Joined: Thu Feb 26, 2009 10:09 am
Posts: 2
I am new to hibernate .
and i want to use joins with criteria to get the data from the table.
I have four tables each is t1,t2,t3,t4.
tables are related like t1.id is a foreign key in t2 , t2 .id is foreign key in t3 , t3.id is a foreign key in t4.
I want to retrieve the data of t4 when the id of t1 is provided.
demo example will be of great help.

Further want to know whether join will be faster in this case of querying database seperately using multiple queries

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.