Interface EmployeeRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<Employee,​java.lang.Long>, org.springframework.data.jpa.repository.JpaRepository<Employee,​java.lang.Long>, org.springframework.data.repository.PagingAndSortingRepository<Employee,​java.lang.Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Employee>, org.springframework.data.repository.Repository<Employee,​java.lang.Long>

    public interface EmployeeRepository
    extends org.springframework.data.jpa.repository.JpaRepository<Employee,​java.lang.Long>
    Employee repository CRUD contract.
    Since:
    1.0
    Author:
    Martynenko Anton
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<Employee> findAllByNameContainingIgnoreCase​(java.lang.String subName)
      Find all employees with subname .
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findBy, findOne
    • Method Detail

      • findAllByNameContainingIgnoreCase

        @NotNull
        java.util.List<Employee> findAllByNameContainingIgnoreCase​(@NotNull
                                                                   java.lang.String subName)
        Find all employees with subname .
        Parameters:
        subName - subname of employee
        Returns:
        Employee list or empty list