xml 代码
xml version="1.0" encoding="utf-8"?> PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="hibernate.connection.url">jdbc:mysql://127.0.0.1/hibernateproperty> <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driverproperty> <property name="hibernate.connection.username">rootproperty> <property name="hibernate.connection.password">tigerproperty> <property name="dialect">org.hibernate.dialect.MySQLDialectproperty> <property name="hibernate.show_sql">trueproperty> <mapping resource="com/bjsxt/hibernate/one2many/One2Many.hbm.xml"/> session-factory> hibernate-configuration>