@Override
    public Calendar getValue(ResultSet rs, int startIndex) throws SQLException {
        Timestamp ts = rs.getTimestamp(startIndex);
        if (ts != null) {
            Calendar cal = Calendar.getInstance();
            cal.setTimeInMillis(ts.getTime());
            return cal;
        } else {
            return null;
        }
    }
{@code CalendarType} maps Calendar to Timestamp on the JDBC level

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