Interface DataNeedsRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<DataNeed,String>, org.springframework.data.jpa.repository.JpaRepository<DataNeed,String>, org.springframework.data.repository.ListCrudRepository<DataNeed,String>, org.springframework.data.repository.ListPagingAndSortingRepository<DataNeed,String>, org.springframework.data.repository.PagingAndSortingRepository<DataNeed,String>, org.springframework.data.repository.query.QueryByExampleExecutor<DataNeed>, org.springframework.data.repository.Repository<DataNeed,String>

@Repository public interface DataNeedsRepository extends org.springframework.data.jpa.repository.JpaRepository<DataNeed,String>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    setEnabledById(String id, boolean enabled)
     

    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

    • findAllBy

    • setEnabledById

      @Modifying @Query("update DataNeed dn set dn.enabled = :enabled where dn.id = :id") void setEnabledById(@Param("id") String id, @Param("enabled") boolean enabled)