public interface PersistenceUtil
PersistenceUtilinterface instance obtained from the
Persistenceclass is used to determine the load state of an entity or entity attribute regardless of which persistence provider in the environment created the entity.
entity- entity containing the attribute
attributeName- name of attribute whose load state is to be determined
boolean isLoaded(Object entity)
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
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.