By "LoadAccess" I mean the concepts of {{IdentifierLoadAccess} ] } , {{NaturalIdLoadAccess}}, etc
By "Loader" I _kind of_ mean legacy {{org.hibernate.loader.spi.Loader}}, but more adapted to 6.0
Conceptually the "LoadAccess" could be the API version of the "Loader" SPI. E.g.
{code} interface Session ... { IdentifierLoadAccess byId(String entityName); <T> IdentifierLoadAccess<T> byId(Class<T> entityType); }
class SessionImpl ... { @Override public SingleIdLoader byId(String entityName) { return resolveEntityDescriptor( entityName ).getSingleIdLoader( this ); }
@Override public <T> SingleIdLoader<T> byId(Class<T> entityType) { return resolveEntityDescriptor( entityType ).getSingleIdLoader( this ); } }
interface IdentifierLoadAccess<T> ... { ... }
interface SingleIdLoader<T> extends IdentifierLoadAccess<T> ... { ... } {code}
Conceptually
, LoadAccess (i.e., {{IdentifierLoadAccess}], {{NaturalIdLoadAccess}}, etc) are the API representation of "Loader" |
|