Interface TurStoreVendorRepository

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

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

    Modifier and Type
    Method
    Description
    void
     
     
    findById(@NotNull String id)
     
    save(@NotNull TurStoreVendor turStoreVendor)
     

    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("turStoreVendorfindAll") @NotNull @NotNull List<TurStoreVendor> findAll()
      Specified by:
      findAll in interface org.springframework.data.repository.CrudRepository<TurStoreVendor,String>
      Specified by:
      findAll in interface org.springframework.data.repository.ListCrudRepository<TurStoreVendor,String>
    • findById

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

      @CacheEvict(value={"turStoreVendorfindAll","turStoreVendorfindById"}, allEntries=true) @NotNull @NotNull TurStoreVendor save(@NotNull @NotNull TurStoreVendor turStoreVendor)
      Specified by:
      save in interface org.springframework.data.repository.CrudRepository<TurStoreVendor,String>
    • delete

      @Modifying @Query("delete from TurStoreVendor sv where sv.id = ?1") @CacheEvict(value={"turStoreVendorfindAll","turStoreVendorfindById"}, allEntries=true) void delete(String id)