Hi all!
Sorry for new topic creation, this is because of slightly theme difference .
Does somebody knows workaround for case, when Hibernate returns result with children for lazy=true?
______________________
Hibernate 5.1.0.Final (!)
HSQL 2.3.3
All is in the attached file
https://hibernate.atlassian.net/browse/HHH-10604.
Please, run only test.
Code:
return session.createQuery(
"from Category where categoryParentId = :parentId").setLong("parentId", parentId).list();
//...
<bag name="children" table="Category" inverse="true" lazy="true" fetch="select">
//..
</bag>