Hi, is there any count() function in HQL that I can use to get a count of how many objects exist in the database?
In my case I need to get a count of all objects with a certain StatusId, something like
Code:
(?)count(?) resources from Resources as resources where resources.StatusId = 2
Obviously the syntax above is not correct, does anybody know the right way to do this? I could just select all the objects and return a count of them, but this seems like a waste when all I want to do is find out how many exist.