-->
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.  [ 5 posts ] 
Author Message
 Post subject: beta 2 provides no means to get SessionEventListenerConfig
PostPosted: Fri Jan 28, 2005 11:14 am 
Newbie

Joined: Fri Jan 28, 2005 11:07 am
Posts: 6
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: hibernate 3.0 beta 2

I downloaded beta 2 yesterday only to discover Configuration no longer returns a reference to SessionEventListenerConfig. I presume this means you may register listeners declaratively only, not programatically. Is this going to be true for the GA release?

Thanks.


Top
 Profile  
 
 Post subject: Re: beta 2 provides no means to get SessionEventListenerConf
PostPosted: Fri Jan 28, 2005 11:28 am 
Newbie

Joined: Fri Jan 28, 2005 11:07 am
Posts: 6
Hibernate version: hibernate 3.0 beta 2

I downloaded beta 2 yesterday only to discover Configuration no longer returns a reference to SessionEventListenerConfig. I presume this means you may register listeners declaratively only, not programatically. Is this going to be true for the GA release?

Thanks.[/quote]

BTW, I noticed the 'setListener' method on Configuration; however, while I can use this in the short term, it wasn't clear to me that this method was intended as the means by which apps should register event listeners.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 28, 2005 12:23 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
it is the only way at the moment - we are still considering what will be the best/safest way for allowing this programmatically.

we at least would like to get a more typesafe api back ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 28, 2005 5:44 pm 
Newbie

Joined: Fri Jan 28, 2005 11:07 am
Posts: 6
Thanks.

I noticed that in beta 2

1. the PreXXXEvent.getOldState() methods always return null.

2. likewise, the actual argument is null for the Interceptor.onFlushDirty() formal argument

Object[] previousState

This broke our hibernate 2.x Interceptor implementation.

3. unlike Interceptor.onDelete() the PreDeleteEvent does not include an accessor for the target object's state, something we need.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 28, 2005 5:47 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Submit to JIRA, and I'll take a look.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.