spring-projects / spring-data-relational

Spring Data Relational. Home of Spring Data JDBC and Spring Data R2DBC.
https://spring.io/projects/spring-data-jdbc
Apache License 2.0
764 stars 344 forks source link

Use JSR 310 converters instead of ObjectToObject converters #1777

Open schauder opened 5 months ago

schauder commented 5 months ago

Currently we are using Spring Frameworks ObjectToObject converters for some date conversions, which uses a lot of reflection. This could be improved on when we use our dedicated JSR 310 converters, which unfortunately doesn't seem to be straight forward.

See https://github.com/spring-projects/spring-data-relational/blob/dafe44840860d0c553bee72c0c177335268cc85c/spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/Jsr310TimestampBasedConverters.java#L58