-->
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: Hibernate Criteria help
PostPosted: Mon Aug 02, 2010 4:55 am 
Newbie

Joined: Mon Aug 02, 2010 4:38 am
Posts: 1
Hi all,
Is it possible to build a join query like following using hibernate Criteria.
SQL: SELECT a.EMPL_NO, a.EMPL_NAME, b.DEPT_NAME FROM EMPL a, DEPT b WHERE a.DEPT_NO = b.DEPT_NO

Table structure is as follows
DEPT EMPL
-------- -------
DEPT_NO (P.K) EMPL_NO
DEPT_NAME EMPL_NAME
DEPT_DESC(Description) EMPL_AGE
DEPT_NO(F.K)

If there are any links please forward me.

Thanks in advance,
Khadaree Shaik


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.