<?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">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<!--hibernate-mapping 里面的package属性可以指定包名 -->
<hibernate-mapping>
<!--
class 是指定类和表关联的xml:
name->类名
table->表名
catalog->数据库名
-->
<class name="db.dbontrol.dbclass.ZhangjieBiao" table="zhangjie_biao" schema="dbo" catalog="shiti">
<!--
id 是指定主键的xml:
name->类名的属性列
type->属性列数据类型
-->
<id name="id" type="java.lang.Long">
<column name="ID" precision="4" scale="0" />
<!--
generator 用来为该持久化类生成唯一性标识的xml:
class->指定一款属性生成器
-->
<generator class="native" />
</id>
<property name="zhangjie" type="java.lang.String">
<!--
colum 是指一个表的主键名:
name->主键名称
precision->属性列计算的精度
length->属性列的长度
not-null->该列不能为空
-->
<column name="zhangjie" length="60" not-null="true" />
</property>
<property name="kemuId" type="java.lang.Long">
<column name="kemu_ID" precision="2" scale="0" not-null="true" />
</property>
<property name="xueqiId" type="java.lang.Long">
<column name="xueqi_ID" precision="2" scale="0" not-null="true" />
</property>
<property name="beiZhu" type="java.lang.String">
<column name="bei_zhu" length="300" />
</property>
</class>
</hibernate-mapping>