private Set<PresentProductSociety> PPSSet;//實體屬性
<set name="PPSSet">
<comment>一方配置</comment>
<key column="society_id"/>
<one-to-many class="cn.pojo.PresentProductSociety"/>
</set>
private Society society;//實體屬性
<many-to-one name="society" class="cn.pojo.Society" fetch="select">
<column name="society_id">
<comment>多方配置</comment>
</column>
</many-to-one>
////////////////////////////以下是單向,也就是只需要配置一部分/////////////////
private Society society;//實體屬性
<many-to-one name="society" class="cn.pojo.Society" fetch="select">
<column name="society_id">
<comment>多方配置</comment>
</column>
</many-to-one>