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>

public interface SysDefaultRoleRepository extends BaseJpaRepository<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 Type
    Method
    Description
    根据默认角色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, getReferenceById

    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, 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

    saveAll

    Methods 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

      @QueryHints() SysDefaultRole findByDefaultId(String defaultId)
      根据默认角色ID查询默认角色
      Parameters:
      defaultId - 默认角色ID
      Returns:
      SysDefaultRole