-->
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: Convert to hibernate criteria
PostPosted: Sat Aug 20, 2011 9:06 am 
Newbie

Joined: Wed Jul 27, 2011 10:31 am
Posts: 5
does anyone knows the equivalent hibernate criteria for this native sql?
Code:
select this_.QUERY_DT          as QUERY1_2_1_,     
       this_.LINK              as LINK2_1_,
       this_.YYYYMM            as YYYYMM2_1_,
       this_.YYYYWW            as YYYYWW2_1_,
       cal1_.QUERY_DT          as QUERY17_2_3_,     
       cal1_.QUERY_DT          as QUERY17_0_0_,       
       cal1_.SITE              as SITE0_0_,
       cal1_.TYPE              as TYPE0_0_,     
       cal1_.WORK_PCT          as WORK16_0_0_
  from TABLE_A this_
  left outer join (select * from TABLE_B ex where ex.site='PO' and ex.type='SITE') cal1_ on this_.query_dt = cal1_.query_dt
where this_.YYYYMM = 201107



thanks,
alva


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.