-->
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.  [ 2 posts ] 
Author Message
 Post subject: How to stop hibernate stats printing to console
PostPosted: Thu Aug 03, 2006 7:07 pm 
Newbie

Joined: Mon Jul 31, 2006 2:41 pm
Posts: 13
Everytime sql is executed, hibernate spits this out on my screen. How can I tell hibernate to not do this in the hibernate.cfg.xml file? Thank you.


Configuration resource: /hibernate.cfg.xml
- Reading mappings from resource: resources/callq.hbm.xml
- Mapping class: com.lendingcrowd.hibernate.CallQ -> lendingcrowd.callq
- Reading mappings from resource: resources/customer.hbm.xml
- Mapping class: com.lendingcrowd.hibernate.Customer -> lendingcrowd.customer
- Reading mappings from resource: resources/users.hbm.xml
- Mapping class: com.lendingcrowd.core.Account -> lendingcrowd.users
- Configured SessionFactory: null
- JNDI InitialContext properties:{}
- Using datasource: jdbc/mysqlds
- RDBMS: MySQL, version: 5.0.22-standard
- JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.3 ( $Date: 2006-07-26 17:26:47 +0200 (Wed, 26 Jul 2006) $, $Revision: 5553 $ )
- Using dialect: org.hibernate.dialect.MySQLDialect
- Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
- No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
- Automatic flush during beforeCompletion(): disabled
- Automatic session close at end of transaction: disabled
- JDBC batch size: 15
- JDBC batch updates for versioned data: disabled
- Scrollable result sets: enabled
- JDBC3 getGeneratedKeys(): enabled
- Connection release mode: auto
- Maximum outer join fetch depth: 2
- Default batch fetch size: 1
- Generate SQL with comments: disabled
- Order SQL updates by primary key: disabled
- Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
- Using ASTQueryTranslatorFactory
- Query language substitutions: {}
- Second-level cache: enabled
- Query cache: disabled
- Cache provider: org.hibernate.cache.NoCacheProvider
- Optimize cache for minimal puts: disabled
- Structured second-level cache entries: disabled
- Echoing all SQL to stdout
- Statistics: disabled
- Deleted entity synthetic identifier rollback: disabled
- Default entity-mode: pojo
- building session factory
- Not binding factory to JNDI, no JNDI name configured
Hibernate: select callq0_.id as id239_0_, callq0_.time as time239_0_, callq0_.name as name239_0_, callq0_.status as status239_0_, callq0_.calls as calls239_0_, callq0_.lo_id as lo6_239_0_, callq0_.cid as cid239_0_, callq0_.alert as alert239_0_ from lendingcrowd.callq callq0_ where callq0_.id=?
Hibernate: update lendingcrowd.callq set time=?, name=?, status=?, calls=?, lo_id=?, cid=?, alert=? where id=?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 03, 2006 7:48 pm 
Expert
Expert

Joined: Tue Apr 25, 2006 12:04 pm
Posts: 260
Configure your log4j.properties file to not print out everything.

Example file you can find in your hibernate installation under "/Hibernate_home/etc/log4j.properties"


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

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.