-
1. Re: previousState is null causing duplicate entries in audit table
adamw Apr 26, 2010 5:31 PM (in response to zander35)Hmm, hard to say, as I never yet see such things happen
What versions of Hibernate, Envers you are using, what's the mapping causing the problem?
Adam
-
2. Re: previousState is null causing duplicate entries in audit table
zander35 Apr 26, 2010 5:47 PM (in response to adamw)I'm using Hibernate 3.5.1 and the version of envers that comes with it (the most recent I assume). I'm accessing hibernate through Spring 2.5.4. I'm wondering if there could be an issue with how the hibernate session is handled with spring. I'm attaching my hibernate/envers configuration in spring, and the mapping file for the entity that I'm auditing.
Many Thanks,
Alex
-
itemdetail.hbm.xml 1.9 KB
-
applicationContext.xml 2.1 KB
-
-
3. Re: previousState is null causing duplicate entries in audit table
adamw Apr 27, 2010 3:26 AM (in response to zander35)The mapping looks quite ordinarily. I don't use Spring so the appContext.xml file doesn't tell me much , but it looks normally aswell. Maybe you can try creating a failing testcase and report it on JIRA.
I know quite a lot of people which use Envers with Spring without problems, so you must have something special
Adam