Interface GenericRepository<E,​ID extends Serializable>

    • Method Detail

      • getEntityClass

        Class<E> getEntityClass()
        Returns:
        the Class of the managed entity.
      • find

        default E find​(ID id)
        Parameters:
        id - the primary key. May not be null.
        Returns:
        the requested entity. Never null.
        See Also:
        CrudRepository.findById(Object)
      • deleteByIds

        @Modifying
        default long deleteByIds​(Collection<ID> ids)
        Parameters:
        ids - the Collection of IDs to delete.
        Returns:
        the number of entities that have actually been deleted.