diff --git a/querydsl-docs/src/main/docbook/en-US/content/tutorials/sql.xml b/querydsl-docs/src/main/docbook/en-US/content/tutorials/sql.xml index 6ca439afb..498164d37 100644 --- a/querydsl-docs/src/main/docbook/en-US/content/tutorials/sql.xml +++ b/querydsl-docs/src/main/docbook/en-US/content/tutorials/sql.xml @@ -346,6 +346,42 @@ Imports can be used to add cross-schema foreign keys support. + Schemas, tables and columns can also be renamed using the plugin. Here are some examples: + Renaming a schema: + + + PROD + TEST + + +]]> + + Renaming a table: + + + PROD + CUSTOMER + CSTMR + + +]]> + + Renaming a column: + + + PROD + CUSTOMER + ID + IDX + + +]]> + + Note: fromSchema can be omitted when renaming tables and columns. + Compared to APT based code generation certain functionality is not available such as QueryDelegate annotation handling.