接口 SysDefaultRoleRepository

所有超级接口:
cn.herodotus.engine.data.core.repository.BaseRepository<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.engine.data.core.repository.BaseRepository<SysDefaultRole,String>

Description: 默认角色管理Repository

作者:
: gengwei.zheng
Date:
: 2021/7/21 16:08
  • 方法概要

    修饰符和类型
    方法
    说明
    根据默认角色ID查询默认角色
    findByScene(cn.herodotus.engine.assistant.core.enums.AccountType scene)
    根据场景查询当前场景对应的默认角色

    从接口继承的方法 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
  • 方法详细资料

    • findByScene

      @QueryHints() SysDefaultRole findByScene(cn.herodotus.engine.assistant.core.enums.AccountType scene)
      根据场景查询当前场景对应的默认角色
      参数:
      scene - 场景 AccountType
      返回:
      SysDefaultRole
    • findByDefaultId

      @QueryHints() SysDefaultRole findByDefaultId(String defaultId)
      根据默认角色ID查询默认角色
      参数:
      defaultId - 默认角色ID
      返回:
      SysDefaultRole