[jOOQ/jOOQ#8617] Add org.jooq.Generated annotation with RUNTIME retention for generated code
This commit is contained in:
parent
291ad951e7
commit
cb4bd635c8
@ -134,7 +134,7 @@ public final class Constants {
|
||||
/**
|
||||
* The current jooq-codegen XSD file name.
|
||||
*/
|
||||
public static final String XSD_CODEGEN = "jooq-codegen-3.18.0.xsd";
|
||||
public static final String XSD_CODEGEN = "jooq-codegen-3.19.0.xsd";
|
||||
|
||||
/**
|
||||
* The current jooq-codegen XML namespace.
|
||||
|
||||
@ -105,6 +105,7 @@ import org.jooq.Domain;
|
||||
import org.jooq.EnumType;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Generated;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.Index;
|
||||
// ...
|
||||
@ -9222,6 +9223,9 @@ public class JavaGenerator extends AbstractGenerator {
|
||||
case JAVAX_ANNOTATION_PROCESSING_GENERATED:
|
||||
generated = "javax.annotation.processing.Generated";
|
||||
break;
|
||||
case ORG_JOOQ_GENERATED:
|
||||
generated = Generated.class.getName();
|
||||
break;
|
||||
default:
|
||||
throw new IllegalStateException("Unsupported type: " + type);
|
||||
}
|
||||
|
||||
@ -134,7 +134,7 @@ public final class Constants {
|
||||
/**
|
||||
* The current jooq-codegen XSD file name.
|
||||
*/
|
||||
public static final String XSD_CODEGEN = "jooq-codegen-3.18.0.xsd";
|
||||
public static final String XSD_CODEGEN = "jooq-codegen-3.19.0.xsd";
|
||||
|
||||
/**
|
||||
* The current jooq-codegen XML namespace.
|
||||
|
||||
@ -32,7 +32,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class CatalogMappingType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlElement(required = true, defaultValue = "")
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String inputCatalog = "";
|
||||
|
||||
@ -30,7 +30,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class CommentType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlElement(required = true)
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String expression;
|
||||
|
||||
@ -24,11 +24,11 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <all>
|
||||
* <element name="logging" type="{http://www.jooq.org/xsd/jooq-codegen-3.18.0.xsd}Logging" minOccurs="0"/>
|
||||
* <element name="onError" type="{http://www.jooq.org/xsd/jooq-codegen-3.18.0.xsd}OnError" minOccurs="0"/>
|
||||
* <element name="onUnused" type="{http://www.jooq.org/xsd/jooq-codegen-3.18.0.xsd}OnError" minOccurs="0"/>
|
||||
* <element name="jdbc" type="{http://www.jooq.org/xsd/jooq-codegen-3.18.0.xsd}Jdbc" minOccurs="0"/>
|
||||
* <element name="generator" type="{http://www.jooq.org/xsd/jooq-codegen-3.18.0.xsd}Generator"/>
|
||||
* <element name="logging" type="{http://www.jooq.org/xsd/jooq-codegen-3.19.0.xsd}Logging" minOccurs="0"/>
|
||||
* <element name="onError" type="{http://www.jooq.org/xsd/jooq-codegen-3.19.0.xsd}OnError" minOccurs="0"/>
|
||||
* <element name="onUnused" type="{http://www.jooq.org/xsd/jooq-codegen-3.19.0.xsd}OnError" minOccurs="0"/>
|
||||
* <element name="jdbc" type="{http://www.jooq.org/xsd/jooq-codegen-3.19.0.xsd}Jdbc" minOccurs="0"/>
|
||||
* <element name="generator" type="{http://www.jooq.org/xsd/jooq-codegen-3.19.0.xsd}Generator"/>
|
||||
* <element name="basedir" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* </all>
|
||||
* </restriction>
|
||||
@ -49,7 +49,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class Configuration implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlSchemaType(name = "string")
|
||||
protected Logging logging;
|
||||
@XmlElement(defaultValue = "FAIL")
|
||||
|
||||
@ -30,7 +30,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class CustomType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlElement(required = true)
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String name;
|
||||
|
||||
@ -33,7 +33,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class Database implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String name;
|
||||
@XmlList
|
||||
|
||||
@ -32,7 +32,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class EmbeddableDefinitionType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String catalog;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
|
||||
@ -42,7 +42,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class EmbeddableField implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String name;
|
||||
@XmlElement(required = true)
|
||||
|
||||
@ -42,7 +42,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class EnumType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlElement(required = true)
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String name;
|
||||
|
||||
@ -29,7 +29,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class ForcedType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlElement(defaultValue = "0")
|
||||
protected Integer priority = 0;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
|
||||
@ -29,7 +29,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class Generate implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlElement(defaultValue = "true")
|
||||
protected Boolean indexes = true;
|
||||
@XmlElement(defaultValue = "true")
|
||||
|
||||
@ -15,6 +15,7 @@ import jakarta.xml.bind.annotation.XmlType;
|
||||
* <enumeration value="DETECT_FROM_JDK"/>
|
||||
* <enumeration value="JAVAX_ANNOTATION_GENERATED"/>
|
||||
* <enumeration value="JAVAX_ANNOTATION_PROCESSING_GENERATED"/>
|
||||
* <enumeration value="ORG_JOOQ_GENERATED"/>
|
||||
* </restriction>
|
||||
* </simpleType>
|
||||
* </pre>
|
||||
@ -26,7 +27,8 @@ public enum GeneratedAnnotationType {
|
||||
|
||||
DETECT_FROM_JDK,
|
||||
JAVAX_ANNOTATION_GENERATED,
|
||||
JAVAX_ANNOTATION_PROCESSING_GENERATED;
|
||||
JAVAX_ANNOTATION_PROCESSING_GENERATED,
|
||||
ORG_JOOQ_GENERATED;
|
||||
|
||||
public String value() {
|
||||
return name();
|
||||
|
||||
@ -28,7 +28,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class Generator implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlElement(defaultValue = "org.jooq.codegen.DefaultGenerator")
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String name = "org.jooq.codegen.DefaultGenerator";
|
||||
|
||||
@ -32,7 +32,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class Jdbc implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String driver;
|
||||
@XmlElement(required = true)
|
||||
|
||||
@ -28,7 +28,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class LambdaConverter implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlElement(required = true)
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String from;
|
||||
|
||||
@ -23,7 +23,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <all>
|
||||
* <element name="transform" type="{http://www.jooq.org/xsd/jooq-codegen-3.18.0.xsd}MatcherTransformType" minOccurs="0"/>
|
||||
* <element name="transform" type="{http://www.jooq.org/xsd/jooq-codegen-3.19.0.xsd}MatcherTransformType" minOccurs="0"/>
|
||||
* <element name="expression" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
||||
* </all>
|
||||
* </restriction>
|
||||
@ -43,7 +43,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class MatcherRule implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlSchemaType(name = "string")
|
||||
protected MatcherTransformType transform;
|
||||
@XmlElement(required = true)
|
||||
|
||||
@ -37,7 +37,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class Matchers implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlElementWrapper(name = "catalogs")
|
||||
@XmlElement(name = "catalog")
|
||||
protected List<MatchersCatalogType> catalogs;
|
||||
|
||||
@ -27,7 +27,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class MatchersCatalogType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String expression;
|
||||
protected MatcherRule catalogClass;
|
||||
|
||||
@ -27,7 +27,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class MatchersEmbeddableType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String expression;
|
||||
protected MatcherRule recordClass;
|
||||
|
||||
@ -27,7 +27,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class MatchersEnumType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String expression;
|
||||
protected MatcherRule enumClass;
|
||||
|
||||
@ -27,7 +27,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class MatchersFieldType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String expression;
|
||||
protected MatcherRule fieldIdentifier;
|
||||
|
||||
@ -27,7 +27,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class MatchersRoutineType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String expression;
|
||||
protected MatcherRule routineClass;
|
||||
|
||||
@ -27,7 +27,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class MatchersSchemaType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String expression;
|
||||
protected MatcherRule schemaClass;
|
||||
|
||||
@ -27,7 +27,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class MatchersSequenceType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String expression;
|
||||
protected MatcherRule sequenceIdentifier;
|
||||
|
||||
@ -27,7 +27,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class MatchersTableType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String expression;
|
||||
protected MatcherRule tableClass;
|
||||
|
||||
@ -29,7 +29,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class Property implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlElement(required = true)
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String key;
|
||||
|
||||
@ -28,7 +28,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class SchemaMappingType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlElement(required = true, defaultValue = "")
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String inputSchema = "";
|
||||
|
||||
@ -29,7 +29,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class Strategy implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlElement(defaultValue = "org.jooq.codegen.DefaultGeneratorStrategy")
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String name = "org.jooq.codegen.DefaultGeneratorStrategy";
|
||||
|
||||
@ -44,7 +44,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class SyntheticColumnType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String tables;
|
||||
@XmlElement(required = true)
|
||||
|
||||
@ -44,7 +44,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class SyntheticDaoMethodType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlElement(required = true)
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String name;
|
||||
|
||||
@ -30,7 +30,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
* <element name="schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
||||
* <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="methods" type="{http://www.jooq.org/xsd/jooq-codegen-3.18.0.xsd}SyntheticDaoMethodsType" minOccurs="0"/>
|
||||
* <element name="methods" type="{http://www.jooq.org/xsd/jooq-codegen-3.19.0.xsd}SyntheticDaoMethodsType" minOccurs="0"/>
|
||||
* </all>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
@ -49,7 +49,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class SyntheticDaoType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String catalog;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
|
||||
@ -28,9 +28,9 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
* <all>
|
||||
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="tables" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="fields" type="{http://www.jooq.org/xsd/jooq-codegen-3.18.0.xsd}SyntheticKeyFieldsType"/>
|
||||
* <element name="fields" type="{http://www.jooq.org/xsd/jooq-codegen-3.19.0.xsd}SyntheticKeyFieldsType"/>
|
||||
* <element name="referencedTable" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
||||
* <element name="referencedFields" type="{http://www.jooq.org/xsd/jooq-codegen-3.18.0.xsd}SyntheticKeyFieldsType" minOccurs="0"/>
|
||||
* <element name="referencedFields" type="{http://www.jooq.org/xsd/jooq-codegen-3.19.0.xsd}SyntheticKeyFieldsType" minOccurs="0"/>
|
||||
* <element name="referencedKey" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* </all>
|
||||
* </restriction>
|
||||
@ -50,7 +50,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class SyntheticForeignKeyType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String name;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
|
||||
@ -42,7 +42,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class SyntheticIdentityType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String tables;
|
||||
@XmlElement(required = true)
|
||||
|
||||
@ -30,7 +30,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class SyntheticObjectsType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlElementWrapper(name = "readonlyColumns")
|
||||
@XmlElement(name = "readonlyColumn")
|
||||
protected List<SyntheticReadonlyColumnType> readonlyColumns;
|
||||
|
||||
@ -28,7 +28,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
* <all>
|
||||
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="tables" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="fields" type="{http://www.jooq.org/xsd/jooq-codegen-3.18.0.xsd}SyntheticKeyFieldsType"/>
|
||||
* <element name="fields" type="{http://www.jooq.org/xsd/jooq-codegen-3.19.0.xsd}SyntheticKeyFieldsType"/>
|
||||
* <element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* </all>
|
||||
* </restriction>
|
||||
@ -48,7 +48,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class SyntheticPrimaryKeyType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String name;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
|
||||
@ -42,7 +42,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class SyntheticReadonlyColumnType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String tables;
|
||||
@XmlElement(required = true)
|
||||
|
||||
@ -41,7 +41,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class SyntheticReadonlyRowidType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String name;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
|
||||
@ -28,7 +28,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
* <all>
|
||||
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="tables" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
|
||||
* <element name="fields" type="{http://www.jooq.org/xsd/jooq-codegen-3.18.0.xsd}SyntheticKeyFieldsType"/>
|
||||
* <element name="fields" type="{http://www.jooq.org/xsd/jooq-codegen-3.19.0.xsd}SyntheticKeyFieldsType"/>
|
||||
* </all>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
@ -47,7 +47,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class SyntheticUniqueKeyType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String name;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
|
||||
@ -45,7 +45,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class SyntheticViewType implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String catalog;
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
|
||||
@ -28,7 +28,7 @@ import org.jooq.util.jaxb.tools.XMLBuilder;
|
||||
public class Target implements Serializable, XMLAppendable
|
||||
{
|
||||
|
||||
private final static long serialVersionUID = 31800L;
|
||||
private final static long serialVersionUID = 31900L;
|
||||
@XmlElement(defaultValue = "org.jooq.generated")
|
||||
@XmlJavaTypeAdapter(StringAdapter.class)
|
||||
protected String packageName = "org.jooq.generated";
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
@jakarta.xml.bind.annotation.XmlSchema(namespace = "http://www.jooq.org/xsd/jooq-codegen-3.18.0.xsd", elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED)
|
||||
@jakarta.xml.bind.annotation.XmlSchema(namespace = "http://www.jooq.org/xsd/jooq-codegen-3.19.0.xsd", elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED)
|
||||
package org.jooq.meta.jaxb;
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schema xmlns="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:tns="http://www.jooq.org/xsd/jooq-codegen-3.18.0.xsd"
|
||||
xmlns:tns="http://www.jooq.org/xsd/jooq-codegen-3.19.0.xsd"
|
||||
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
|
||||
xmlns:annox="http://annox.dev.java.net"
|
||||
targetNamespace="http://www.jooq.org/xsd/jooq-codegen-3.18.0.xsd"
|
||||
targetNamespace="http://www.jooq.org/xsd/jooq-codegen-3.19.0.xsd"
|
||||
elementFormDefault="qualified"
|
||||
jxb:extensionBindingPrefixes="annox"
|
||||
jxb:version="2.1">
|
||||
@ -2497,6 +2497,7 @@ e.g. org.jooq.generated.schema1, org.jooq.generated.schema2]]></jxb:javadoc></jx
|
||||
<enumeration value="DETECT_FROM_JDK"/>
|
||||
<enumeration value="JAVAX_ANNOTATION_GENERATED"/>
|
||||
<enumeration value="JAVAX_ANNOTATION_PROCESSING_GENERATED"/>
|
||||
<enumeration value="ORG_JOOQ_GENERATED"/>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
|
||||
@ -134,7 +134,7 @@ public final class Constants {
|
||||
/**
|
||||
* The current jooq-codegen XSD file name.
|
||||
*/
|
||||
public static final String XSD_CODEGEN = "jooq-codegen-3.18.0.xsd";
|
||||
public static final String XSD_CODEGEN = "jooq-codegen-3.19.0.xsd";
|
||||
|
||||
/**
|
||||
* The current jooq-codegen XML namespace.
|
||||
|
||||
85
jOOQ/src/main/java/org/jooq/Generated.java
Normal file
85
jOOQ/src/main/java/org/jooq/Generated.java
Normal file
@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Other licenses:
|
||||
* -----------------------------------------------------------------------------
|
||||
* Commercial licenses for this work are available. These replace the above
|
||||
* ASL 2.0 and offer limited warranties, support, maintenance, and commercial
|
||||
* database integrations.
|
||||
*
|
||||
* For more information, please visit: https://www.jooq.org/legal/licensing
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
package org.jooq;
|
||||
|
||||
import static java.lang.annotation.ElementType.CONSTRUCTOR;
|
||||
import static java.lang.annotation.ElementType.FIELD;
|
||||
import static java.lang.annotation.ElementType.LOCAL_VARIABLE;
|
||||
import static java.lang.annotation.ElementType.METHOD;
|
||||
import static java.lang.annotation.ElementType.PACKAGE;
|
||||
import static java.lang.annotation.ElementType.PARAMETER;
|
||||
import static java.lang.annotation.ElementType.TYPE;
|
||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* An alternative annotation to replace
|
||||
* {@link javax.annotation.processing.Generated} from the JDK, in order to
|
||||
* elevate scope to {@link RetentionPolicy#RUNTIME}, keeping an identical
|
||||
* structure.
|
||||
*/
|
||||
@Documented
|
||||
@Retention(RUNTIME)
|
||||
@Target({ PACKAGE, TYPE, METHOD, CONSTRUCTOR, FIELD, LOCAL_VARIABLE, PARAMETER })
|
||||
public @interface Generated {
|
||||
|
||||
/**
|
||||
* The name of the code generator.
|
||||
*
|
||||
* @see javax.annotation.processing.Generated#value()
|
||||
*/
|
||||
String[] value();
|
||||
|
||||
/**
|
||||
* The date the source was generated.
|
||||
*
|
||||
* @see javax.annotation.processing.Generated#date()
|
||||
*/
|
||||
String date() default "";
|
||||
|
||||
/**
|
||||
* Comments that the code generated included.
|
||||
*
|
||||
* @see javax.annotation.processing.Generated#comments()
|
||||
*/
|
||||
String comments() default "";
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user