如何为intellij中的实体配置spring boot jpa配置

时间:2016-04-19 07:12:46

标签: spring jpa intellij-idea spring-boot spring-data-jpa

我使用了spring boot和spring数据jpa,但是当我在实体中创建一个命名查询时,我看到'无法解析符号'User'',我在intellij中试过了..

我如何解决这个问题?

picture

@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")

0 个答案:

没有答案