I have no log output hibernate.properties file:
#define query langugage constants/function names
hibernate.query.substitutions true 1, false 0, yes 'Y', no 'N'
##PLATFORM
#MySQL
## JNDI Datasource
#hibernate.connection.datasource jdbc/quickstart
hibernate.dialect net.sf.hibernate.dialect.MySQLDialect
hibernate.connection.driver_class org.gjt.mm.mysql.Driver
hibernate.connection.driver_class com.mysql.jdbc.Driver
hibernate.connection.url jdbc:mysql:///avvik
hibernate.connection.username dag
hibernate.connection.password password
#Hibernate Connection Pool
hibernate.connection.pool_size 5
###################################
### Apache DBCP Connection Pool ###
###################################
## connection pool
hibernate.dbcp.maxActive 100
hibernate.dbcp.whenExhaustedAction 1
hibernate.dbcp.maxWait 120000
hibernate.dbcp.maxIdle 10
## prepared statement cache
hibernate.dbcp.ps.maxActive 100
hibernate.dbcp.ps.whenExhaustedAction 1
hibernate.dbcp.ps.maxWait 120000
hibernate.dbcp.ps.maxIdle 10
## optional query to validate pooled connections:
#hibernate.dbcp.validationQuery select 1 from dual
#hibernate.dbcp.testOnBorrow true
#hibernate.dbcp.testOnReturn false
#Proxool Connection Pool
hibernate.proxool.pool_alias pool1
##MISCELLANEOUS SETTINGS
#Show SQL
hibernate.show_sql true
#auto shema export
hibernate.hbm2ddl.auto create
#set the the maximum JDBC 2 batch size (a nonzero value enables batching)
hibernate.jdbc.batch_size 0
#use streams when writing binary types to/from JDBC
hibernate.jdb.use_streams_for_binary true
#Set the maximum depth of the outer join fetch tree
hibernate.max_fetch_depth 1
#enable the query cache
hibernate.cache.use_query_cache true
#cache implementation
hibernate.cache.provider_class net.sf.ehcache.hibernate.Provider
hibernate .cfg.xml
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- Mapping files -->
<mapping resource="bin/user/*.hbm.xml"/>
</session-factory>
</hibernate-configuration>
|