-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Interceptor,primary key==unsaved value onSave()
PostPosted: Mon May 09, 2005 11:59 am 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.