-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No converter found capable of converting from type [java.time.LocalDateTime] to type [java.util.Date] #1386
Comments
I add data using the jdbc method and then read it using spring-data-r2dbc and get the error as above, if I always use spring-data-r2dbc I don't have this problem, when I mix the two, r2dbc doesn't convert the properties correctly |
You can register a custom converter to convert JSR-310 temporal types to the old |
What I don't understand is why data inserted via r2dbc can be read normally under the same table, and data inserted via jdbc has a conversion failure when read by r2dbc? |
Your database table isn't differentiating between JSR-310 and JDBC supports the old temporal types while R2DBC doesn't support |
@mp911de Please follow this issue spring-projects/spring-data-examples#652 And my domain model has been using the Date, and then not with the use of jdbc applications to operate the same table of data is working properly, once working with jdbc applications, jdbc applications to write the data read will fail, while the use of r2dbc applications to write their own data can be read normally
|
R2DBC doesn't support Closing this one as there's nothing we can do from our side. |
Is there any way I can convert it correctly please?
The text was updated successfully, but these errors were encountered: