我有以下映射:
<class name="xxx" table="t1" schema="s1" lazy="false">
<composite-id>
<key-property name="OperatorId" column="OPERATOR_ID" />
<key-property name="GID" column="GID" />
</composite-id>
<property name="StationName" column="NAME" />
<join table="t2" schema="s2" optional="true">
<key column="GID" property-ref="GID" />
<key column="OperatorId" property-ref="OperatorId"/>
<property name="NumberOfKM" column="NumberOfKM" />
</join>
</class>
似乎我不能在加入中添加一个以上的键,为什么?我该怎么做呢?
谢谢