From 0a63655957fc9dcf2273a9b786cc2908cb4b1ca3 Mon Sep 17 00:00:00 2001 From: lukaseder Date: Wed, 14 Oct 2015 17:32:02 +0200 Subject: [PATCH] [#4124] Add as a synonym for in the code generation configuration --- .../java/org/jooq/util/GenerationTool.java | 2 +- jOOQ-meta/pom.xml | 2 +- .../main/resources/xjb/codegen/binding.xjb | 4 +- .../main/resources/xsd/jooq-codegen-3.8.0.xsd | 806 ++++++++++++++++++ jOOQ/src/main/java/org/jooq/Constants.java | 2 +- 5 files changed, 811 insertions(+), 5 deletions(-) create mode 100644 jOOQ-meta/src/main/resources/xsd/jooq-codegen-3.8.0.xsd diff --git a/jOOQ-codegen/src/main/java/org/jooq/util/GenerationTool.java b/jOOQ-codegen/src/main/java/org/jooq/util/GenerationTool.java index b7a9cd6fae..da4851a71d 100644 --- a/jOOQ-codegen/src/main/java/org/jooq/util/GenerationTool.java +++ b/jOOQ-codegen/src/main/java/org/jooq/util/GenerationTool.java @@ -201,7 +201,7 @@ public class GenerationTool { Properties properties = properties(j.getProperties()); if (!properties.containsKey("user")) - properties.put("user", defaultString(j.getUser())); + properties.put("user", defaultString(defaultString(j.getUser(), j.getUsername()))); if (!properties.containsKey("password")) properties.put("password", defaultString(j.getPassword())); diff --git a/jOOQ-meta/pom.xml b/jOOQ-meta/pom.xml index 71f3a52243..378f66138f 100644 --- a/jOOQ-meta/pom.xml +++ b/jOOQ-meta/pom.xml @@ -47,7 +47,7 @@ src/main/resources/xsd src/main/resources/xjb/codegen - jooq-codegen-3.7.0.xsd + jooq-codegen-3.8.0.xsd org.jooq.util.jaxb diff --git a/jOOQ-meta/src/main/resources/xjb/codegen/binding.xjb b/jOOQ-meta/src/main/resources/xjb/codegen/binding.xjb index 18556a2edd..22bfdcd6d8 100644 --- a/jOOQ-meta/src/main/resources/xjb/codegen/binding.xjb +++ b/jOOQ-meta/src/main/resources/xjb/codegen/binding.xjb @@ -11,7 +11,7 @@ - + @@ -19,7 +19,7 @@ - + diff --git a/jOOQ-meta/src/main/resources/xsd/jooq-codegen-3.8.0.xsd b/jOOQ-meta/src/main/resources/xsd/jooq-codegen-3.8.0.xsd new file mode 100644 index 0000000000..a606032be8 --- /dev/null +++ b/jOOQ-meta/src/main/resources/xsd/jooq-codegen-3.8.0.xsd @@ -0,0 +1,806 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jOOQ/src/main/java/org/jooq/Constants.java b/jOOQ/src/main/java/org/jooq/Constants.java index 4696943eb7..22b498fadf 100644 --- a/jOOQ/src/main/java/org/jooq/Constants.java +++ b/jOOQ/src/main/java/org/jooq/Constants.java @@ -101,7 +101,7 @@ public final class Constants { /** * The current jooq-codegen XSD file name. */ - public static final String XSD_CODEGEN = "jooq-codegen-3.7.0.xsd"; + public static final String XSD_CODEGEN = "jooq-codegen-3.8.0.xsd"; /** * The current jooq-codegen XML namespace.