Mohan wrote:
Thanks for your reply. But I have a doubt, how come the problem will be resolved by adding the result list to Set as I already got the result list with same objects, which should be of different objects of 15 as I mentioned in my query.
Yes, there are queries which are using the same table but they are different. Can I do something to avoid this problem.
Please clarify.
Rgds,
Mohan
I think I misunderstood your problem. Are you expecting 15 different results and getting 15 copies of the same object, or expecting 1 result and getting 15 copies of the same object ?
My answer was for the 2nd case and adding them to a Set would result in one object since Sets don't allow duplicate objects.
I would have to see more of what you're doing for the first case.