title: Why can I not override and annotate a getter method for entity mapping?
body: <p>Given this class:</p>
  
  <pre><code>@MappedSuperclass
  public abstract class AbstractEntity {
  
      int id;
      public void setId(int id) { this.id = id; }
      public int getId() { return id; }
  
      // other mappings
  }
  </code></pre>
  
  <p>I want to define an entity:</p>
  
  <pre><code>@Entity
  public class SomeEntity extends AbstractEntity {
  
      @Override
      @Id // or @OneToOne etc.
      public int getId() { return id; }
  }
  </code></pre>
  
  <p>But this fails with a "No identifier specified" 
  (or a "Could not determine type for") error on SomeEntity. If I remove the getter from the superclass it works. Can't I do this override strategy? Why not, or if yes - how?</p>
  
  <p>Adding</p>
  
  <pre><code>@AttributeOverride(name = "id", column = @Column(name = "ID"))
  </code></pre>
  
  <p>to the subclass does not change the error.</p>