Dionis Argiri commented on Bug HHH-7842

Test code is in src/test/java/components/ChannelComponentTest.java

Code with problem is in src/main/java/components/ChannelComponent.java:

DetachedCriteria detachedCriteria = DetachedCriteria.forClass(Channel.class);
detachedCriteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);
detachedCriteria.createAlias("programs", "programs");
detachedCriteria.setFetchMode("programs", FetchMode.JOIN);
return hibernateTemplate.findByCriteria(detachedCriteria);

after exiting transaction "Channel#programs : Set<Program>" field is not initialized thus it leads to LazyInitializationException.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira