I need to find a write up on the rules for entity lazy loading. My knowledge has been gathered by experimentation and examples. I have this scenario that I do not understand.
In an SLSB I load an entity using entityManager.find()
I pass that entity to a method in another class (which passes it along to others). Several layers into the call stack when a getter is called on the entity a LazyInitializationException gets thrown. I thought since the entity is under control of the entitymanager in the SLSB and that SLSB method is still active all should be okay. That is not the case since the exception is thrown. I need a place to read all of the rules related to this (dos, donts)