private void setFieldToNow(final Record record, final String fieldName) {
final Field<?> field = record.field(fieldName);
if (null != field) {
final Field<DateTime> fieldToSet = field.cast(DateTime.class);
record.setValue(fieldToSet, getNowUTC());
}
}java.lang.IllegalArgumentException: Field (cast("public"."person"."modified_at" as timestamp)) is not contained in Rowfinal Field<DateTime> fieldToSet = (Field<DateTime>)field;
record.setValue(fieldToSet, getNowUTC());--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/70b7884a-c60a-4160-acbf-e114c09b1be2%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/CAGO7Ob0VZeD8kjRjAMm4MvvjKSJP85d%2BYcmy8qAs8PzX5boSCQ%40mail.gmail.com.