title: Disabling transparent persistence on Hibernate 3
body: <p>We are using Seam JBoss Seam 2.2.2 Final Release, and in it contains Hibernate 3.3.1.GA. We have put triggers on update on a table such that, when an update happens on a table, the old record is recorded in a history table.</p>
  
  <p>We have a page that contains fields that populates an entity. When a field is done, an AJAX call is called to a method (in JSF) that updates the entity as needed. The problem is that, Hibernate sees the entity as changed, and updates the DB table accordingly. This increases the history table. We are solely using JPA implementation using Hibernate.</p>
  
  <p>My question is: How do I disable automatic update (known as transparent persistence) in Hibernate? We want to <strong>explicitly</strong> save entities by calling the <code>EntityManager.persist()</code> or <code>EntityManager.merge()</code> (in the code).</p>
  
  <p>Thanks</p>