title: What does @Transient annotation mean for methods?
body: <p>So I have learned that the <code>transient</code> keyword in Java means that an entity does not persist, and that the <code>@Transient</code> annotation in JPA means don't persist a field to the database. But what does it mean when <code>@Transient</code> is applied to a method rather than a variable?</p>
  
  <p>This is where I found it in our code:</p>
  
  <pre><code>@Transient
  public boolean getTabFoo() {
      if ((this.viewFoo1 != ACCESS_NONE)
              || (this.viewFoo2 != ACCESS_NONE) || (this.viewFoo3 != ACCESS_NONE)
              || (this.getViewFoo4() != ACCESS_NONE)) {
          return true;
      }
      return false;
  }
  </code></pre>