We are trying to verify queries run under Advanced Query thought the backend queries against the MySQL database. We had some difficulty getting queries that matched, so we started very simple with the attached query. As you can see, the count comes back with 484, but the detail shows 490 rows. 490 matches my backend query:
select count(*)
from catissue_coll_prot_reg cpr
join catissue_collection_protocol cp
on cpr.COLLECTION_PROTOCOL_ID = cp.IDENTIFIER
where cp.SHORT_TITLE = 'BEM'
and cpr.ACTIVITY_STATUS = 'Active'
;
I know the queries are not built in SQL directly, but rather via Hibernate. Is there an easy way to see what is being queried by Advanced Query so that we can verify that what is being returned is what we really want? I would like to be able to validate queries and investiagte discrepencies like the one described above.