我使用了spring boot和spring数据jpa,但是当我在实体中创建一个命名查询时,我看到'无法解析符号'User'',我在intellij中试过了..
我如何解决这个问题?
@Entity
@Table(name = "USERS")
@NamedQuery(name = "updateRole",query = "select u from User u ") //that line
public class User extends AbstractPersistable{
@Column(name = "user_name")
private String userName;
@Column(name = "password")
private String password;
@Column(name = "first_name")