Mercurial > hg > LGServices
view src/main/resources/hibernate.cfg.xml @ 14:3387d855a194
new: toc status in books page
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 29 May 2015 11:00:09 +0200 |
parents | 9c6e74761f60 |
children | 5b1856cd6b4f |
line wrap: on
line source
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <!-- hibernate.cfg.xml --> <property name="c3p0.min_size">5</property> <property name="c3p0.max_size">20</property> <property name="c3p0.timeout">1800</property> <property name="c3p0.max_statements">50</property> <property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> <!-- Database connection settings --> <!-- <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> --> <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.url">jdbc:mysql://localhost/LGServices?characterEncoding=UTF-8</property> <property name="hibernate.connection.username">root</property> <property name="hibernate.connection.password">admin</property> <property name="hibernate.connection.charSet">UTF-8</property> <!-- JDBC connection pool (use the built-in) --> <property name="hibernate.connection.pool_size">1</property> <!-- Enable Hibernate's automatic session context management --> <property name="hibernate.current_session_context_class">thread</property> <!-- Disable the second-level cache --> <!-- <property name="hibernate.cache.provider_class">org.hibernate.cache.internal.NoCacheProvider</property> --> <!-- <property name="hibernate.show_sql">true</property> <property name="hibernate.hbm2ddl.auto">create</property> --> <mapping class="de.mpiwg.gazetteer.bo.LGBranch"/> <mapping class="de.mpiwg.gazetteer.bo.LGFile"/> <mapping class="de.mpiwg.gazetteer.bo.Sequence"/> </session-factory> </hibernate-configuration>