Mercurial > hg > LGServices
diff src/main/resources/hibernate.cfg.xml @ 0:3e62083dbcbf
First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
---|---|
date | Thu, 23 Apr 2015 15:46:01 +0200 |
parents | |
children | 7ffaefcee5b5 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/resources/hibernate.cfg.xml Thu Apr 23 15:46:01 2015 +0200 @@ -0,0 +1,42 @@ +<!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>