-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: problem with statistics
PostPosted: Mon Jun 25, 2007 2:05 pm 
Beginner
Beginner

Joined: Wed Sep 06, 2006 12:08 pm
Posts: 48
Location: Warsaw - Poland - Europe - Milky Way
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.