@Override
    public LocalDateTime getValue(ResultSet rs, int index) throws SQLException {
        Timestamp ts = rs.getTimestamp(index, utc());
        return ts != null ? new LocalDateTime(ts.getTime(), DateTimeZone.UTC) : null;
    }
{@code LocalDateTimeType} maps {@linkplain org.joda.time.LocalDateTime}
to {@linkplain java.sql.Timestamp} on the JDBC level

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