title: Hibernate log dirty entity properties?
body: <p>I'm using JPA with Hibernate as my provider.</p>
  
  <p>I have a case where an entity is being marked as dirty and I'm not sure why. Is there a logger that can be turned on that will print why an entity is being marked as dirty? In other words, what properties on the entity have changed to cause it to be marked as dirty?</p>
  
  <p>I'm using SLF4j and logback for logging. The best I've been able to find so far is</p>
  
  <pre><code>&lt;logger name="org.hibernate.persister.entity.AbstractEntityPersister" level="trace" /&gt;
  </code></pre>
  
  <p>Which will give me log statements like this:</p>
  
  <pre><code>26-Apr-2013 09:24:50.054 [SimpleAsyncTaskExecutor-8] TRACE o.h.p.entity.AbstractEntityPersister - com.example.MyEntity.myEntityProperty is dirty
  </code></pre>
  
  <p>But it also includes a fairly large amount of other trace statements that I would rather not get logged.</p>