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: findByCriteria results in many identical objects
PostPosted: Tue Sep 22, 2009 8:58 am 
Newbie

Joined: Fri Feb 06, 2009 3:44 am
Posts: 9
Dear users,

i have a problem regarding the findbycriteria method.
(it includes a join over several tables)

The result list is filled with several identical objects (hash is the same @ debug)

Is it possible to eleminate these without using the resulttransformer ?

The object itself contains an equals,compareTo and a hashCode function.
My thoughts were, that there has to be an equal method for this. But all objects have one ...

Thank you very much in advanced.

best regards
zerwi


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.