-->
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.  [ 2 posts ] 
Author Message
 Post subject: callback, callbacks, hibernateLazyInitializer
PostPosted: Tue Jun 07, 2005 11:33 am 
Senior
Senior

Joined: Thu May 12, 2005 11:40 pm
Posts: 125
Location: Canada
Hibernate version: 3.0.5, annotations 3.0b2

I have a base class for my entities called 'Entity' -- it contains a number of getters that are not persistent but follow the bean naming conventions, so I declare those @Transient. So far so good. I also use java.beans.Introspector to get information about my beans' properties. Once I filter out those base class properties, everything works fine. Now, some of these non-persistent getter methods I would like to declare as 'final' so that they cannot be overriden by child classes. If I do, the three properties named in the title show up in my introspection results. It's not a huge deal to filter them out as well, but I'd like to understand why this happens. I imagine it's some CGLIB trickery to be able to override final methods, but if they're @Transient, why is it even trying? Obviously, they won't need to be proxied!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 07, 2005 11:55 am 
Senior
Senior

Joined: Thu May 12, 2005 11:40 pm
Posts: 125
Location: Canada
It only seems to happen when the property made final returns a Collection.


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