Eclipse reports error on my JPA project

前端 未结 10 1941
-上瘾入骨i
-上瘾入骨i 2021-02-04 07:39

Each time I make a JPA project Eclipse reports that there are errors in my project but I do not understand why it does so. I added image and errors below:

10条回答
  •  离开以前
    2021-02-04 08:29

    Can you try this:

    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name = "id", unique=true, nullable=false)
    private int id
    

提交回复
热议问题