-->
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.  [ 3 posts ] 
Author Message
 Post subject: Context for event listeners
PostPosted: Tue Feb 01, 2005 6:53 am 
Newbie

Joined: Tue Feb 01, 2005 6:30 am
Posts: 6
Hibernate version: 3.0beta3

Hi,

I can't find the context for event listeners refered to by the documentation in section 9.11 Event system:

Quote:
Custom event listeners may also make use of the event's
context for storage of any needed processing variables. The context is a
simple map, but the default listeners don't use the context map at all, so
don't worry about over-writing internally required context variables.


How can this Map be accessed by a listener (for example by a SaveOrUpdateEventListener) ?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 03, 2005 12:01 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
We decided to leave this "feature" out for memory concerns.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 04, 2005 5:04 am 
Newbie

Joined: Tue Feb 01, 2005 6:30 am
Posts: 6
Thanks for the reply.

Is there a workaround ?
Basically, I am looking for something like:

Code:
session.addToListenerContext("keyOfObjectNeededByListener", objectNeededByListener);
session.saveOrUpdate(myObject);


Any suggestion much welcome...

_________________
Jerome


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

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.