-->
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.  [ 1 post ] 
Author Message
 Post subject: BasicLazyInitializer "equals" bug
PostPosted: Tue Oct 17, 2006 12:31 pm 
Newbie

Joined: Wed May 24, 2006 10:31 am
Posts: 6
The initializer checks the flag "overridesEquals". But it does not take into account the subclasses, that can implement "equals". So, we have two classes:

A

and

B --> A

The both classes are persistent. The class A does not override "equals". The class B overrides. Then when the instance of B is loaded lazily (and it referenced as A), the proxy is based on A. And this proxy does not call B.equals method.


Serge Bogatyrjov


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

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.