| 3,38 → 3,36 |
| "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
| "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
| <hibernate-configuration> |
| <session-factory> |
| <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> |
| |
| <property name="hibernate.connection.url">jdbc:mysql://localhost/webengineering</property> |
| <property name="hibernate.connection.username">webEngineering</property> |
| <property name="connection.password">ontologie</property> |
| |
| <property name="connection.pool_size">1</property> |
| <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> |
| |
| <!-- Print all generated SQL to the console --> |
| <property name="show_sql">true</property> |
| <property name="format_sql">true</property> |
| <!-- |
| <property name="connection.provider_class"> |
| org.hibernate.connection.C3P0ConnectionProvider |
| </property>--> |
| <!-- C3P0 connection pool --> |
| <property name="hibernate.c3p0.min_size">5</property> |
| <property name="hibernate.c3p0.max_size">20</property> |
| <property name="hibernate.c3p0.timeout">300</property> |
| <property name="hibernate.c3p0.max_statements">50 </property> |
| <property name="hibernate.c3p0.idle_test_period">3000 </property> |
| |
| <!--<property name="hbm2ddl.auto">create</property>--> |
| <mapping class="ch.ffhs.webE.domain.ActionType" /> |
| <mapping class="ch.ffhs.webE.domain.History" /> |
| <mapping class="ch.ffhs.webE.domain.Object" /> |
| <mapping class="ch.ffhs.webE.domain.ObjectType" /> |
| <mapping class="ch.ffhs.webE.domain.Relationship" /> |
| <mapping class="ch.ffhs.webE.domain.RelationshipType" /> |
| <mapping class="ch.ffhs.webE.domain.Term" /> |
| <mapping class="ch.ffhs.webE.domain.User" /> |
| </session-factory> |
| <session-factory> |
| <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> |
| |
| <property name="hibernate.connection.url">jdbc:mysql://localhost/webengineering</property> |
| <property name="hibernate.connection.username">webEngineering</property> |
| <property name="connection.password">ontologie</property> |
| |
| <property name="connection.pool_size">1</property> |
| <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> |
| |
| <!-- Print all generated SQL to the console --> |
| <property name="show_sql">true</property> |
| <property name="format_sql">true</property> |
| <!-- <property name="connection.provider_class"> org.hibernate.connection.C3P0ConnectionProvider |
| </property> --> |
| <!-- C3P0 connection pool --> |
| <property name="hibernate.c3p0.min_size">5</property> |
| <property name="hibernate.c3p0.max_size">20</property> |
| <property name="hibernate.c3p0.timeout">300</property> |
| <property name="hibernate.c3p0.max_statements">50 </property> |
| <property name="hibernate.c3p0.idle_test_period">3000 </property> |
| |
| <!--<property name="hbm2ddl.auto">create</property> --> |
| <mapping class="ch.ffhs.webE.domain.ActionType" /> |
| <mapping class="ch.ffhs.webE.domain.History" /> |
| <mapping class="ch.ffhs.webE.domain.Object" /> |
| <mapping class="ch.ffhs.webE.domain.ObjectType" /> |
| <mapping class="ch.ffhs.webE.domain.Relationship" /> |
| <mapping class="ch.ffhs.webE.domain.RelationshipType" /> |
| <mapping class="ch.ffhs.webE.domain.Term" /> |
| <mapping class="ch.ffhs.webE.domain.User" /> |
| </session-factory> |
| </hibernate-configuration> |