Hibernate配置

<?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="dialect">
		org.hibernate.dialect.MySQLDialect
		<!--
			Oracle  org.hibernate.dialect.Oracle9Dialect
			Sqlserver  org.hibernate.dialect.SQLServerDialect
			MySQL  org.hibernate.dialect.MySQLDialect
		-->
	</property>
	<property name="connection.url">
		jdbc:mysql://192.168.1.111:3306/test
		<!-- 
			Oracle:  jdbc:oracle:thin:@<server>[:<1521>]:<database_name>
			Sqlserver  jdbc:sqlserver://<server_name>:<port>[;databaseName=<dbname>]
			MySQL  jdbc:mysql://<hostname>[<:3306>]/<dbname>
		-->
	</property>
	<property name="connection.username">shaoxing</property>
	<property name="connection.password">shaoxing</property>
	<property name="connection.driver_class">
		com.mysql.jdbc.Driver
	</property>
	<mapping resource="com/xing/bean/User.hbm.xml" />

</session-factory>

</hibernate-configuration>

你可能感兴趣的:(oracle,Hibernate,mysql,jdbc,MyEclipse)