<?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">net.sf.log4jdbc.DriverSpy</property>
        <property name="hibernate.connection.url">jdbc:log4jdbc:hsqldb:mem:testdb</property>
        <property name="hibernate.connection.username">sa</property>
        <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
        <property name="hibernate.show_sql">true</property>
        <property name="hibernate.format_sql">true</property>
		<property name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
        <property name="hibernate.cache.use_second_level_cache">true</property>     
        <property name="hbm2ddl.auto">create</property>

        <!-- Enable Hibernate's automatic session context management -->
        <property name="current_session_context_class">thread</property>
        <mapping resource="anyframe/sample/model/bidirection/cache/Category.hbm.xml"/>
        <mapping resource="anyframe/sample/model/bidirection/cache/Country.hbm.xml"/>
        <mapping resource="anyframe/sample/model/bidirection/cache/Movie.hbm.xml"/>
                
    </session-factory>
</hibernate-configuration>

