@Entity object cannot be resolved to type

Spring MVC and Hibernate training.

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

public class Customer {


There is an error on the @Entity line: Object cannot be resolved to type

I got the jars from spring-framework-2.5.6 Could you please tell me what I am missing here?


source to share

1 answer

You are missing the import statement:

import javax.persistence.Entity;




All Articles