<?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="User" table="t_user">
<id name="id">
<generator class="native"/>
</id>
<property name="name"/>
<component name="contact"> //附属类
<property name="email">
</component>
</class>
</hibernate-mapping>
posted on 2009-03-02 01:53
simplye 阅读(339)
评论(0) 编辑 收藏 所属分类:
hibernate note