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