You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Of course, a more appropriate data type would be java.sql.Date or java.sql.Timestamp or any java.time data type. But for legacy reasons, users may not be able to use those data types.
In the absence of a specific data type binding or converter, we should bind java.util.Date as java.sql.Timestamp, transferring the unix timestamp between the data types.
The text was updated successfully, but these errors were encountered:
lukaseder
changed the title
Error when passing java.util.Date as a Field<Object> bind value
Support passing java.util.Date as a Field<Object> bind value
Nov 5, 2018
When using plain SQL, we currently cannot use
java.util.Date
values as follows:Of course, a more appropriate data type would be
java.sql.Date
orjava.sql.Timestamp
or anyjava.time
data type. But for legacy reasons, users may not be able to use those data types.In the absence of a specific data type binding or converter, we should bind
java.util.Date
asjava.sql.Timestamp
, transferring the unix timestamp between the data types.The text was updated successfully, but these errors were encountered: