@Override
    public void setValue(PreparedStatement st, int index, LocalDateTime value) throws SQLException {
        DateTime dt = value.toDateTime(DateTimeZone.UTC);
        st.setTimestamp(index, new Timestamp(dt.getMillis()), utc());
    }
{@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