title: @Entity entity cannot be resolved to a type
body: <p>Learning Spring MVC and Hibernate.</p>
  
  <pre><code>import javax.persistence.Column;
  import javax.persistence.GeneratedValue;
  import javax.persistence.GenerationType;
  import javax.persistence.Id;
  
  @Entity
  public class Customer {
  </code></pre>
  
  <p>In @Entity line there is an error : entity cannot be resolved to a type</p>
  
  <p>I got jars from spring-framework-2.5.6 
  Can you please tell me what I am missing here ?</p>