@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;

@Entity
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?

+3


source to share


1 answer


You are missing the import statement:



import javax.persistence.Entity;

      

+12


source







All Articles