title: What is the purpose of AccessType.FIELD, AccessType.PROPERTY and @Access
body: <p>I just want to know what is the difference between all these annotations. Why are we using these... means they have no effect especially field level and property level.</p>
  
  <p>And what is the purpose of using mixed level annotation like:</p>
  
  <pre><code>@Entity
  @Access(AccessType.FIELD)
  class Employee {
      // why their is a field level access 
      private int id;
  
      // whats the purpose of transient here
      @Transient                               
      private String phnnumber;
  
      // why its a property level access
      @Access(AccessType.property)             
      public String getPhnnumber() {
          return "1234556";
      }
  
  }
  </code></pre>
  
  <p>what exactly this class says?</p>