-->
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: Using PostUpdateEventListener to Log Changes to new table
PostPosted: Sat Jan 29, 2011 8:50 am 
Newbie

Joined: Sat Jan 29, 2011 8:36 am
Posts: 3
Hi

I am trying to use PostUpdateEventListener (PostUpdateEvent) to inspect changes and save them to a new object. No matter what I have tried I get a LazyInitializationException - no session. I am thinking it has something to do with the way the session is being flushed. Has anyone implemeted something like this?

I may just write a regular old tried and true DB trigger on UPDATE if I cant get this work, but I would rather not.

Using Spring 3 and Hibernate 3.5

Thanks for any tips.


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.