Interface DepartmentRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<DepartmentEntity,String>, org.springframework.data.neo4j.repository.Neo4jRepository<DepartmentEntity,String>, org.springframework.data.repository.PagingAndSortingRepository<DepartmentEntity,String>, org.springframework.data.repository.query.QueryByExampleExecutor<DepartmentEntity>, org.springframework.data.repository.Repository<DepartmentEntity,String>

public interface DepartmentRepository extends org.springframework.data.neo4j.repository.Neo4jRepository<DepartmentEntity,String>
  • Method Summary

    Modifier and Type
    Method
    Description
    查找兄弟,有同样的根

    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.neo4j.repository.Neo4jRepository

    findAll, findAll, findAll, findAll, findAllById, saveAll

    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

    • getBrothersByRemark

      @Query("MATCH (dept:department)-[:parent]->(top:department)<-[:parent]-(d:department {remark: {remark}}) WHERE dept <> d RETURN dept") List<DepartmentEntity> getBrothersByRemark(@Param("remark") String remark)
      查找兄弟,有同样的根
      Parameters:
      remark -
      Returns: