> Is a field necessarily a column? If not, how do I know that a field is a 
> column?

I assume you mean a physical column from a physical table. When you
access fields via org.jooq.Schema.getTables() -> getFields(), you can
be sure that the fields are physical columns. In many other cases,
this assumption is wrong, though. For instance, an org.jooq.Table can
be a derived table:

  Table<?> table = create.selectOne().asTable();

Or a pivot table:

  Table<?> table = MY_TABLE.pivot(...).on(...).in(...);

There are many other types of tables, whose fields are not necessarily
physical columns. Note that physical fields generated by jooq-codegen
implement org.jooq.TableField

Cheers
Luaks

Reply via email to