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, flush, getOne, save, saveAndFlushVersionCounter 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 © 2016. All Rights Reserved.