<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.simplye.hibernate">
<class name="Animal" table="t_animal">
<id name="id">
<generator class="native"/>
</id>
<property name="name"/>
<property name="sex"/>
<joined-subclass name="Pig" table="t_pig">
<key column="pig"/>
<property name="weight"/>
</joined-subclass>
<joined-subclass name="Bird" table="t_brid">
<key column="brid"/>
<property name="height"/>
</joined-subclass>
</class>
</hibernate-mapping>
posted on 2009-03-01 22:46
simplye 阅读(326)
评论(0) 编辑 收藏 所属分类:
hibernate note