public interface VersionRepository extends org.springframework.data.jpa.repository.JpaRepository<VersionCounter,Long>
| Modifier and Type | Method and Description |
|---|---|
VersionCounter |
findByCounterName(String counterName) |
int |
incrementCounterByName(String counterName) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushfindAllVersionCounter findByCounterName(String counterName)
@Modifying
@Query(value="update VersionCounter v set v.versionCount=v.versionCount+1 where v.counterName = :counterName")
int incrementCounterByName(@Param(value="counterName")
String counterName)
Copyright © 2022. All rights reserved.