Joined: Wed Dec 17, 2003 12:31 pm Posts: 9 Location: Kent, UK
|
Hibernate version: 2.1.6
Jboss4.0.1sp1
SQL Server 2000
Hi
Before I write a full example with mapping files and so-on, are there any gotchas I should be aware of when writing an AuditLog Interceptor like the one described in chapter 8 of Hibernate in Action?
I've implemented it as described, but, when there's a reasonably heavy load on my server, some entities that are passed into the onSave() method have a primary key of 0 (zero).
The entities are mapped with an unsaved value of zero and a Native generator.
Is there something obvious that I've done wrong? I'm using JBoss's HAR deployment method.
Thanks in advance
Richard
|
|