New versions: Dev (3.15) | Latest (3.14) | 3.13 | 3.12 | 3.11

The COMMENT statement

Applies to ✅ Open Source Edition   ✅ Express Edition   ✅ Professional Edition   ✅ Enterprise Edition

The COMMENT statement can be used to store a description for an object from the database catalog.

These comments will be picked up by the code generator and are generated as Javadoc on generated classes.

// Commenting a table
create.commentOnTable("table").is("a comment describing the table").execute();

// Commenting a view
create.commentOnView("view").is("a comment describing the view").execute();

// Commenting a column
create.commentOnColumn(name("table", "column")).is("a comment describing the column").execute();
The jOOQ Logo