title: Two different positions for the JPA annotations
body: <p>I am working on JPA and JSF. </p>
  
  <p>I found two ways to put the annotation:</p>
  
  <p><strong>1. Above the instance variable.</strong></p>
  
  <pre><code>public class Project implements Serializable {
      @ID
      @NotNull
      private Long idProject
      public Long getIdProject() {
          return this.idProject
      }
  }
  </code></pre>
  
  <p><strong>2. Above getter</strong></p>
  
  <pre><code>public class Project implements Serializable {
      private Long idProject
      @ID
      @NotNull
      public Long getIdProject() {
          return this.idProject}
      }
  </code></pre>
  
  <p>What is the difference? What is the best to use?</p>