JPA Method
in jakarta.persistence.PersistenceUnitUtil

void load(
  Object entity, 
  String attributeName
)


Load the persistent value of a given persistent attribute of an entity belonging to the persistence unit and to an open persistence context. After this method returns, isLoaded() must return true with the given entity instance and attribute.
Parameters:
entity - entity instance
attributeName - the name of the attribute to be loaded
Throws:
IllegalArgumentException - if the given object is not an instance of an entity class belonging to the persistence unit
PersistenceException - if the entity is not associated with an open persistence context or cannot be loaded from the database
Since:
JPA 3.2