主表配置文件:
xml 代码
- ...
- <class ...>
- ...
- <bag name="details" inverse="true">
- <key>
- <column name="detailId" />
- </key>
- <one-to-many class="com.test.po.detail" />
- </bag>
- </class>
- ...
子表配置文件:
xml 代码
- ...
- <class..>
- ...
- <one-to-one name="person" class="com.test.po.person"/>
- </class>
- ...
本文探讨了如何在ORM框架中配置子表关联的排序逻辑,特别是针对一对多关系中的子表按其关联表的特定属性进行排序的方法。
316

被折叠的 条评论
为什么被折叠?



