![]() |
1
4
您需要为在某个其他实体的集合中保留的实体创建子条件。
然后查看有关从这里转换结果的信息: https://docs.jboss.org/hibernate/orm/3.3/reference/en-US/html/querycriteria.html#querycriteria-associations 此外,这可能会对您可以使用标准执行的操作提供一些帮助: http://www.hibernate.org/hib_docs/v3/api/org/hibernate/criterion/Restrictions.html |
![]() |
2
0
如果必须这样做,下面是谷歌在搜索“hibernate hql-many-to-many”后返回的几个建议: http://patf.net/blogs/index.php?blog=2&c=1&more=1&pb=1&tb=1&title=many_to_many_in_hql 从Hibernate论坛: http://forum.hibernate.org/viewtopic.php?p=2340747&sid=d4c8d2fcc16aed0201f73eb74619692a 在春季论坛上: http://forum.springframework.org/showthread.php?t=36870 希望这些帮助。 |
![]() |
3
0
现在,这就是我让它工作的方式(感谢ZMF)。
这几乎正是ZMF所建议的,我所添加的只是从传递的集合中分离来构建条件。 剩下要做的就是尝试直接使用集合… |
![]() |
key Austin HLYO · 显示在编辑页面上选中的复选框 6 年前 |
![]() |
kash101 · Laravel 5.6显示期间多对多关系引发错误 6 年前 |
![]() |
dryhay · MySQL“多对多”关系错误 6 年前 |
![]() |
denoise · 显示独立于where子句的所有联接结果 6 年前 |
![]() |
L-R · 在hibernate中从多对多表检索数据 6 年前 |
|
Josh_GAA · MS Access多对多关系 6 年前 |
![]() |
no one special · MySQL多对多最优索引 6 年前 |