Spring Data 2020.0 - New and Noteworthy in Spring Data JDBC 2.1
As part of the 2020.0.0 version of Spring Data, we released Spring Data JDBC 2.1. This article presents the four most interesting changes in this version.
- Use
@Value
on entity constructor arguments. RowMapper
andResultSetExtractor
as beans.- Improved performance for entities.
- Support of Oracles temporal types.
#Use @Value on Entity Constructor Arguments
In some cases, not all the data that goes into an entity comes from the ResultSet
of a query. You now may provide an @Value
annotation with a SPeL expression that is evaluated, and the result is passed as an argument upon construction of the…