All Superinterfaces:
cn.herodotus.engine.data.core.repository.BaseRepository<SysRole,String>, org.springframework.data.repository.CrudRepository<SysRole,String>, org.springframework.data.jpa.repository.JpaRepository<SysRole,String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<SysRole>, org.springframework.data.repository.ListCrudRepository<SysRole,String>, org.springframework.data.repository.ListPagingAndSortingRepository<SysRole,String>, org.springframework.data.repository.PagingAndSortingRepository<SysRole,String>, org.springframework.data.repository.query.QueryByExampleExecutor<SysRole>, org.springframework.data.repository.Repository<SysRole,String>

public interface SysRoleRepository extends cn.herodotus.engine.data.core.repository.BaseRepository<SysRole,String>

Description: SysRoleRepository

Author:
: gengwei.zheng
Date:
: 2021/10/11 21:27
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T extends Object>
  • Method Summary

    Modifier and Type
    Method
    Description
    根据用户名查找SysUser
    根据角色ID查询角色

    Methods inherited from interface cn.herodotus.engine.data.core.repository.BaseRepository

    count, count, deleteById, findAll, findAll, findAll, findAll, findAll, findAll, findById, findOne

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

    delete, deleteAll, deleteAll, deleteAllById, existsById, 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

    delete, exists, findAll, findBy

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

    findAllById, saveAll

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

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

    • findByRoleCode

      @QueryHints() SysRole findByRoleCode(String roleCode)
      根据用户名查找SysUser
      Parameters:
      roleCode - 角色代码
      Returns:
      SysRole
    • findByRoleId

      @QueryHints() SysRole findByRoleId(String roleId)
      根据角色ID查询角色
      Parameters:
      roleId - 角色ID
      Returns:
      SysRole