Q:

@Entity entity cannot be resolved to a type

Learning Spring MVC and Hibernate.
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
public class Customer {

In @Entity line there is an error : entity cannot be resolved to a type
I got jars from spring-framework-2.5.6 
Can you please tell me what I am missing here ?

A:

You are missing an import statement:
import javax.persistence.Entity;

