Hibernate envers creating a record when no changes
<p>I've been searching a way to make envers not recording any entity that I merged when there were no modification since last record.
I turns out that this should be Envers' normal behavior (no audit if there are no modifications).</p>

<p>Entities only have the <code>@Audited</code> annotations, but they keep being audited even when there is no change since last audit.
This is the configuration of my <code>persitence.xml</code>:</p>

<pre><code>&lt;property name="org.hibernate.envers.revision_field_name" value="revision" /&gt;
&lt;property name="org.hibernate.envers.revision_type_field_name" value="revision_type" /&gt;
&lt;property name="org.hibernate.envers.revision_on_collection_change" value="false"/&gt;
&lt;property name="org.hibernate.envers.store_data_at_delete" value="true"/&gt;
</code></pre>

<p>I have found this <a href="https://stackoverflow.com/questions/26892191/hibernate-envers-auditing-an-object-calling-merge-on-it-gives-an-audit-record">Hibernate Envers: Auditing an object, calling merge on it, gives an audit record EVERY time even with no change?</a> but there is no answer. </p>

<p>Some of my <code>equals()/hascode()</code> methods are only testing for IDs (the primary keys), but I didn't find out any topic on how this could be related.</p>

<p>I'v also seen taht there is a new parameter to see which field changed, but I don't think that's related to my problem too.</p>

<p>I'm using Postgresql, if that matters.</p>

<p>Any ideas for this behavior ? The only solution I have for the moment is to get the entity through the <code>entityManager</code> and compare them (I'll use some reflection based API if it comes to this).</p>