-->
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: Implementing self join in hibernate
PostPosted: Mon Apr 07, 2008 4:27 am 
Newbie

Joined: Mon Apr 07, 2008 1:31 am
Posts: 1
There is a table which is as follows:
Type Value Rel_Id
type1 val1 abcRel
type2 val2 abcRel
type3 val3 abcRel
type1 val4 defRel
type2 val5 defRel
type3 val6 defRel
I need to fetch all the values which satisfy following condition:
Rel_ID= abcRel and Type =type1 and Value = val 1 and Type=type2
and Value = val2.
I feel there is a requirement of self join in such a type of
situation.
Can anyone tell me how to search for the above condition using
hibernate?


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.