Interface StaffRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<org.apache.fineract.organisation.staff.domain.Staff,Long>, org.springframework.data.jpa.repository.JpaRepository<org.apache.fineract.organisation.staff.domain.Staff,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<org.apache.fineract.organisation.staff.domain.Staff>, org.springframework.data.repository.ListCrudRepository<org.apache.fineract.organisation.staff.domain.Staff,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<org.apache.fineract.organisation.staff.domain.Staff,Long>, org.springframework.data.repository.PagingAndSortingRepository<org.apache.fineract.organisation.staff.domain.Staff,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<org.apache.fineract.organisation.staff.domain.Staff>, org.springframework.data.repository.Repository<org.apache.fineract.organisation.staff.domain.Staff,Long>

public interface StaffRepository extends org.springframework.data.jpa.repository.JpaRepository<org.apache.fineract.organisation.staff.domain.Staff,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<org.apache.fineract.organisation.staff.domain.Staff>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.fineract.organisation.staff.domain.Staff
    findByOffice(Long id, Long officeId)
    Find staff by officeid.

    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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    count, delete, exists, findAll, findAll, findAll, findBy, findOne

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    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
  • Field Details

  • Method Details

    • findByOffice

      @Query("select s from Staff s where s.id = :id AND s.office.id = :officeId") org.apache.fineract.organisation.staff.domain.Staff findByOffice(@Param("id") Long id, @Param("officeId") Long officeId)
      Find staff by officeid.