Dear hibernaters,
I have a table (USER_EVENT) with many-to-one relationships to some dictionaries. I want to load all records from this table along with the dictionary values. The straightforward:
List eventList = session.find("from UserEvent");
does not use outer joins and does one query for each dictionary value.
On the other hand,
session.load(UserEvent.class, new Long(900));
does use outer joins which confirms that the configuration is fine.
Is this the expected behaviour? What should I do to enable outer joins when fetching a list?
Thanks,
Bogdan Calmac.
|