I have use_outer_join option set to true in a configuration file.
I have also a mapped db table. I saw in sql logs that for a foreign key, hibernate is generating separate select for each records. It is not using the join to obtain data from primary table.
Is there something I forgot about?
What else can be wrong with that?
Thanks
Yes, it is like that: Specifying the outer join in the mapping file is not sufficient.
If you want to force an outer join, then you have to specify it in the HQL statement. For example