Matthias Sattel commented on an issue
Hibernate ORM / Bug HHH-8197
A query fetching nested one-to-many results in LazyInitializationException when trying to return a Map instead of a Pojo
Trying to fetch a List<Map<String, Object>> using the following query causes a LazyInitializationException.
{code}
select distinct root from _testCatalog_Task root inner join fetch root.subtasks subs left join fetch subs.activities
{code}
This exception only occurs when the nested association is a one-to-many association and the entities are fetched a...