isLoaded(entity) - JPA PersistenceUtil's method
FetchType.EAGERhas been specified have been loaded.
isLoaded(Object, String) method should be used to determine the load state of an attribute. Not doing so might lead to unintended loading of state.
entity- whose load state is to be determined
- false if the entity has not been loaded, else true
- JPA 2.0