From 96c063a694c1299756b4d6b3ef11f64efed4dab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Westk=C3=A4mper?= Date: Tue, 18 Aug 2015 23:01:44 +0300 Subject: [PATCH 1/2] Document rename functionality --- .../docbook/en-US/content/tutorials/sql.xml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) 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..7b3dc9dd1 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,45 @@ Imports can be used to add cross-schema foreign keys support. + Renamings of schemas, tables and columns can also be applied using the plugin. At first an + example of a schema rename + + + + PROD + TEST + + +]]> + + And for a specific table + + + + PROD + CUSTOMER + CSTMR + + +]]> + + And for a column + + + + PROD + CUSTOMER + ID + IDX + + +]]> + + Table and column renames work also without the fromSchema element. + Compared to APT based code generation certain functionality is not available such as QueryDelegate annotation handling. From 35a64a620b22ee549bc03f0e18f14d653ae6d6e6 Mon Sep 17 00:00:00 2001 From: John Tims Date: Thu, 27 Aug 2015 23:31:31 -0400 Subject: [PATCH 2/2] Tweak rename functionality documentation for maven plugin --- .../main/docbook/en-US/content/tutorials/sql.xml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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 7b3dc9dd1..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,9 +346,8 @@ Imports can be used to add cross-schema foreign keys support. - Renamings of schemas, tables and columns can also be applied using the plugin. At first an - example of a schema rename - + Schemas, tables and columns can also be renamed using the plugin. Here are some examples: + Renaming a schema: @@ -358,8 +357,7 @@ ]]> - And for a specific table - + Renaming a table: @@ -370,8 +368,7 @@ ]]> - And for a column - + Renaming a column: @@ -383,7 +380,7 @@ ]]> - Table and column renames work also without the fromSchema element. + 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.