<?xml version="1.0" encoding="UTF-8"?>
<!-- dtd文件在:hibernate3.jar\org\hibernate\hibernate-mapping-3.0.dtd -->
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping> <!-- dynamic-insert="true" turns the sql statement into an insert-only field. ! ! -->
<!-- dynamic-update="true" turns the sql statement into an update-only field. -->
<class name="com.anrongtec.domain.Person" table="PERSONS"><!-- mutable="false" All fields in the class will not be updated. -->
<!-- Map primary key-->
<!-- <id name="id" column="ID" type="int" length="11">
Primary key generation strategy: For now, remember to use native
< generator class="native"></generator>
OID is controlled by hibernate.
</id> -->
<id name="id" column="ID" type="int" length="11">
<!-- Primary key generation strategy: For now, remember to use native -->
<generator class ="hilo"><!
<param name="max_lo">5</param>
</generator>
</id>
<!-- 映射类中的属性和数据库表字段的关系 -->
<property name="name" insert="false" column="NAME"></property>
<property name="birthday" column="BIRTHDAY"></property>
<property name="address" column="ADDRESS"></property>
</class>
</hibernate-mapping>