标签: java hibernate jpa hql criteria
我想编写一个jpa谓词来获取条件查询,给出与此HQL查询相同的结果:
from Profile P WHERE (:interests) in P.profileInterests
,其中"兴趣"是方法参数(字符串列表) 和profileInterests是Profile实体类(也是字符串列表)的字段。
我仍然得到ClassCastException。