-->
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: Values set in PreUpdate and PreInsert EventListner doesn't
PostPosted: Wed Dec 07, 2005 8:04 pm 
Beginner
Beginner

Joined: Sat Nov 22, 2003 3:54 pm
Posts: 42
Hi,

I am using Hibernate version:3.0.5, and thought of using a "pre-insert and pre-update" event listeners to set some audit information set like timestamp for the insert/update, the listener is executed, the value is set, but it doesnt propogates to the DB. Is that a issue of the object changing the state, like values from the object were copied in some other variable and the values from the current object are not being used in the sql insert/update which got modified in these listeners.?

Is "Interceptors" the only choice here or this can be achieved by the event listeners.

Thanks
Vijay


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.