Hibernate.initialize(parentList);
will just initialize the objects in the list that are not connected inside the list.
From the docs:
. - ; , INSIDE /.
:
, Student Entity, Entity Course Entity. :
for (Student student : studentList) {
Hibernate.initialize(student.getCourses());
}