-
1. Re: Problems loading ManyToMany Relations
adamw Sep 3, 2012 3:51 PM (in response to rlu)Could you provide a more complete test-case, where entity insertions/modifications are visible?
Adam
-
2. Re: Problems loading ManyToMany Relations
rlu Sep 25, 2012 3:41 PM (in response to adamw)Hi Adam,
sorry for long response time. All insertions/modifications on collection are made through
a.getBs().add(bInstance);
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
Robin
-
3. Re: Problems loading ManyToMany Relations
adamw Sep 28, 2012 9:27 AM (in response to rlu)Well, hard to say without a test case
Maybe a starting point would be checking the hibernate errors if you change the annotations ...
Adam
-
4. Re: Problems loading ManyToMany Relations
rlu Oct 1, 2012 8:51 AM (in response to adamw)Hi,
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.
Robin