hibernate 中property-ref有什么用处?
在hibernate的配置文件中:
<?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>
<class name="com.nlb.entity.Group" table="ugroup">
<id name="id" column="id" type="java.lang.Integer">
<generator class="increment"/>
</id>
<property name="name" column="name" type="java.lang.String"/>
<one-to-one name="user" class="com.nlb.entity.User" [color=#FF00FF]property-ref="group"/>
</class>
</hibernate-mapping>[/color]
其中propery-ref 的用处是什么?
------解决方案--------------------