-->
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: How to time duration calculate using hibernate criteria
PostPosted: Tue Feb 28, 2012 12:38 am 
Newbie

Joined: Sat Feb 25, 2012 6:17 am
Posts: 2
Hello Friends,

i am a new of hibernate since last one month i have to using and starting my application so please how to start time and end time time duration calculate for hibernate criteria.

My requirement for STAT TIME, END TIME, USERID, each an every time i search the time duration taken from userid based time duration calculating with sum of the value

Eg: time duration 00.00

stil now i am using hibernate query to replaced criteria :

query : SELECT sum(abs(extract(epoch from start_time - end_time)/3600)) from usageduration where apps_appid_ref = '" + appid + "'";

HOW CAN I CHANGE THE CRITERIA FORMAT ? Please any idea let me know ASAP.....

Thanks


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.