Migrating to Spring Data JDBC 2.0
With Spring Data JDBC 2.0, we had to introduce some breaking changes. The goal of this article is to help in the migration process.
TL;DR
-
Use the default letter casing for custom column and table names or quote the names for table generation exactly as used in the annotations.
-
Use
AbstractJdbcConfiguration
for custom configuration of the application context. -
Review event-handling code and ensure the data you try to use is not
null
.
Quoting of Identifiers
Spring Data JDBC 1.x uses table and column names mostly without changing them. This causes…