Hibernate version: 3.0 alpha
Name and version of the database you are using: hsql 1.7.2.4
I have a one-to-many association setup as a lazy map. Works great except for one bit of strangeness. When I perform a left join fetch on the map, and there are no child results, the map is not flagged as initialized. So I get a second select statement when the map is accessed later.
This can cause a problem if I don't use some back-up code to force initialization (session closed, lazy initialization exception).
A left join fetch with results works as expected, the map is flagged as initialized.
I can create an isolated test case if needed. There is currently too much application code to really show the problem as is; it would be very noisy.
|