Spring Data
Composite Recipes
Recipes that include further recipes, often including the individual recipes below.
Recipes
- Convert
JdbcTemplate.queryForLong(..)toqueryForObject(..) - Make AuditorAware.getCurrentAuditor return
Optional - Migrate to Spring Data JPA 2.7
- Migrate to Spring Data JPA 3.4
- Replace
@Queryannotation by@NativeQuerywhen possible - Use
JpaRepository#deleteAllInBatch(Iterable<T> entities) - Use
JpaRepository#getById(ID id) - Use
JpaSort.of(..) - Use
QuerydslPredicateExecutor<T> - Use TLS for JDBC connection strings
- Use
new SimpleMongoClientDbFactory(String)