Could you provide a more complete test-case, where entity insertions/modifications are visible?
sorry for long response time. All insertions/modifications on collection are made through
While creating a standalone testcase envers works as expected. All revisions are returned with correct member sets.
Differences between real and test code:
- Real Code Entities has all annotations on field, test code on method level. (changes on this in both projects causes errors in hibernate, don't know why )
- Real Code is deployed in JBAS7.1.1 with Oracle DB, Test code works outside container with h2.
- Real code uses an custom AuditData entity which extends DefaultRevisionEntity
Well, hard to say without a test case
Maybe a starting point would be checking the hibernate errors if you change the annotations ...
we solved our problem. The cause were our initial test data, we have created with plain SQL. So when an relationship references an initial object (with no history) the result set remains empty.
Solution is to copy initial data to audittable with revision 1.