Interface PrimaryKeyLoader

All Known Implementing Classes:
EntityDocsPrimaryKeyLoader

public interface PrimaryKeyLoader
Custom strategy for loading entities by primary key.
  • Method Details

    • supports

      boolean supports(Class<? extends Entity> entityClass)
      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()