From eefa62e905c2c16717f228aa8f3c3ce6d4d26512 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Sat, 14 Jul 2012 10:40:12 +0200 Subject: [PATCH] [#1568] When applying a TableMapping, the associated SchemaMapping should be optional (i.e. left empty) - Clarified manual --- jOOQ-website/src/main/resources/manual.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jOOQ-website/src/main/resources/manual.xml b/jOOQ-website/src/main/resources/manual.xml index 16ac51b9ab..62f1210462 100644 --- a/jOOQ-website/src/main/resources/manual.xml +++ b/jOOQ-website/src/main/resources/manual.xml @@ -4500,6 +4500,13 @@ create.selectFrom(T_AUTHOR).fetch();

The query executed with a Factory equipped with the above mapping will in fact produce this SQL statement:

SELECT * FROM MY_BOOK_WORLD.MY_APP__T_AUTHOR +

+ Table mapping and schema mapping can be applied independently, by specifying several MappedSchema entries + in the above configuration. jOOQ will process them in order of appearance and map at first match. Note that + you can always omit a MappedSchema's output value, in case of which, only the table mapping is applied. + If you omit a MappedSchema's input value, the table mapping is applied to all schemata! +

+

Mapping at code generation time

Note that you can also hard-wire schema mapping in generated artefacts