Test case
- import the sample Spring Boot application from https://github.com/icidel/spring-boot-jmx-export-of-hibernate-statistics as an Eclipse project (or your favorite)
- execute the map class "Application"
- execute jconsole from you JDK bin folder and connect to the running application
- open the MBean tab
- access the Hibernate/Statistics MBean "operations" panel
- run the getEntityStatistics opération with "com.example.hibernatestatsdemo.Customer" as entityName argument
This test case is *OK *if the pom.xml file references Hibernate 5.2.x and earlier : entity statistics are returned successfully. This test case is *KO *if the pom.xml file references Hibernate 5.3.0 to 5.3.6: an unmarshalling exception is raised because the EntityStatistics interface is not fully serializable. |