1
First of all yes, I’ve already added ?zeroDateTimeBehavior=convertToNull
in the connection URL the problem is that in the query the reset date is not null and always release the following Exception:
java.sql.SQLException: Value '0000-00-00' can not be represented as java.sql.Date
I have debugged and always to the same reset date being called by Resultset
regC100.setDtDoc(resultSet.getDate(14));
It is not a valid date anyway. Why you do not save NULL in these cases?
– Murillo Goulart
The smallest possible date in the java date API of the java package java.util or java.sql is 01/01/1970. So, this date is non-existent for the api.
– user28595
Because queries(iinserts) are generated dynamically then making this treatment would be quite complicated
– William.Andrade