posted 15 years ago
I'm trying to do pagination so I need to know the count but it seems such a difficult task to find the count of a query which deferences another table. The query is
Patient POJO is
Here's my attempt at finding the count of this but no matter what it doesn't like the patient_insurance dereferning. I tried select count(*) way and this way and neither seems to work
I am totally lost and wondering what's an easy way just to get a count of a relatively simple query.
When doing select count(*) of the above query I get the "the owner fetched association was not present in the select list" error.
Thanks in advance.