[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3452) Statistics for Criteria Queries
Thomas Hackel (JIRA)
noreply at atlassian.com
Wed Sep 15 09:03:22 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38401#action_38401 ]
Thomas Hackel commented on HHH-3452:
------------------------------------
Oliver Gierke posted a nice solution for this problem *until the core will be patched*:
[http://www.olivergierke.de/wordpress/2010/09/enabling-hibernate-critera-query-statistics-with-aspectj/]
To use his solution you have to build and "install" his project and add the following to your pom:
{code}
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>de.olivergierke.samples.aspectj.hibernate</groupId>
<artifactId>de.olivergierke.samples.aspectj.hibernate</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.3</version>
<configuration>
<verbose>true</verbose>
<privateScope>true</privateScope>
<complianceLevel>1.5</complianceLevel>
<!-- Exclude Java Files from being processed by AspectJ -->
<excludes>
<exclude>**/*.java</exclude>
</excludes>
<weaveDependencies>
<weaveDependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
</weaveDependency>
<weaveDependency>
<groupId>de.olivergierke.samples.aspectj.hibernate</groupId>
<artifactId>de.olivergierke.samples.aspectj.hibernate</artifactId>
</weaveDependency>
</weaveDependencies>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
{code}
> 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