title: Tell Hibernate to ignore property from dirty checking
body: <p>I have been trying to figure out how to fix this issue from couple of days. It is bad that hibernate did not provide ready to use annotation to exclude a property from dirty checking.
  Here is the problem, I have a class as below</p>
  
  <pre><code>Class A {
  @Column 
  Property 1
  @Column 
  Property 2..etc
  
  @Column
  Date lastUpdateDate
  @Column
  String lastUpdateBy
  }
  </code></pre>
  
  <p>I want to exclude lastUpdateDate and lastUpdateBy from dirty check!
  Here is what I am doing</p>
  
  <ol>
  <li><p>using Dynamic-Update = true</p></li>
  <li><p>Using interceptor and overriding findDirty method to tell hibernate if the object is dirty (here, previousState is always null because the object is transient so no way to compare old values)</p></li>
  <li><p>merge would fix the issue but it is causing performance problems (few million records ) so I have to use saveOrUpdate which does not pass previousState to Interceptor </p></li>
  </ol>
  
  <p>Is there any other way to fix this issue?</p>