hibernate.cfg.xml

<?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>

        <!-- Database connection settings -->
        <property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
        <property name="connection.url">jdbc:oracle:thin:@localhost:1521:orcl</property>
        <property name="connection.username">jhsysdb</property>
        <property name="connection.password">jhsysdb</property>

        <!-- Echo all executed SQL to stdout -->
        <property name="show_sql">true</property>
       
         <mapping resource = "com/pb/hibernate/po/Login.hbm.xml"/>

    </session-factory>

</hibernate-configuration>

hibernate.cfg.xml,布布扣,bubuko.com

hibernate.cfg.xml

上一篇:GNU/Linux中动态库的搜索路径的指定方法汇总


下一篇:eclipse CDT 无法识别 gcc某些关键字