Interface PrimaryKeyLoader
- All Known Implementing Classes:
EntityDocsPrimaryKeyLoader
public interface PrimaryKeyLoader
Custom strategy for loading entities by primary key.
-
Method Summary
Modifier and TypeMethodDescription<T extends Entity>
TloadEntityByPrimaryKey
(org.hibernate.Session currentSession, Class<T> entityClass, Serializable pk) default int
priority()
boolean
-
Method Details
-
supports
- Returns:
- if this
PrimaryKeyLoader
supports the given entity class
-
loadEntityByPrimaryKey
@Nullable <T extends Entity> T loadEntityByPrimaryKey(org.hibernate.Session currentSession, Class<T> entityClass, Serializable pk) - Returns:
- the entity with the given key and entity class loaded from the database
-
priority
default int priority()
-