Anyone can tell me what is the equivalent method of Hibernate.initialize() in EntityManager?
I want a collection of an object to be loaded in some situation and not all the time. I don't want to change the mapping to make the lazy=false. Is there a way to load the collection other than using System.out.print(xxx)?
The solution is either to use Hibernate.initialize(), I'd love to have the equivalent in the spec (send a mail to the EG),
by accessing the state of the collection ie a.getBs().get(0);
or by using a EJBQL with the fetch keyword