HQL how to join three table

拟墨画扇 提交于 2019-12-06 14:32:22

Alright nevermind, I found out how to do it

Select i from Inventory i,Category c INNER JOIN i.product ip INNER JOIN c.products cp where ip = cp and c.id=?

So I was actually wondering how to relate the Category to the joins, I found the answer under Polymorphic queries in HQL documentation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!