I am executing the following query (minimized):
Code:
Machine machine = (Machine) getSession().createQuery(
"from Machine m" +
//other query stuff
" left join fetch m.things t" +
" join fetch t.thingType" +
" left join fetch t.others o" +
//other query stuff
" where m.machineId = '"+ machine.getMachineId() +"'" +
" order by m.machineName").uniqueResult();
Now when I execute this, all goes well... except that "things" is supposed to be a set with 3 objects in it.
Instead it only has 1 object in it (the first one encountered in de database).
Same goes for "others", that only has 1 object.
I've searched a bit but can't find a solution for this, anyone knows what I am doing wrong?
thanks