Interface CasbinModelRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<CasbinModel,Long>, org.springframework.data.jpa.repository.JpaRepository<CasbinModel,Long>, org.springframework.data.repository.ListCrudRepository<CasbinModel,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<CasbinModel,Long>, org.springframework.data.repository.PagingAndSortingRepository<CasbinModel,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<CasbinModel>, com.sankcrm.erp.domain.infrastructure.persistence.hibernate.Repository<CasbinModel>, org.springframework.data.repository.Repository<CasbinModel,Long>

public interface CasbinModelRepository extends com.sankcrm.erp.domain.infrastructure.persistence.hibernate.Repository<CasbinModel>
Casbin 模型储存.
Since:
2.1.0
Author:
zhsxin
create time:
2023/4/3 下午2:19
  • Method Summary

    Modifier and Type
    Method
    Description
    findBy(com.sankcrm.erp.auth.domain.model.casbin.CasbinModelId id)
     
    findByModelId(com.sankcrm.erp.auth.domain.model.casbin.CasbinModelId id)
     
    default CasbinModel
    findOneBy(com.sankcrm.erp.auth.domain.model.casbin.CasbinModelId id)
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

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

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByModelId

      Optional<CasbinModel> findByModelId(com.sankcrm.erp.auth.domain.model.casbin.CasbinModelId id)
    • findBy

      default Optional<CasbinModel> findBy(com.sankcrm.erp.auth.domain.model.casbin.CasbinModelId id)
    • findOneBy

      default CasbinModel findOneBy(com.sankcrm.erp.auth.domain.model.casbin.CasbinModelId id)