How to resolve No identifier specified for entity?

Hi experts,

After a long break trying to deal with debug Eclipse debugging issue, I am back with another Hibernate problem which needs assistance.

I have trawled the net for an answer but to no avail.

Here’s the error. Please see attachedto%20post%20to%20Hibernate%20forum

Here’s what I have put my @Id in my model User:(I have attempted several times to copy more code but this is what your system allows only)

@Id
@Column(name="userId", nullable=false)
@GeneratedValue(strategy = javax.persistence.GenerationType.IDENTITY)
private static User userId; 

public static User getUserId() {
	return userId;
}

public void setUserId(User userId) {
	User.userId = userId;
}

Hope someone can tell me how to resolve the error