title: Avoiding persistence of some methods in Hibernate
body: <p>As it is stated in <a href="http://docs.jboss.org/hibernate/core/3.3/reference/en/html/persistent-classes.html" rel="nofollow">documentation</a>:</p>
  
  <blockquote>
    <p>Hibernate persists JavaBeans style properties and recognizes method names of the form getFoo, isFoo and setFoo.</p>
  </blockquote>
  
  <p>Having following method</p>
  
  <pre><code>public boolean isFinished() {
      return (this.dateFinished == null) ? false : true;
  }
  </code></pre>
  
  <p>will cause:</p>
  
  <pre><code>java.lang.ExceptionInInitializerError
      at (...)
  Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
  (...)
  Caused by: org.hibernate.PropertyNotFoundException: Could not find a setter for property finished in class Order
  </code></pre>
  
  <p>Obviously, if a name of the aforementioned function does not start with <code>is</code> everything is fine. So, is it possible to avoid some methods being persisted in a mapped class using e.g. annotations? </p>
  
  <p>Please advice.</p>