读书人

hibernate.cfg.xml资料的配置

发布时间: 2012-09-02 21:00:34 作者: rapoo

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"><!-- Generated by MyEclipse Hibernate Tools.                   --><hibernate-configuration> <session-factory>  <property name="connection.username">zhouhaitao</property>  <property name="connection.url">   jdbc:oracle:thin:@localhost:1521:ORCL  </property>  <property name="dialect">   org.hibernate.dialect.Oracle9Dialect  </property>  <property name="myeclipse.connection.profile">   oracle_ssh_connectioon  </property>  <property name="connection.password">zhouhaitao</property>  <property name="connection.driver_class">   oracle.jdbc.driver.OracleDriver  </property>  <property name="show_sql">true</property>  <mapping resource="pack/java/ssh/pojo/Student.hbm.xml" /> </session-factory></hibernate-configuration>

?

读书人网 >XML SOAP

热点推荐