hibernate.cfg.xml

时间:2014-04-03 07:33:51   收藏:0   阅读:571

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

原文:http://www.cnblogs.com/kisso143/p/3642061.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!