【发布时间】:2010-09-09 16:02:37
【问题描述】:
是否可以通过这样的配置使用 HQL 访问 table2 的各个列?
<hibernate-mapping>
<class table="table1">
<set name="table2" table="table2" lazy="true" cascade="all">
<key column="result_id"/>
<many-to-many column="group_id"/>
</set>
</class>
</hibernate-mapping>
【问题讨论】: