I have a weird problem using fetching in HQL. consider this statement:
Code:
from TableA left outer join fetch TableA.TableBList
Where there is an 1:n relationship between TableA and TableB.
TableA contains exaclty one row, while TableB contains three rows, each related to the single entry in TableA.
As a result, i would expect getting back exactly one TableA object with the property TableBList preloaded.
But acutually this is not the case, i get back three entries in the result List, each object representing the same TableA row.
Adding a
Code:
select distinct TableA
doesn't help.
Is this a bug or a feature? I am using Hiobernate 3.0
Greetings,
Georg
[/code]