日期:2014-05-16 浏览次数:20353 次
<?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="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.url">jdbc:mysql:///databases</property> <property name="hibernate.connection.username">root</property> <property name="hibernate.connection.password">root</property> <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> <property name="hibernate.hbm2ddl.auto">update</property> <!--第一次创建表的时候应该用create --> <property name="show_sql">true</property> <mapping resource="com/test/hibernate/model/ClientUser.hbm.xml" /> </session-factory> </hibernate-configuration>
<property name="hibernate.connection.url">jdbc:mysql:///databases?useUnicode=true&characterEncoding=UTF-8</property>