Many to one:
class="com.alcatel.asb.hdm.report.etkt.entity.AreaCodeMapping">
One to many:
使用property-ref.
23.4.5. Associations on alternate keys
cascade="all"
fetch="join"/>
property-ref="userId"/>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25261409/viewspace-1056382/ ,如需转载,请注明出处,否则将追究法律责任。