-->
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: PostUpdateEventListener: event.getOldState() returns null
PostPosted: Fri Mar 24, 2006 12:48 pm 
Beginner
Beginner

Joined: Wed Sep 07, 2005 9:57 am
Posts: 20
Hibernate version:3.0.5

Hi,

I have trouble with a PostUpdateEventListener. For some objects everything works fine but for other objects the event.getOldState() method returns null.

Code:
   public void onPostUpdate(PostUpdateEvent event) {
           logger.fatal("-----------------------------------------------");
           logger.fatal("------------id: " + event.getId());
           logger.fatal("------------entity: " + event.getEntity());
           logger.fatal("------------getOldState: " + event.getOldState());
           logger.fatal("------------getState: " + event.getState());           
   }


Code:
FATAL 2006-03-24 17:40:14,592 MyUpdateEventListener - -----------------------------------------------
FATAL 2006-03-24 17:40:14,592 MyUpdateEventListener - ------------id: 125
FATAL 2006-03-24 17:40:14,592 MyUpdateEventListener - ------------entity: com.carma.console.authorization.function.Function@2f2 [id='125' name='xxx label='ccc' displayOrder='0' authorizationType='Category' functionType='Main-Navigation' ]
FATAL 2006-03-24 17:40:14,592 MyUpdateEventListener - ------------getOldState: null
FATAL 2006-03-24 17:40:14,592 MyUpdateEventListener - ------------getState: [Ljava.lang.Object;@584e97



Any comment is appreciated.

Thanks,
Ronald


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.