-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tanzir Mehedi Shawon
authored
May 13, 2017
1 parent
ffeebd6
commit 898e1f7
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?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.connection.driver_class">com.mysql.jdbc.Driver</property> | ||
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/student</property> | ||
<property name="hibernate.connection.username">root</property> | ||
<property name="hibernate.connection.password">12345</property> | ||
<property name="hibernate.connection.pool_size">10</property> | ||
<property name="show_sql">true</property> | ||
<property name="dialect">org.hibernate.dialect.MySQLDialect</property> | ||
<property name="hibernate.hbm2ddl.auto">update</property> | ||
<!-- Enable Hibernate's current session context --> | ||
<property name="current_session_context_class">thread</property> | ||
<!-- Disable the second-level cache --> | ||
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> | ||
<!-- Echo all executed SQL to stdout --> | ||
<property name="show_sql">true</property> | ||
</session-factory> | ||
</hibernate-configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
### direct log messages to stdout ### | ||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender | ||
log4j.appender.stdout.Target=System.out | ||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n | ||
|
||
### set log levels - for more verbose logging change 'info' to 'debug' ### | ||
|
||
log4j.rootLogger=warn, stdout | ||
|
||
log4j.logger.org.hibernate=info | ||
#log4j.logger.org.hibernate=debug | ||
|
||
### log HQL query parser activity | ||
#log4j.logger.org.hibernate.hql.ast.AST=debug | ||
|
||
### log just the SQL | ||
#log4j.logger.org.hibernate.SQL=debug | ||
|
||
### log JDBC bind parameters ### | ||
log4j.logger.org.hibernate.type=info | ||
#log4j.logger.org.hibernate.type=debug | ||
|
||
### log schema export/update ### | ||
log4j.logger.org.hibernate.tool.hbm2ddl=debug | ||
|
||
### log HQL parse trees | ||
#log4j.logger.org.hibernate.hql=debug | ||
|
||
### log cache activity ### | ||
#log4j.logger.org.hibernate.cache=debug | ||
|
||
### log transaction activity | ||
#log4j.logger.org.hibernate.transaction=debug | ||
|
||
### log JDBC resource acquisition | ||
#log4j.logger.org.hibernate.jdbc=debug | ||
|
||
### enable the following line if you want to track down connection ### | ||
### leakages when using DriverManagerConnectionProvider ### | ||
#log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace |