Log in to follow, share, and participate in this community.
Thread Custom listener shows dirty properties only per event (per class)
Custom listener shows dirty properties only per event (per class)For an object tree if a property of a nested object changes the whole object tree should be versioned. However, it seems there are only hibernate envers events sent to e.g. a customed listener for a class with a prop...
Thread Hibernate Envers adding a custom column in Audit table
Hibernate Envers adding a custom column in Audit tableHi, I have a requirement to add a custom column (reason/comments) and need to save it only in the audit table rather than the regular entity table. I have gone through multiple threads in 2010,2012 but...
Thread Envers not loading data from _AUD tables after migration
Envers not loading data from _AUD tables after migrationHi all, I'm dealing with an issue at this moment and i'm not sure how to fix it. I have implemented audit logging using Envers 4.3.6 on a existing project. After creating all the _AUD tables and the c...
Keep only a max of N revisionsHello, We're having trouble with the DB space consumption. We were wondering if we could define a maximum number of revisions so that envers never go beyond. Otherwise, would it be possible with enve...
How to query _MOD fields in revisions?Hi, My users needs to lookup fields modified in the revisions aka changelog. So I need to query for _MOD fields. Is there any JPQL/HQL query way of that, or I need to use native sql queries? Another way what are the...
NonUniqueObjectException on JPA persistHello everyone, I'm getting a strange Envers exception every time I call JPA's persist method (no exception when merging). The exception is the following:
org.hibernate.NonUniqueObjectException: a different object...
Thread Envers 5.2.11 NullPointerException in IdMetadataGenerator
Envers 5.2.11 NullPointerException in IdMetadataGeneratorHi All! Just bumped my HIbernate dependencies up to version 5.2.11 this morning, and I am now seeing an NPE when initializing (code was unchanged): Caused by: java.lang.NullPointerException: null ...
@AuditJoinTable rows missingHi Experts, I am new to Hibernate Envers, I've an entities (A & B) which are audited by Envers, which contains one collection. Entity A @Audited public class A { ...
Inconsistency with @RevisionEntityI have a project which has its own set of entities that come from two different schemas I also need to bring in two projects that have their own persistence schemas and bring data from separate DBs, obviously...
Append to revision?For performance reason we load data from an external database table by table. So first we load all instances of class A (parent) and persist them, then we load all instances of class B (child), which contains a many-t...
Hibernate support for the 5.2 versionHello, I need to configure Hibernate with mysql and want to create two schema with relation. For ex. Schema1 --- Table1 --- Table2 Schema2 --- Table1 --- Table2 ...