Hi
I have a problem with statistics for Hibernate 3.2.4.sp1 with c3p0.
I have statistic option enabled in my hibernate.hbm.xml file:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
...
<property name="hibernate.generate_statistics">true</property>
But when I start my application (stand alone Java app) I can see a following message:
Code:
2007-06-25 19:56:09,882 [main] INFO () SettingsFactory: Statistics: disabled
Statistics seems to not work too. For example when I try to get number of entities fetched from DB i always get a 0 value:
Code:
fe = HibernateUtil.getSessionFactory().getStatistics().getEntityFetchCount();
Someone have an idea what I’m doing wrong?
Kind regards,
Adam