Mercurial > hg > LGServer
view src/main/resources/hibernate.cfg.xml @ 8:10b6e9d96d59
Changing the URL of the extraction interface.
author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
---|---|
date | Tue, 17 Mar 2015 10:51:19 +0100 |
parents | 7682c04c63a8 |
children |
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/LGServer?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>