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:
Can you try this:
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
@Column(name = "id", unique=true, nullable=false)
private int id
In my case it was just old connection in Properties->JPA->Add connection. So refresh will not help. New connection for correct database will help when refresh will not.
I had the same problem. Here is how I solved it
Old thread, however I just had the same problem and solved with an even quicker approach.
Hope this helps someone.