67,513
社区成员
发帖
与我相关
我的任务
分享
<hibernate-mapping package="dazzleCN.mysql.jyz.vo">
<class name="UserAccount" table="t_useraccount">
<id name="id" column="userid">
<generator class="native"></generator>
</id>
<property name="username" not-null="true"></property>
<property name="password" not-null="true"></property>
<property name="usertype" not-null="true"></property>
<property name="usernickname" not-null="true"></property>
</class>
</hibernate-mapping>
<hibernate-configuration>
<session-factory >
<property name="hibernate.connection.url">jdbc:mysql:///test</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">root</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="hibernate.show_sql">true</property>
<mapping resource="dazzleCN/mysql/jyz/vo/UserAccount.hbm.xml" />
<mapping resource="dazzleCN/mysql/jyz/vo/UserInfo.hbm.xml" />
<mapping resource="dazzleCN/mysql/jyz/vo/Commodity.hbm.xml" />
</session-factory>
</hibernate-configuration>
<hibernate-configuration>
<session-factory >
<property name="hibernate.connection.url">jdbc:mysql:///test</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">root</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="hibernate.show_sql">true</property>
<mapping resource="dazzleCN/mysql/jyz/vo/UserAccount.hbm.xml" />
<mapping resource="dazzleCN/mysql/jyz/vo/UserInfo.hbm.xml" />
<mapping resource="dazzleCN/mysql/jyz/vo/Commodity.hbm.xml" />
</session-factory>
</hibernate-configuration>