-->
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.  [ 6 posts ] 
Author Message
 Post subject: Entity listener documentation contradicts EJB3 specification
PostPosted: Wed Aug 30, 2006 4:05 pm 
Beginner
Beginner

Joined: Wed Sep 28, 2005 5:30 pm
Posts: 25
Hi,

CAVEAT: It is possible the EJB3 specification has changed on this point, correct me if I'm wrong.

According to http://www.hibernate.org/hib_docs/entit ... eners.html entity listeners must be declared "public" but according to the final EJB3 specification section 3.5.1: "The callback methods can have public, private, protected, or package level access, but must not be static or final."

Should I file a bug against this in JIRA?

Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 30, 2006 4:41 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
the implementation doesn't care about the visibility. Open a JIRA issue, I'll fix the doc. Not that I don't see the point of a private method for that, but that's just me

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 30, 2006 5:26 pm 
Beginner
Beginner

Joined: Wed Sep 28, 2005 5:30 pm
Posts: 25
emmanuel wrote:
the implementation doesn't care about the visibility. Open a JIRA issue, I'll fix the doc. Not that I don't see the point of a private method for that, but that's just me


While we're on a related topic, is @PostLoad implemented at all? I tried everything but Hibernate never invokes the method that's annotated with it. Am I missing something?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 3:20 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
yes it is

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 11:09 pm 
Beginner
Beginner

Joined: Wed Sep 28, 2005 5:30 pm
Posts: 25
emmanuel wrote:
yes it is


Is this in the official cr1 release or only in SVN trunk? Is there maybe some sample code I can try out?

Gili


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 06, 2006 12:16 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
it is available in CR1, check the unit test suite for @PostLoad for a working example

_________________
Emmanuel


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