This library contains all sorts of DB utilities like:
- Optimistic Concurrency Retry
- JPA SQL statement count validator
You can get the framework from Maven Central by using the following dependency:
<dependency>
<groupId>com.vladmihalcea</groupId>
<artifactId>db-util</artifactId>
<version>1.0.2</version>
</dependency>
You can find usage examples on my blog: