这个NamedQuery有什么问题?没有在Hibernate 5上工作但在Openjpa 1.2.2上工作
@NamedQuery(name = "Dic_listDByVal", query = "SELECT d FROM Dict d "
+ " WHERE d.memory = m.memory and d.dic = :dic and (m.value LIKE :value)"
+ " ORDER BY d.sortOrder")
答案 0 :(得分:0)
我猜你这里没有定义m( in m.memory)
,这意味着你一定错过了JOIN
条款