-->
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: inner join using HQL
PostPosted: Tue Apr 02, 2013 1:16 am 
Newbie

Joined: Tue Apr 02, 2013 1:09 am
Posts: 1
Hi All,

i have two tables.

for one HBM file i have composite key . second hbm file has primary key . PLease tell me HQl to join these two tables.


Top
 Profile  
 
 Post subject: Re: inner join using HQL
PostPosted: Thu Apr 04, 2013 3:27 am 
Newbie

Joined: Wed Mar 13, 2013 11:32 am
Posts: 16
You can join objects like you do in normal SQL

Code:
select t1 from TableObjec1 t1, TableObject2 t2 where t2.fieldName = t1.fieldName


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.