All pastes #343149 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-02-06 20:34 UTC
rendered paste body
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
        "-//Hibernate/Hibernate Configuration DTD//EN"
        "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">

<hibernate-configuration>

    <!-- a SessionFactory instance listed as /jndi/name -->
<!--    <session-factory name="jdbc:/hibernate/SessionFactory"> -->
        <session-factory name="java:comp/env/hibernate/SessionFactory">
        <!-- properties -->
        <property name="connection.datasource">java:comp/env/jdbc/myDB</property>
                <!--
                        <property name="connection.username">user1</property>
                        <property name="connection.password">pass1</property>
                        <property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
                        <property name="connection.url">jdbc:oracle:thin:@vip-rac1:1521:myDB</property>
                -->

                <!--
        <property name="dialect">net.sf.hibernate.dialect.OracleDialect</property>
                -->
        <property name="dialect">net.sf.hibernate.dialect.Oracle9Dialect</property>
        <property name="show_sql">false</property>
        <property name="use_outer_join">false</property>
        <property name="jta.UserTransaction">
            java:comp/UserTransaction/
        </property>
        <property name="hibernate.cache.provider_class">net.sf.ehcache.hibernate.Provider</property>

        <!-- mapping files -->
        <mapping resource="com/ifx/databean/HotList.hbm.xml"/>
        <mapping resource="com/ifx/databean/List.hbm.xml"/>
        <mapping resource="com/ifx/databean/ListInList.hbm.xml"/>
        <mapping resource="com/ifx/databean/Mailbox.hbm.xml"/>
        <mapping resource="com/ifx/databean/MailContent.hbm.xml"/>
        <mapping resource="com/ifx/databean/MailDelivery.hbm.xml"/>
        <mapping resource="com/ifx/databean/MailMessage.hbm.xml"/>
        <mapping resource="com/ifx/databean/MailRecipient.hbm.xml"/>
        <mapping resource="com/ifx/databean/Organization.hbm.xml"/>
        <mapping resource="com/ifx/databean/OrgTree.hbm.xml"/>
        <mapping resource="com/ifx/databean/User.hbm.xml"/>

    </session-factory>

</hibernate-configuration>