Interface TurStoreInstanceRepository

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

public interface TurStoreInstanceRepository extends org.springframework.data.jpa.repository.JpaRepository<TurStoreInstance,String>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    findById(@NotNull String id)
     
    save(@NotNull TurStoreInstance turStoreInstance)
     

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

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

    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

    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

    • findAll

      @Cacheable("turStoreInstancefindAll") List<TurStoreInstance> findAll()
      Specified by:
      findAll in interface org.springframework.data.repository.CrudRepository<TurStoreInstance,String>
      Specified by:
      findAll in interface org.springframework.data.repository.ListCrudRepository<TurStoreInstance,String>
    • findById

      @Cacheable("turStoreInstancefindById") @NotNull @NotNull Optional<TurStoreInstance> findById(@NotNull @NotNull String id)
      Specified by:
      findById in interface org.springframework.data.repository.CrudRepository<TurStoreInstance,String>
    • save

      @CacheEvict(value={"turStoreInstancefindAll","turStoreInstancefindById"}, allEntries=true) @NotNull @NotNull TurStoreInstance save(@NotNull @NotNull TurStoreInstance turStoreInstance)
      Specified by:
      save in interface org.springframework.data.repository.CrudRepository<TurStoreInstance,String>
    • delete

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