title: non-repeatable @NamedQuery
body: <p>I want to define serveral named queries like:</p>
  
  <pre><code>@Entity
  @Table(name = "TableA")
  @NamedQuery(query = "SELECT i FROM TableA i WHERE i.Id = :Id", name = "findAById")
  @NamedQuery(query = "SELECT i FROM TableA i WHERE i.name = :name", name = "findAByName")
  public class TableA  
  {   
      @Id
      @GeneratedValue(strategy = GenerationType.TABLE)
      private Long id;
  
      @Column(name="Name")
      String name = "";
  
  \\... more code
  
  
  }
  </code></pre>
  
  <p>But doing so, I get the following error message in eclipse:</p>
  
  <blockquote>
    <p>Duplicate annotation of non-repeatable type @NamedQuery. Only
    annotation types marked @Repeatable can be used multiple times at one
    target.</p>
  </blockquote>
  
  <p>and at compilation:</p>
  
  <blockquote>
    <p>java.lang.annotation.AnnotationFormatError: Duplicate annotation for
    class: interface javax.persistence.NamedQuery:
    @javax.persistence.NamedQuery(lockMode=NONE, hints=[], query=SELECT i
    FROM TableA i WHERE i.name = :name,
    name=findAByName)     at
    sun.reflect.annotation.AnnotationParser.parseAnnotations2(Unknown
    Source)</p>
  </blockquote>
  
  <p>For me this limitation of only one named Query per class makes not much sense. Is this a bug or a feature? Are there workarounds to define more Named Queries per class?</p>