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
|