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 TypeMethodDescriptionbooleanexistsByCode(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, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods 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
-