Through an extern properties file url is specified as the following jdbc:mariadb://xxxxx:3306/xxxxx?zeroDateTimeBehavior=convertToNull
The connection works fine and am able to query the DB. Through hibernate I made an entity that is mapped to a table with a date column. When no date was specified a zero date was inserted by default (0000-00-00). When I get the date out of an entity with a zero date it gives a date that shows as 00002-10-02 cause java date cant handle a year or month/day that is zero.
The zeroDateTimeBehavior=convertToNull is supposed to handle this and give back null value so i can properly handle these situations and not erroneously give back a completely wrong date.
Ive read through about 50 forum topics but was not able to find a solution. Let me know if I can provide more information. Thanks.