Mysql で DATE型 として '0000-00-00' が設定されていると、ResultSet#getObject で例外が発生

Exception in thread "main" java.sql.SQLException:
Value '0000-00-00' can not be represented as java.sql.Date

接続URLに zeroDateTimeBehavior=convertToNull を付加し、エラー回避

jdbc:mysql:///test?useUnicode=true&characterEncoding=SJIS&zeroDateTimeBehavior=convertToNull