[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3452?page=c...
]
Chuck May commented on HHH-3452:
--------------------------------
I just implemented a local fix to this problem and it is really simple. I added the
following method to CriteriaLoader.java:
protected String getQueryIdentifier() {
return "[CRITERIA] " + getSQLString();
}
That is it. I get full statistics now on *all* my queries. However compiling the project
is not the most straightforward thing to do and I would really appreciate it if this fix
(or something similar) could be rolled into the source code.
Thanks.
Statistics for Criteria Queries
-------------------------------
Key: HHH-3452
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3452
Project: Hibernate Core
Issue Type: New Feature
Components: query-criteria
Reporter: Rohit N
Priority: Blocker
Original Estimate: 40h
Remaining Estimate: 40h
Criteria Queries are not part of the Query Statistics. This gives an incomplete
"picture" to the user.
Currently, the Statistics is only for HQL queries.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira