ssh 连接oracle hibernate配置

来源:互联网 发布:博客系统源码 编辑:程序博客网 时间:2024/06/05 10:50
<!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.dialect">org.hibernate.dialect.OracleDialect</property>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.username">li</property>
<property name="hibernate.connection.password">p123</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@172.18.2.243:1521:liorclli</property>
<property name="hibernate.show_sql">true</property>

<property name="hibernate.hbm2ddl.auto">update</property>


<mapping resource="li/entity/Student.hbm.xml"/>
<mapping resource="li/entity/Department.hbm.xml"/>
</session-factory>

</hibernate-configuration>
原创粉丝点击