The query does not start with a valid identifier, has to be either SELECT, UPDATE or DELETE FROM

来源:互联网 发布:上海大学云计算 编辑:程序博客网 时间:2024/04/30 03:21

有两种解决方法:

1.修改你的jpql

2.eclipse中window > preferences > Java Persistence > JPA >Errors/Warnings,如下图


Queries and generators下的Invalid or incomplete JPQL queries设置为ignore,应用即可


1 0