Beginner |
|
Joined: Tue Aug 01, 2006 4:57 am Posts: 25
|
Hi
I am new to Hibernate and HQL. Please help me, possibly with an example. In my application, I am using MySQL and I need to query the DB to find the time difference between two rows in a table.
The situation is something like this...
In row 1: there is a date (D1) column and I need to find the time difference by subtracting D1 from D2 (in row2). What will be Hibernate query for this? What do I need to do to repeat this for all rows of the table?
Please help me with this...
|
|