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.  [ 3 posts ] 
Author Message
 Post subject: Implementing multiple joins in Hibernate
PostPosted: Tue Apr 25, 2006 9:02 am 
Beginner
Beginner

Joined: Thu Apr 20, 2006 3:44 am
Posts: 32
Can anybody provide me a brief about implmenting a multiple join in Hibernate........

Assume we have SQL of following kind

Select table1,table2,table3,table4 where <selection criteria>

how do we implment it using hibernate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 25, 2006 9:05 am 
Beginner
Beginner

Joined: Thu Apr 20, 2006 3:44 am
Posts: 32
A small correction I wanted to have sql like

select <fields> from table1,table2,table3,table4 where <selection criteria>


Top
 Profile  
 
 Post subject: Re: Implementing multiple joins in Hibernate
PostPosted: Tue Apr 25, 2006 12:47 pm 
Expert
Expert

Joined: Tue Apr 25, 2006 12:04 pm
Posts: 260
Use either HQL or Criteria based queries depending on your requirements. Remember when using HQL, you have to specify correct alias'es.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.