diff src/main/resources/hibernate.cfg.xml.template @ 59:403afc3d94eb remove_escidoc

delete config files of instance in repo. copy *.template and edit in instance.
author casties
date Mon, 30 Nov 2015 15:37:10 +0100
parents d18e60c5da80
children
line wrap: on
line diff
--- a/src/main/resources/hibernate.cfg.xml.template	Mon Nov 23 15:23:30 2015 +0100
+++ b/src/main/resources/hibernate.cfg.xml.template	Mon Nov 30 15:37:10 2015 +0100
@@ -2,30 +2,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>
-		<!-- second level cache configuration -->
-		<!-- Enable/Disable the second-level cache -->
-		<property name="cache.use_second_level_cache">true</property>
-		<property name="cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
-		<property name="cache.use_structured_entries">true</property>
-		<property name="cache.use_query_cache">false</property>
-		<property name="cache.use_minimal_puts">true</property>
-
-		<!-- property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property-->
+	
+		<!-- C3p0 -->
+		<property name="hibernate.c3p0.acquire_increment">1</property>
+		<property name="hibernate.c3p0.idle_test_period">300</property>
+		<property name="hibernate.c3p0.timeout">120</property>
+		<property name="hibernate.c3p0.max_size">25</property>
+		<property name="hibernate.c3p0.min_size">1</property>
+		<property name="hibernate.c3p0.max_statement">0</property>
+		<property name="hibernate.c3p0.preferredTestQuery">select 1;</property>
+		
+  		<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
+        
+		<!-- <property name="show_sql">true</property> -->
+		<!-- <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> -->
+		
 		<property name="hibernate.dialect">org.mpi.openmind.repository.utils.CustomMysqlDialect</property>
 		<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
 		<property name="hibernate.connection.url">jdbc:mysql://localhost/openmind?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>
-		<!--property name="show_sql">true</property-->
+        <property name="hibernate.connection.charSet">UTF-8</property>  
+        <property name="hibernate.connection.username">root</property>
+		<property name="hibernate.connection.password"></property>
+                 		
+		<!-- <property name="show_sql">true</property> -->
 		<property name="current_session_context_class">thread</property>
-		<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
-		<!--property name="hbm2ddl.auto">create</property-->
+		<!-- <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> -->
+		<!-- <property name="hbm2ddl.auto">create</property> -->
+		<!-- <property name="hibernate.hbm2ddl.auto">validate</property> -->
+		
+		
 		<mapping class="org.mpi.openmind.repository.bo.Node" />
 		<mapping class="org.mpi.openmind.repository.bo.Attribute" />
 		<mapping class="org.mpi.openmind.repository.bo.Entity" />
 		<mapping class="org.mpi.openmind.repository.bo.Relation" />
 		<mapping class="org.mpi.openmind.repository.bo.View" />
+		<mapping class="org.mpi.openmind.repository.bo.ViewerAttribute" />
+		<mapping class="org.mpi.openmind.repository.bo.ViewerPage" />
 		<mapping class="org.mpi.openmind.repository.bo.utils.Sequence" />
 		<mapping class="org.mpi.openmind.security.bo.User" />
 		<mapping class="org.mpi.openmind.security.bo.Group" />