Evening all,

I have a table with two columns; one that stores the start time of a
session and another with the stoptime of a session, cryptically named,
STARTTIME and STOPTIME.

Sorting by one or the other is easliy done by addDescendingOrderByColumn
(or, of course, addAscendingOrderByColumn). But how can I sort by the
difference between these two columns (i.e. the session duration)? This
can be done in sql by simply stating ORDER BY STOPTIME - STARTTIME, but
can I do this using the criteria object?

Thanks in advance,
John.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to