 <p>Why don't you replace the <code>@PreUpdate/@PrePersist</code> mechanism with a <code>@Version</code> on the lastModified field ? This way all updated entity will have the field set (and only updated ones). </p> <p>It should make the job as you expect if I understood well your case.</p>