Interface SysDefaultRoleRepository
- All Superinterfaces:
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>
Description: 默认角色管理Repository
- Author:
- : gengwei.zheng
- Date:
- : 2021/7/21 16:08
-
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 TypeMethodDescriptionfindByDefaultId(String defaultId) 根据默认角色ID查询默认角色findByScene(cn.herodotus.engine.core.identity.enums.AccountCategory scene) 根据场景查询当前场景对应的默认角色Methods inherited from interface cn.herodotus.engine.data.core.jpa.repository.BaseJpaRepository
count, count, deleteById, findAll, findAll, findAll, findAll, findAll, findAll, findAllById, findById, findOne, getReferenceByIdMethods inherited from interface org.springframework.data.repository.CrudRepository
delete, deleteAll, deleteAll, deleteAllById, existsById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
delete, exists, findAll, findByMethods inherited from interface org.springframework.data.repository.ListCrudRepository
saveAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByScene
@QueryHints() SysDefaultRole findByScene(cn.herodotus.engine.core.identity.enums.AccountCategory scene) 根据场景查询当前场景对应的默认角色- Parameters:
scene- 场景AccountCategory- Returns:
SysDefaultRole
-
findByDefaultId
根据默认角色ID查询默认角色- Parameters:
defaultId- 默认角色ID- Returns:
SysDefaultRole
-