@Override
    public LocalDate getValue(ResultSet rs, int startIndex) throws SQLException {
        Date date = rs.getDate(startIndex, utc());
        return date != null ? new LocalDate(date.getTime(), DateTimeZone.UTC) : null;
    }
{@code LocalDateType} maps {@linkplain org.joda.time.LocalDate}
to {@linkplain java.sql.Date} on the JDBC level

@author tiwe
querydsl-sql/src/main/java/com/querydsl/sql/types/LocalDateType.java