[#395] Use XML configuration file instead of plain properties file - Added jaxb artefacts
This commit is contained in:
parent
8761a43b5c
commit
c47e79b92f
20
jOOQ-codegen/build.xml
Normal file
20
jOOQ-codegen/build.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<project name="jOOQ-codegen" basedir=".">
|
||||
<property name="dir.resources" value="${basedir}/src/main/resources" />
|
||||
<property name="dir.java" value="${basedir}/src/main/java" />
|
||||
<property name="dir.target" value="${dir.java}/org/jooq/util/jaxb" />
|
||||
|
||||
<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
|
||||
<classpath>
|
||||
<fileset dir="${basedir}/lib" includes="*.jar" />
|
||||
<fileset dir="${java.home}/lib" includes="rt.jar" />
|
||||
</classpath>
|
||||
</taskdef>
|
||||
|
||||
<!-- Run a full mvn clean package install deploy first before this -->
|
||||
<target name="xjc-generator" description="Generate JAXB artefacts from XSD">
|
||||
<delete dir="${dir.target}" failonerror="no" />
|
||||
<mkdir dir="${dir.java}/org/jooq/util/jaxb" />
|
||||
<xjc schema="${dir.resources}/jooq-codegen.xsd" destdir="${dir.java}" package="org.jooq.util.jaxb"/>
|
||||
</target>
|
||||
</project>
|
||||
BIN
jOOQ-codegen/lib/jaxb-2.1.9.jar
Normal file
BIN
jOOQ-codegen/lib/jaxb-2.1.9.jar
Normal file
Binary file not shown.
BIN
jOOQ-codegen/lib/jaxb-impl-2.1.9.jar
Normal file
BIN
jOOQ-codegen/lib/jaxb-impl-2.1.9.jar
Normal file
Binary file not shown.
BIN
jOOQ-codegen/lib/jaxb-xjc-2.1.9.jar
Normal file
BIN
jOOQ-codegen/lib/jaxb-xjc-2.1.9.jar
Normal file
Binary file not shown.
@ -0,0 +1,98 @@
|
||||
//
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.01.29 at 07:32:18 PM MEZ
|
||||
//
|
||||
|
||||
|
||||
package org.jooq.util.jaxb;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <all>
|
||||
* <element name="jdbc" type="{http://www.jooq.org/xsd/jooq-codegen}Jdbc"/>
|
||||
* <element name="generator" type="{http://www.jooq.org/xsd/jooq-codegen}Generator"/>
|
||||
* </all>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = {
|
||||
|
||||
})
|
||||
@XmlRootElement(name = "configuration")
|
||||
public class Configuration {
|
||||
|
||||
@XmlElement(required = true)
|
||||
protected Jdbc jdbc;
|
||||
@XmlElement(required = true)
|
||||
protected Generator generator;
|
||||
|
||||
/**
|
||||
* Gets the value of the jdbc property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Jdbc }
|
||||
*
|
||||
*/
|
||||
public Jdbc getJdbc() {
|
||||
return jdbc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the jdbc property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Jdbc }
|
||||
*
|
||||
*/
|
||||
public void setJdbc(Jdbc value) {
|
||||
this.jdbc = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the generator property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Generator }
|
||||
*
|
||||
*/
|
||||
public Generator getGenerator() {
|
||||
return generator;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the generator property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Generator }
|
||||
*
|
||||
*/
|
||||
public void setGenerator(Generator value) {
|
||||
this.generator = value;
|
||||
}
|
||||
|
||||
}
|
||||
182
jOOQ-codegen/src/main/java/org/jooq/util/jaxb/Database.java
Normal file
182
jOOQ-codegen/src/main/java/org/jooq/util/jaxb/Database.java
Normal file
@ -0,0 +1,182 @@
|
||||
//
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.01.29 at 07:32:18 PM MEZ
|
||||
//
|
||||
|
||||
|
||||
package org.jooq.util.jaxb;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Some configuration for the database abstraction
|
||||
* (jooq-meta)
|
||||
*
|
||||
*
|
||||
* <p>Java class for Database complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="Database">
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <all>
|
||||
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
||||
* <element name="includes" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="excludes" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="inputSchema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="outputSchema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* </all>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "Database", propOrder = {
|
||||
|
||||
})
|
||||
public class Database {
|
||||
|
||||
@XmlElement(required = true)
|
||||
protected String name;
|
||||
@XmlElement(defaultValue = ".*")
|
||||
protected String includes;
|
||||
@XmlElement(defaultValue = "")
|
||||
protected String excludes;
|
||||
@XmlElement(defaultValue = "")
|
||||
protected String inputSchema;
|
||||
@XmlElement(defaultValue = "")
|
||||
protected String outputSchema;
|
||||
|
||||
/**
|
||||
* Gets the value of the name property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the name property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setName(String value) {
|
||||
this.name = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the includes property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getIncludes() {
|
||||
return includes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the includes property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setIncludes(String value) {
|
||||
this.includes = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the excludes property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getExcludes() {
|
||||
return excludes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the excludes property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setExcludes(String value) {
|
||||
this.excludes = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the inputSchema property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getInputSchema() {
|
||||
return inputSchema;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the inputSchema property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setInputSchema(String value) {
|
||||
this.inputSchema = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the outputSchema property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getOutputSchema() {
|
||||
return outputSchema;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the outputSchema property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setOutputSchema(String value) {
|
||||
this.outputSchema = value;
|
||||
}
|
||||
|
||||
}
|
||||
209
jOOQ-codegen/src/main/java/org/jooq/util/jaxb/Generate.java
Normal file
209
jOOQ-codegen/src/main/java/org/jooq/util/jaxb/Generate.java
Normal file
@ -0,0 +1,209 @@
|
||||
//
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.01.29 at 07:32:18 PM MEZ
|
||||
//
|
||||
|
||||
|
||||
package org.jooq.util.jaxb;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Some configuration for the source code generator
|
||||
* (jooq-codegen)
|
||||
*
|
||||
*
|
||||
* <p>Java class for Generate complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="Generate">
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <all>
|
||||
* <element name="relations" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
|
||||
* <element name="deprecated" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
|
||||
* <element name="instanceFields" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
|
||||
* <element name="dateAsTimestamp" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
|
||||
* <element name="unsignedTypes" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
|
||||
* <element name="generatedAnnotation" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
|
||||
* </all>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "Generate", propOrder = {
|
||||
|
||||
})
|
||||
public class Generate {
|
||||
|
||||
@XmlElement(defaultValue = "false")
|
||||
protected Boolean relations;
|
||||
@XmlElement(defaultValue = "true")
|
||||
protected Boolean deprecated;
|
||||
@XmlElement(defaultValue = "true")
|
||||
protected Boolean instanceFields;
|
||||
@XmlElement(defaultValue = "false")
|
||||
protected Boolean dateAsTimestamp;
|
||||
@XmlElement(defaultValue = "true")
|
||||
protected Boolean unsignedTypes;
|
||||
@XmlElement(defaultValue = "true")
|
||||
protected Boolean generatedAnnotation;
|
||||
|
||||
/**
|
||||
* Gets the value of the relations property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public Boolean isRelations() {
|
||||
return relations;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the relations property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public void setRelations(Boolean value) {
|
||||
this.relations = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the deprecated property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public Boolean isDeprecated() {
|
||||
return deprecated;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the deprecated property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public void setDeprecated(Boolean value) {
|
||||
this.deprecated = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the instanceFields property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public Boolean isInstanceFields() {
|
||||
return instanceFields;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the instanceFields property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public void setInstanceFields(Boolean value) {
|
||||
this.instanceFields = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the dateAsTimestamp property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public Boolean isDateAsTimestamp() {
|
||||
return dateAsTimestamp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the dateAsTimestamp property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public void setDateAsTimestamp(Boolean value) {
|
||||
this.dateAsTimestamp = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the unsignedTypes property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public Boolean isUnsignedTypes() {
|
||||
return unsignedTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the unsignedTypes property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public void setUnsignedTypes(Boolean value) {
|
||||
this.unsignedTypes = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the generatedAnnotation property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public Boolean isGeneratedAnnotation() {
|
||||
return generatedAnnotation;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the generatedAnnotation property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Boolean }
|
||||
*
|
||||
*/
|
||||
public void setGeneratedAnnotation(Boolean value) {
|
||||
this.generatedAnnotation = value;
|
||||
}
|
||||
|
||||
}
|
||||
152
jOOQ-codegen/src/main/java/org/jooq/util/jaxb/Generator.java
Normal file
152
jOOQ-codegen/src/main/java/org/jooq/util/jaxb/Generator.java
Normal file
@ -0,0 +1,152 @@
|
||||
//
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.01.29 at 07:32:18 PM MEZ
|
||||
//
|
||||
|
||||
|
||||
package org.jooq.util.jaxb;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* The source code generator's global configuration
|
||||
*
|
||||
*
|
||||
* <p>Java class for Generator complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="Generator">
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <all>
|
||||
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="database" type="{http://www.jooq.org/xsd/jooq-codegen}Database"/>
|
||||
* <element name="generate" type="{http://www.jooq.org/xsd/jooq-codegen}Generate" minOccurs="0"/>
|
||||
* <element name="target" type="{http://www.jooq.org/xsd/jooq-codegen}Target" minOccurs="0"/>
|
||||
* </all>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "Generator", propOrder = {
|
||||
|
||||
})
|
||||
public class Generator {
|
||||
|
||||
@XmlElement(defaultValue = "org.jooq.util.DefaultGenerator")
|
||||
protected String name;
|
||||
@XmlElement(required = true)
|
||||
protected Database database;
|
||||
protected Generate generate;
|
||||
protected Target target;
|
||||
|
||||
/**
|
||||
* Gets the value of the name property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the name property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setName(String value) {
|
||||
this.name = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the database property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Database }
|
||||
*
|
||||
*/
|
||||
public Database getDatabase() {
|
||||
return database;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the database property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Database }
|
||||
*
|
||||
*/
|
||||
public void setDatabase(Database value) {
|
||||
this.database = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the generate property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Generate }
|
||||
*
|
||||
*/
|
||||
public Generate getGenerate() {
|
||||
return generate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the generate property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Generate }
|
||||
*
|
||||
*/
|
||||
public void setGenerate(Generate value) {
|
||||
this.generate = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the target property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Target }
|
||||
*
|
||||
*/
|
||||
public Target getTarget() {
|
||||
return target;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the target property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Target }
|
||||
*
|
||||
*/
|
||||
public void setTarget(Target value) {
|
||||
this.target = value;
|
||||
}
|
||||
|
||||
}
|
||||
176
jOOQ-codegen/src/main/java/org/jooq/util/jaxb/Jdbc.java
Normal file
176
jOOQ-codegen/src/main/java/org/jooq/util/jaxb/Jdbc.java
Normal file
@ -0,0 +1,176 @@
|
||||
//
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.01.29 at 07:32:18 PM MEZ
|
||||
//
|
||||
|
||||
|
||||
package org.jooq.util.jaxb;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
* The database connection configuration
|
||||
*
|
||||
* <p>Java class for Jdbc complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="Jdbc">
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <all>
|
||||
* <element name="driver" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
||||
* <element name="url" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
||||
* <element name="schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="user" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="password" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* </all>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "Jdbc", propOrder = {
|
||||
|
||||
})
|
||||
public class Jdbc {
|
||||
|
||||
@XmlElement(required = true)
|
||||
protected String driver;
|
||||
@XmlElement(required = true)
|
||||
protected String url;
|
||||
protected String schema;
|
||||
protected String user;
|
||||
protected String password;
|
||||
|
||||
/**
|
||||
* Gets the value of the driver property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getDriver() {
|
||||
return driver;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the driver property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setDriver(String value) {
|
||||
this.driver = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the url property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the url property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setUrl(String value) {
|
||||
this.url = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the schema property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getSchema() {
|
||||
return schema;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the schema property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setSchema(String value) {
|
||||
this.schema = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the user property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getUser() {
|
||||
return user;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the user property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setUser(String value) {
|
||||
this.user = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the password property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the password property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setPassword(String value) {
|
||||
this.password = value;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,87 @@
|
||||
//
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.01.29 at 07:32:18 PM MEZ
|
||||
//
|
||||
|
||||
|
||||
package org.jooq.util.jaxb;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRegistry;
|
||||
|
||||
|
||||
/**
|
||||
* This object contains factory methods for each
|
||||
* Java content interface and Java element interface
|
||||
* generated in the org.jooq.util.jaxb package.
|
||||
* <p>An ObjectFactory allows you to programatically
|
||||
* construct new instances of the Java representation
|
||||
* for XML content. The Java representation of XML
|
||||
* content can consist of schema derived interfaces
|
||||
* and classes representing the binding of schema
|
||||
* type definitions, element declarations and model
|
||||
* groups. Factory methods for each of these are
|
||||
* provided in this class.
|
||||
*
|
||||
*/
|
||||
@XmlRegistry
|
||||
public class ObjectFactory {
|
||||
|
||||
|
||||
/**
|
||||
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jooq.util.jaxb
|
||||
*
|
||||
*/
|
||||
public ObjectFactory() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link Database }
|
||||
*
|
||||
*/
|
||||
public Database createDatabase() {
|
||||
return new Database();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link Jdbc }
|
||||
*
|
||||
*/
|
||||
public Jdbc createJdbc() {
|
||||
return new Jdbc();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link Configuration }
|
||||
*
|
||||
*/
|
||||
public Configuration createConfiguration() {
|
||||
return new Configuration();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link Target }
|
||||
*
|
||||
*/
|
||||
public Target createTarget() {
|
||||
return new Target();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link Generator }
|
||||
*
|
||||
*/
|
||||
public Generator createGenerator() {
|
||||
return new Generator();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link Generate }
|
||||
*
|
||||
*/
|
||||
public Generate createGenerate() {
|
||||
return new Generate();
|
||||
}
|
||||
|
||||
}
|
||||
100
jOOQ-codegen/src/main/java/org/jooq/util/jaxb/Target.java
Normal file
100
jOOQ-codegen/src/main/java/org/jooq/util/jaxb/Target.java
Normal file
@ -0,0 +1,100 @@
|
||||
//
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.01.29 at 07:32:18 PM MEZ
|
||||
//
|
||||
|
||||
|
||||
package org.jooq.util.jaxb;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Configuration for the target artefacts
|
||||
*
|
||||
*
|
||||
* <p>Java class for Target complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="Target">
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <all>
|
||||
* <element name="packageName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="directory" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
||||
* </all>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "Target", propOrder = {
|
||||
|
||||
})
|
||||
public class Target {
|
||||
|
||||
@XmlElement(defaultValue = "org.jooq.generated")
|
||||
protected String packageName;
|
||||
@XmlElement(required = true, defaultValue = "target/generated-sources/jooq")
|
||||
protected String directory;
|
||||
|
||||
/**
|
||||
* Gets the value of the packageName property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getPackageName() {
|
||||
return packageName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the packageName property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setPackageName(String value) {
|
||||
this.packageName = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the directory property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getDirectory() {
|
||||
return directory;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the directory property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setDirectory(String value) {
|
||||
this.directory = value;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
//
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.01.29 at 07:32:18 PM MEZ
|
||||
//
|
||||
|
||||
@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.jooq.org/xsd/jooq-codegen", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
|
||||
package org.jooq.util.jaxb;
|
||||
@ -1,57 +1,111 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.jooq.org/xsd/jooq-codegen" xmlns:tns="http://www.jooq.org/xsd/jooq-codegen" elementFormDefault="qualified">
|
||||
<element name="jooq-config">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="jdbc">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="driver" type="string"/>
|
||||
<element name="url" type="string"/>
|
||||
<element name="schema" type="string"/>
|
||||
<element name="user" type="string"/>
|
||||
<element name="password" type="string"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="generator">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="class" type="string" default="org.jooq.util.DefaultGenerator"/>
|
||||
<element name="generate-relations" type="boolean" default="false"/>
|
||||
<element name="generate-deprecated" type="boolean" default="true"/>
|
||||
<element name="target-package" type="string" default="org.jooq.generated"/>
|
||||
<element name="target-directory" type="string" default="jooq-generated"/>
|
||||
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.jooq.org/xsd/jooq-codegen"
|
||||
targetNamespace="http://www.jooq.org/xsd/jooq-codegen"
|
||||
elementFormDefault="qualified">
|
||||
|
||||
<element name="database">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="class" type="string"/>
|
||||
<element name="includes" default=".*"/>
|
||||
<element name="excludes" default=""/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="master-data-tables" minOccurs="0">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="master-data-table" minOccurs="0" maxOccurs="unbounded">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element name="literal-column" type="string"/>
|
||||
<element name="description-column" type="string" minOccurs="0"/>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
</sequence>
|
||||
</complexType>
|
||||
</element>
|
||||
</sequence>
|
||||
<element name="configuration">
|
||||
<annotation>
|
||||
<documentation>
|
||||
The XML version of the jOOQ configuration. More info
|
||||
can be found here: http://www.jooq.org/manual/META/Configuration/
|
||||
</documentation>
|
||||
</annotation>
|
||||
<complexType>
|
||||
<all>
|
||||
<element name="jdbc" type="tns:Jdbc" minOccurs="1"
|
||||
maxOccurs="1" />
|
||||
<element name="generator" type="tns:Generator" minOccurs="1"
|
||||
maxOccurs="1" />
|
||||
</all>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<complexType name="Jdbc">
|
||||
<annotation>
|
||||
<documentation>The database connection configuration</documentation>
|
||||
</annotation>
|
||||
<all>
|
||||
<element name="driver" type="string" minOccurs="1" maxOccurs="1" />
|
||||
<element name="url" type="string" minOccurs="1" maxOccurs="1" />
|
||||
<element name="schema" type="string" minOccurs="0" maxOccurs="1" />
|
||||
<element name="user" type="string" minOccurs="0" maxOccurs="1" />
|
||||
<element name="password" type="string" minOccurs="0"
|
||||
maxOccurs="1" />
|
||||
</all>
|
||||
</complexType>
|
||||
|
||||
<complexType name="Generator">
|
||||
<annotation>
|
||||
<documentation>
|
||||
The source code generator's global configuration
|
||||
</documentation>
|
||||
</annotation>
|
||||
<all>
|
||||
<element name="name" type="string" default="org.jooq.util.DefaultGenerator"
|
||||
minOccurs="0" maxOccurs="1" />
|
||||
<element name="database" type="tns:Database" minOccurs="1"
|
||||
maxOccurs="1" />
|
||||
<element name="generate" type="tns:Generate" minOccurs="0"
|
||||
maxOccurs="1" />
|
||||
<element name="target" type="tns:Target" minOccurs="0"
|
||||
maxOccurs="1" />
|
||||
</all>
|
||||
</complexType>
|
||||
|
||||
<complexType name="Database">
|
||||
<annotation>
|
||||
<documentation>
|
||||
Some configuration for the database abstraction
|
||||
(jooq-meta)
|
||||
</documentation>
|
||||
</annotation>
|
||||
<all>
|
||||
<element name="name" type="string" minOccurs="1" maxOccurs="1" />
|
||||
<element name="includes" type="string" default=".*"
|
||||
minOccurs="0" maxOccurs="1" />
|
||||
<element name="excludes" type="string" default="" minOccurs="0"
|
||||
maxOccurs="1" />
|
||||
<element name="inputSchema" type="string" default=""
|
||||
minOccurs="0" maxOccurs="1" />
|
||||
<element name="outputSchema" type="string" default=""
|
||||
minOccurs="0" maxOccurs="1" />
|
||||
</all>
|
||||
</complexType>
|
||||
|
||||
<complexType name="Generate">
|
||||
<annotation>
|
||||
<documentation>
|
||||
Some configuration for the source code generator
|
||||
(jooq-codegen)
|
||||
</documentation>
|
||||
</annotation>
|
||||
<all>
|
||||
<element name="relations" type="boolean" default="false"
|
||||
minOccurs="0" maxOccurs="1" />
|
||||
<element name="deprecated" type="boolean" default="true"
|
||||
minOccurs="0" maxOccurs="1" />
|
||||
<element name="instanceFields" type="boolean" default="true"
|
||||
minOccurs="0" maxOccurs="1" />
|
||||
<element name="dateAsTimestamp" type="boolean" default="false"
|
||||
minOccurs="0" maxOccurs="1" />
|
||||
<element name="unsignedTypes" type="boolean" default="true"
|
||||
minOccurs="0" maxOccurs="1" />
|
||||
<element name="generatedAnnotation" type="boolean" default="true"
|
||||
minOccurs="0" maxOccurs="1" />
|
||||
</all>
|
||||
</complexType>
|
||||
|
||||
<complexType name="Target">
|
||||
<annotation>
|
||||
<documentation>
|
||||
Configuration for the target artefacts
|
||||
</documentation>
|
||||
</annotation>
|
||||
<all>
|
||||
<element name="packageName" type="string" default="org.jooq.generated"
|
||||
minOccurs="0" maxOccurs="1" />
|
||||
<element name="directory" type="string"
|
||||
default="target/generated-sources/jooq" />
|
||||
</all>
|
||||
</complexType>
|
||||
</schema>
|
||||
Loading…
Reference in New Issue
Block a user