Some APM-Tools support monitoring of JPA queries. Some of them do this in a JPA-vendor-neutral way by using toString() to identify the CriteriaQuery.
Hibernate currently just gives e.g.: org.hibernate.jpa.ciretia.CriteriaQueryImpl@1b123asdf)
A nice string representation maybe of the JPQL string or string representations of all nodes in the Query-AST or something completely different would be nice. Not only for APM but also for debugging :)
|
|