Interface TurSEInstanceRepository

All Superinterfaces:
CrudRepository<TurSEInstance,String>, JpaRepository<TurSEInstance,String>, ListCrudRepository<TurSEInstance,String>, ListPagingAndSortingRepository<TurSEInstance,String>, PagingAndSortingRepository<TurSEInstance,String>, QueryByExampleExecutor<TurSEInstance>, Repository<TurSEInstance,String>

public interface TurSEInstanceRepository extends JpaRepository<TurSEInstance,String>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    findById(@NotNull String id)
     
    @NotNull TurSEInstance
    save(@NotNull TurSEInstance turSEInstance)
     

    Methods inherited from interface CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById

    Methods inherited from interface JpaRepository

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

    Methods inherited from interface ListCrudRepository

    findAllById, saveAll

    Methods inherited from interface ListPagingAndSortingRepository

    findAll

    Methods inherited from interface PagingAndSortingRepository

    findAll

    Methods inherited from interface QueryByExampleExecutor

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

    • findAll

      @Cacheable("turSEInstancefindAll") List<TurSEInstance> findAll()
      Specified by:
      findAll in interface CrudRepository<TurSEInstance,String>
      Specified by:
      findAll in interface ListCrudRepository<TurSEInstance,String>
    • findById

      @Cacheable("turSEInstancefindById") @NotNull @NotNull Optional<TurSEInstance> findById(@NotNull @NotNull String id)
      Specified by:
      findById in interface CrudRepository<TurSEInstance,String>
    • save

      @CacheEvict(value={"turSEInstancefindAll","turSEInstancefindById"}, allEntries=true) @NotNull @NotNull TurSEInstance save(@NotNull @NotNull TurSEInstance turSEInstance)
      Specified by:
      save in interface CrudRepository<TurSEInstance,String>
    • delete

      @Modifying @Query("delete from TurSEInstance si where si.id = ?1") @CacheEvict(value={"turSEInstancefindAll","turSEInstancefindById"}, allEntries=true) void delete(String id)