日期:2014-05-19 浏览次数:20687 次
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="entity.user" table="user" select-before-update="true"> <id name="id" type="java.lang.Integer"> <column name="user_id" /> <generator class="sequence" > <param name="sequence">admin_seq</param> </generator> </id> <property name="name" type="java.lang.String"> <column name="admin_name" length="20" not-null="true" /> </property> <property name="pass" type="java.lang.String"> <column name="admin_pass" length="20" not-null="true" /> </property> </class> </hibernate-mapping>