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

有两种解决方法:

1.修改你的jpql

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


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


你可能感兴趣的:(eclipse,jpa)