Originally posted by Edvins Reisons:
Have you tried making that HQL count a named query and accessing it with that long-named method?
Yes, and it worked. I was just hoping I could use the mapped object in some way instead of creating a named query. Or perhaps Hibernate is not meant to be that way. That all other than getting a complete object (one row) of data or a list of them should be accessed through named queries. Such as queries with mathematical operations.
Well well. All is good.