if (sessionFactory != null) {
return sessionFactory.getStatistics();
}
return null;
}
<BUG>private org.hibernate.stat.QueryStatistics getStatistics(EntityManagerFactory entityManagerFactory, String displayQueryName) {
HibernateEntityManagerFactory entityManagerFactoryImpl = (HibernateEntityManagerFactory) entityManagerFactory;</BUG>
SessionFactory sessionFactory = entityManagerFactoryImpl.getSessionFactory();
if (sessionFactory != null) {
String[] originalQueryNames = sessionFactory.getStatistics().getQueries();

if (sessionFactory != null) {
return sessionFactory.getStatistics();
}
return null;
}
private org.hibernate.stat.QueryStatistics getStatistics(EntityManagerFactory entityManagerFactory, String displayQueryName) {
if (entityManagerFactory == null) {
return null;
}
HibernateEntityManagerFactory entityManagerFactoryImpl = (HibernateEntityManagerFactory) entityManagerFactory;
SessionFactory sessionFactory = entityManagerFactoryImpl.getSessionFactory();
if (sessionFactory != null) {
String[] originalQueryNames = sessionFactory.getStatistics().getQueries();
