Hello, im using Hubernate 3.1.3 with Annotations 3.1b9. When i use an eager fetch strategy, and i execute a findall method (using criteria without any criteria), in list of results, the same object appears twice, while if i use a lazy fetch strategy only one time appears. Of course in database only one object is found, for example if findAllCars with lazy strategy returns Car A and Car B, in Eager returns Car A, Car A, Car B and Car B.
This is used in a One to Many, Many to One with middle table with relationship attributes.
Anybody knows why happens?
Thank you very much.
|