2
|
1 <?xml version="1.0" encoding="UTF-8"?>
|
|
2 <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
|
3 <hibernate-configuration>
|
|
4 <session-factory>
|
|
5
|
|
6 <!-- C3p0 -->
|
|
7 <property name="hibernate.c3p0.acquire_increment">1</property>
|
|
8 <property name="hibernate.c3p0.idle_test_period">300</property>
|
|
9 <property name="hibernate.c3p0.timeout">120</property>
|
|
10 <property name="hibernate.c3p0.max_size">25</property>
|
|
11 <property name="hibernate.c3p0.min_size">1</property>
|
|
12 <property name="hibernate.c3p0.max_statement">0</property>
|
|
13 <property name="hibernate.c3p0.preferredTestQuery">select 1;</property>
|
|
14
|
|
15 <property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
|
|
16
|
|
17 <!-- <property name="show_sql">true</property> -->
|
|
18 <!-- <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> -->
|
|
19
|
|
20 <property name="hibernate.dialect">org.mpi.openmind.repository.utils.CustomMysqlDialect</property>
|
|
21 <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
|
|
22 <property name="hibernate.connection.url">jdbc:mysql://localhost/openmind?characterEncoding=UTF-8</property>
|
|
23 <property name="hibernate.connection.charSet">UTF-8</property>
|
|
24 <property name="hibernate.connection.username">root</property>
|
|
25 <property name="hibernate.connection.password">e1nste1n</property>
|
|
26
|
|
27 <!--
|
|
28 <property name="hibernate.connection.username">ismi</property>
|
|
29 <property name="hibernate.connection.password">ismipw</property>
|
|
30 <property name="hibernate.connection.username">root</property>
|
|
31 <property name="hibernate.connection.password">e1nste1n</property>
|
|
32 <property name="hibernate.connection.username">root</property>
|
|
33 <property name="hibernate.connection.password">dm2eroot</property>
|
|
34 <property name="hibernate.connection.username">root</property>
|
|
35 <property name="hibernate.connection.password">admin</property>
|
|
36 -->
|
|
37
|
|
38 <!-- <property name="show_sql">true</property> -->
|
|
39 <property name="current_session_context_class">thread</property>
|
|
40 <!-- <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> -->
|
|
41 <!-- <property name="hbm2ddl.auto">create</property> -->
|
|
42 <!-- <property name="hibernate.hbm2ddl.auto">validate</property> -->
|
|
43
|
|
44
|
|
45 <mapping class="org.mpi.openmind.repository.bo.Node" />
|
|
46 <mapping class="org.mpi.openmind.repository.bo.Attribute" />
|
|
47 <mapping class="org.mpi.openmind.repository.bo.Entity" />
|
|
48 <mapping class="org.mpi.openmind.repository.bo.Relation" />
|
|
49 <mapping class="org.mpi.openmind.repository.bo.View" />
|
|
50 <mapping class="org.mpi.openmind.repository.bo.ViewerAttribute" />
|
|
51 <mapping class="org.mpi.openmind.repository.bo.ViewerPage" />
|
|
52 <mapping class="org.mpi.openmind.repository.bo.utils.Sequence" />
|
|
53 <mapping class="org.mpi.openmind.security.bo.User" />
|
|
54 <mapping class="org.mpi.openmind.security.bo.Group" />
|
|
55 <mapping class="org.mpi.openmind.security.bo.Role" />
|
|
56 <mapping class="org.mpi.openmind.security.bo.Permission" />
|
|
57 <mapping class="org.mpi.openmind.security.bo.utils.UserRole" />
|
|
58 <mapping class="org.mpi.openmind.security.bo.utils.GroupRole" />
|
|
59 <mapping class="org.mpi.openmind.security.bo.utils.UserGroup" />
|
|
60 <mapping class="org.mpi.openmind.security.bo.utils.RolePermission" />
|
|
61 </session-factory>
|
|
62 </hibernate-configuration>
|