dataSource {
pooled = true
url = jdbc:mysql://localhost/database_name?useUnicode=yes&characterEncoding=UTF-8
driverClassName = com.mysql.jdbc.Driver
username = database_user_name
password = database_password
dialect = org.hibernate.dialect.MySQL5InnoDBDialect
dbCreate = "update"
logSql = true
properties {
maxActive = 1000
maxIdle = 100
minIdle = 50
initialSize = 1
minEvictableIdleTimeMillis = 60000
timeBetweenEvictionRunsMillis = 60000
numTestsPerEvictionRun = 3
maxWait = 10000
testOnBorrow = true
testWhileIdle = true
testOnReturn = true
validationQuery = "SELECT 1"
}
}
Hibernate: /* insert com.pkm.LogTest */ insert into log_test (created, name, display_name, a_long_value) values (?, ?, ?, ?)
2014-05-05 09:42:44,803 [http-bio-8011-exec-10] TRACE sql.BasicBinder - binding parameter [1] as [TIMESTAMP] - Mon May 05 09:42:44 ALMT 2014
2014-05-05 09:42:44,803 [http-bio-8011-exec-10] TRACE sql.BasicBinder - binding parameter [2] as [VARCHAR] - Pritom Kumar Mondal
2014-05-05 09:42:44,803 [http-bio-8011-exec-10] TRACE sql.BasicBinder - binding parameter [3] as [VARCHAR] - pritom
2014-05-05 09:42:44,803 [http-bio-8011-exec-10] TRACE sql.BasicBinder - binding parameter [4] as [BIGINT] - 3
No comments:
Post a Comment