Can somebody help me figure out how to express this SQL in HQL?
The problem is of cause how to convert the ORDER BY clause.
SELECT T.* FROM Test T
ORDER BY (
SELECT COUNT(TAR.TestId)
FROM Test2 TAR
WHERE T.Id = TAR.testId
AND TAR.datetime > (getDate() - 1)
)
DESC
Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---