Statistics is not enabled: Hibernate Statistics API access error
Statistics is not enabled The Hibernate ORM throws a org.hibernate.HibernateException with the message "Statistics is not enabled" when SessionFactory.getStatistics() is called while statistics collection is not explicitly activated. This behavior is documented in the Hibernate 5.x and 6.x APIs and is triggered only by accessing the statistics API, not by ot