JPA Method
in jakarta.persistence.PersistenceUnitUtil

void load(
  E entity, 
  Attribute<?superE,?> attribute
)


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 to be loaded
attribute - 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