I am trying to annotate a class property using javax.persistence.Column annotation and trying to map the class property to a different database column name, but IntelliJ gives a syntax error. Here is the code:
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "USERID")
private int userId;
There is no syntax error in the code, i can compile it using javac, but IntelliJ underlines "USERID" and says "Cannot resolve symbol"
The same code works perfectly in Netbeans.