<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
        "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">

<hibernate-configuration>
    <session-factory>
        <!-- SQL Dialect -->
        <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>

        <!-- Database Connection Settings -->
        <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
        <!--<property name="hibernate.connection.url">jdbc:h2:~/judo</property>-->
        <!--<property name="hibernate.connection.url">jdbc:h2:mem:judo;DB_CLOSE_DELAY=-1</property>-->
        <property name="connection.url">jdbc:mysql://localhost:3306</property>
        <property name="connection.username">root</property>
        <property name="connection.password"></property>
        <property name="hibernate.archive.autodetection">value</property>
        <!--<property name="hibernate.connection.password"></property>-->
        <property name="show_sql">false</property>
        <property name="hibernate.format_sql">true</property>

        <property name="hibernate.default_schema">judobl</property>

        <!-- JDBC connection pool (use the built-in) -->
        <property name="connection.pool_size">10</property>

        <!-- Disable the second-level cache  -->
        <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>

        <!-- Drop and re-create the database schema on startup -->
        <!--<property name="hbm2ddl.auto">create</property>-->
        <property name="hibernate.hbm2ddl.auto">create</property>
        <!--<property name="hbm2ddl.auto">create</property>-->

        <!-- Mapping With Model Class Containing Annotations -->
        <mapping class="at.ac.tuwien.domain.Begegnung" />
        <mapping class="at.ac.tuwien.domain.EinzelKampf" />
        <mapping class="at.ac.tuwien.domain.EinzelKampfBegegnung" />
        <mapping class="at.ac.tuwien.domain.Kaempfer" />
    </session-factory>
</hibernate-configuration>