-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Criteria and statistics
PostPosted: Mon Apr 12, 2010 6:05 pm 
Newbie

Joined: Mon Apr 12, 2010 5:55 pm
Posts: 2
We track Statistics in our application, but recently came to realize that Statistics.getQueries() does not return any Criteria queries. I realize that the method returns the HQL strings, but it also means that the Statistics are incomplete. I found a few older issues talking about this, but no resolution.

http://opensource.atlassian.com/project ... se/HHH-634
http://opensource.atlassian.com/project ... e/HHH-3452

The strange thing is that the count methods like Statistics.getQueryExecutionCount() return the TOTAL number of queries including the Critieria ones. However Statistics.getQueries ignores the Criteria. Frustrating.

Has anyone else figured out a way to track execution statistics for Criteria queries?

Thanks,

Chuck


Top
 Profile  
 
 Post subject: Re: Criteria and statistics
PostPosted: Wed Apr 21, 2010 11:31 am 
Newbie

Joined: Mon Apr 12, 2010 5:55 pm
Posts: 2
So no reply's.

This is not a terribly difficult change to source code to support this, but I am assuming by the lack of movement on an issue that was submitted 5 years ago that we will need to patch it ourself. Has anyone else done something similar?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.