所有超级接口:
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

作者:
: gengwei.zheng
Date:
: 2021/10/11 21:27
  • 方法概要

    修饰符和类型
    方法
    说明
    根据用户名查找SysUser
    根据角色ID查询角色

    从接口继承的方法 cn.herodotus.engine.data.core.repository.BaseRepository

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

    从接口继承的方法 org.springframework.data.repository.CrudRepository

    delete, deleteAll, deleteAll, deleteAllById, existsById, save

    从接口继承的方法 org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    从接口继承的方法 org.springframework.data.jpa.repository.JpaSpecificationExecutor

    delete, exists, findBy

    从接口继承的方法 org.springframework.data.repository.ListCrudRepository

    findAllById, saveAll

    从接口继承的方法 org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • 方法详细资料

    • findByRoleCode

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

      @QueryHints() SysRole findByRoleId(String roleId)
      根据角色ID查询角色
      参数:
      roleId - 角色ID
      返回:
      SysRole