Package com.bytedesk.core.feature
Interface FeatureRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<FeatureEntity,
,Long> org.springframework.data.jpa.repository.JpaRepository<FeatureEntity,
,Long> org.springframework.data.repository.ListCrudRepository<FeatureEntity,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<FeatureEntity,
,Long> org.springframework.data.repository.PagingAndSortingRepository<FeatureEntity,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<FeatureEntity>
,org.springframework.data.repository.Repository<FeatureEntity,
Long>
public interface FeatureRepository
extends org.springframework.data.jpa.repository.JpaRepository<FeatureEntity,Long>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsByCode
(String code) findByCode
(String code) findByModuleName
(String moduleName) findByModuleNameAndEnabledTrue
(String moduleName) 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
-
findByCode
-
findByModuleName
-
findByEnabledTrue
List<FeatureEntity> findByEnabledTrue() -
findByModuleNameAndEnabledTrue
-
findAllEnabledFeatures
@Query("SELECT f FROM FeatureEntity f WHERE f.enabled = true ORDER BY f.moduleName, f.sortOrder") List<FeatureEntity> findAllEnabledFeatures() -
existsByCode
-