Interface TurStoreVendorRepository

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

public interface TurStoreVendorRepository extends JpaRepository<TurStoreVendor,String>
  • Method Summary

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

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

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

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

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