JPA标准而不是罕见的HQL查询

时间:2018-01-17 16:57:42

标签: java hibernate jpa hql criteria

我想编写一个jpa谓词来获取条件查询,给出与此HQL查询相同的结果:

from Profile P WHERE (:interests) in P.profileInterests

,其中"兴趣"是方法参数(字符串列表) 和profileInterests是Profile实体类(也是字符串列表)的字段。

我仍然得到ClassCastException。

0 个答案:

没有答案