Jakarta Persistence (JPA) Method

boolean isLoaded(
  Object entity,
  String attributeName
)


Determine the load state of a given persistent attribute.
Parameters:
attributeName - name of attribute whose load state is to be determined
entity - entity containing the attribute
Returns:
false if entity's state has not been loaded or if the attribute state has not been loaded, else true.
Since:
Jakarta Persistence (JPA) 1.0