[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3452) Statistics for Criteria Queries

Chuck May (JIRA) noreply at atlassian.com
Wed May 5 15:39:06 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36921#action_36921 ] 

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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list