-->
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: suggestions reg better way to do this
PostPosted: Mon Apr 08, 2013 6:49 pm 
Newbie

Joined: Mon Apr 08, 2013 6:42 pm
Posts: 3
I have a query---
select t1.column1 from table1 t1 where t1.column2=(select t2.column1 from table2 t2 where ....2 conditions) and t1.column3=(select t3.col1 from table3 t3,table t2 where ..condition)

I am not sure best way to implement using hibernate 3.0....


Top
 Profile  
 
 Post subject: Re: suggestions reg better way to do this
PostPosted: Mon Apr 08, 2013 11:10 pm 
Newbie

Joined: Mon Apr 08, 2013 6:42 pm
Posts: 3
THe query is

select edc.da_level from CR_excessdacalculation edc where edc.excessdacal_id=
(select dacalc_id from cr_dacalcmatrix WHERE curr_type=
(select exm.currency from cr_excess_master exm WHERE exm.cif ='100090631';) and new_rg=
(select em.risk_group_id from cr_entitymaster em, cr_excess_master exm where em.cif_number ='100090631' and em.cif_number= exm.cif;);
)


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.