Rev 21 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 21 | Rev 31 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <?xml version="1.0" encoding="UTF-8"?>
|
1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | <!DOCTYPE hibernate-configuration PUBLIC
|
2 | <!DOCTYPE hibernate-configuration PUBLIC
|
3 | "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
|
3 | "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
|
4 | "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
4 | "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
5 | <hibernate-configuration>
|
5 | <hibernate-configuration>
|
6 | <session-factory>
|
6 | <session-factory>
|
7 | <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> |
7 | <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> |
8 | 8 | ||
9 | <property name="hibernate.connection.url">jdbc:mysql://localhost/webengineering</property> |
9 | <property name="hibernate.connection.url">jdbc:mysql://localhost/webengineering</property> |
10 | <property name="hibernate.connection.username">webEngineering</property> |
10 | <property name="hibernate.connection.username">webEngineering</property> |
11 | <property name="connection.password">ontologie</property> |
11 | <property name="connection.password">ontologie</property> |
12 | 12 | ||
13 | <property name="connection.pool_size">1</property> |
13 | <property name="connection.pool_size">1</property> |
14 | <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> |
14 | <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> |
15 | 15 | ||
16 | <!-- Print all generated SQL to the console -->
|
16 | <!-- Print all generated SQL to the console -->
|
17 | <property name="show_sql">true</property> |
17 | <property name="show_sql">true</property> |
18 | <property name="format_sql">true</property> |
18 | <property name="format_sql">true</property> |
19 | <!--
|
- | |
20 | <property name="connection.provider_class">
|
- | |
21 | org.hibernate.connection.C3P0ConnectionProvider
|
19 | <!-- <property name="connection.provider_class"> org.hibernate.connection.C3P0ConnectionProvider
|
22 | </property>-->
|
20 | </property> -->
|
23 | <!-- C3P0 connection pool -->
|
21 | <!-- C3P0 connection pool -->
|
24 | <property name="hibernate.c3p0.min_size">5</property> |
22 | <property name="hibernate.c3p0.min_size">5</property> |
25 | <property name="hibernate.c3p0.max_size">20</property> |
23 | <property name="hibernate.c3p0.max_size">20</property> |
26 | <property name="hibernate.c3p0.timeout">300</property> |
24 | <property name="hibernate.c3p0.timeout">300</property> |
27 | <property name="hibernate.c3p0.max_statements">50 </property> |
25 | <property name="hibernate.c3p0.max_statements">50 </property> |
28 | <property name="hibernate.c3p0.idle_test_period">3000 </property> |
26 | <property name="hibernate.c3p0.idle_test_period">3000 </property> |
29 | 27 | ||
30 | <!--<property name="hbm2ddl.auto">create</property>-->
|
28 | <!--<property name="hbm2ddl.auto">create</property> -->
|
31 | <mapping class="ch.ffhs.webE.domain.ActionType" />
|
29 | <mapping class="ch.ffhs.webE.domain.ActionType" />
|
32 | <mapping class="ch.ffhs.webE.domain.History" />
|
30 | <mapping class="ch.ffhs.webE.domain.History" />
|
33 | <mapping class="ch.ffhs.webE.domain.Object" />
|
31 | <mapping class="ch.ffhs.webE.domain.Object" />
|
34 | <mapping class="ch.ffhs.webE.domain.ObjectType" />
|
32 | <mapping class="ch.ffhs.webE.domain.ObjectType" />
|
35 | <mapping class="ch.ffhs.webE.domain.Relationship" />
|
33 | <mapping class="ch.ffhs.webE.domain.Relationship" />
|
36 | <mapping class="ch.ffhs.webE.domain.RelationshipType" />
|
34 | <mapping class="ch.ffhs.webE.domain.RelationshipType" />
|
37 | <mapping class="ch.ffhs.webE.domain.Term" />
|
35 | <mapping class="ch.ffhs.webE.domain.Term" />
|
38 | <mapping class="ch.ffhs.webE.domain.User" />
|
36 | <mapping class="ch.ffhs.webE.domain.User" />
|
39 | </session-factory>
|
37 | </session-factory>
|
40 | </hibernate-configuration>
|
38 | </hibernate-configuration>
|