Subversion Repositories WebE

Rev

Rev 19 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

1
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
                "-//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>
</hibernate-configuration>