<property name="MId" column="M_Id" update="false" insert="false" />
<many-to-one name="MGH" class="MGH" lazy="false">
<column name="M_Id" />
</many-to-one>
<join table="SXX2">
<key column="Study_Key" />
<property name="GG" column="GG"/>
</join>
我想加入带左连接的SXX2表
答案 0 :(得分:2)
你在“可选”属性之后,即:
<join table="SXX2" optional="true">
<key column="Study_Key" />
<property name="GG" column="GG"/>
</join>