-->
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: can this query be converted in to hibernate query?
PostPosted: Thu Apr 24, 2008 3:58 am 
Newbie

Joined: Thu Apr 17, 2008 2:55 am
Posts: 2
select sa.account_id "Account id",date_format(rph.trn_date,'%d-%m-%Y') "Date",if(rph.trn_type=6,rph.total_trn_value,"") "Deposit",
if(rph.trn_type=7,rph.total_trn_value,"") "Withdraw",
cgcm.display_name "Customer name"
from saving_accounts sa,receipt_payment_header rph,
center_group_customer_master cgcm
where rph.trn_date between $P{fromDate} and $P{toDate} and
sa.customer_id=rph.customer_id and
sa.savings_id=rph.account_id and
rph.customer_id=cgcm.customer_id and sa.del_flag='N' and
cgcm.del_flag='N' and sa.status='V' and rph.status='V' and
cgcm.status='A' and rph.total_trn_value!=0 and rph.prd_type_id=2 and
rph.trn_type in(6,7) order by rph.trn_date;



Please help me on converting this query into hibernate query my mail id is deepakbalagopal@gmail.com.


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.