Some APM-Tools support monitoring 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 would be nice. Not only for APM but also for debugging |