Interface DepotRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Depot,Long>, org.springframework.data.jpa.repository.JpaRepository<Depot,Long>, org.springframework.data.repository.ListCrudRepository<Depot,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<Depot,Long>, org.springframework.data.repository.PagingAndSortingRepository<Depot,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Depot>, org.springframework.data.repository.Repository<Depot,Long>

@Repository public interface DepotRepository extends org.springframework.data.jpa.repository.JpaRepository<Depot,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    countByParentId(long parentId)
     
     
     
     
     

    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.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
  • Method Details

    • findByParent

      List<Depot> findByParent(Depot parent)
    • findByParentIsNull

      List<Depot> findByParentIsNull()
    • countByParentId

      long countByParentId(long parentId)
    • findByParentIsNullAndName

      Depot findByParentIsNullAndName(String name)
    • findByParentAndName

      Depot findByParentAndName(Depot parent, String name)