接口 SysDefaultRoleRepository
- 所有超级接口:
cn.herodotus.stirrup.data.crud.repository.BaseJpaRepository<SysDefaultRole,,String> org.springframework.data.repository.CrudRepository<SysDefaultRole,,String> org.springframework.data.jpa.repository.JpaRepository<SysDefaultRole,,String> org.springframework.data.jpa.repository.JpaSpecificationExecutor<SysDefaultRole>,org.springframework.data.repository.ListCrudRepository<SysDefaultRole,,String> org.springframework.data.repository.ListPagingAndSortingRepository<SysDefaultRole,,String> org.springframework.data.repository.PagingAndSortingRepository<SysDefaultRole,,String> org.springframework.data.repository.query.QueryByExampleExecutor<SysDefaultRole>,org.springframework.data.repository.Repository<SysDefaultRole,String>
public interface SysDefaultRoleRepository
extends cn.herodotus.stirrup.data.crud.repository.BaseJpaRepository<SysDefaultRole,String>
Description: 默认角色管理Repository
- 作者:
- : gengwei.zheng
- Date:
- : 2021/7/21 16:08
-
方法概要
修饰符和类型方法说明findByDefaultId(String defaultId) 根据默认角色ID查询默认角色findByScene(cn.herodotus.stirrup.access.core.enums.AccountCategory scene) 根据场景查询当前场景对应的默认角色从接口继承的方法 cn.herodotus.stirrup.data.crud.repository.BaseJpaRepository
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
-
方法详细资料
-
findByScene
@QueryHints() SysDefaultRole findByScene(cn.herodotus.stirrup.access.core.enums.AccountCategory scene) 根据场景查询当前场景对应的默认角色- 参数:
scene- 场景AccountCategory- 返回:
SysDefaultRole
-
findByDefaultId
根据默认角色ID查询默认角色- 参数:
defaultId- 默认角色ID- 返回:
SysDefaultRole
-