diff --git a/jOOQ-meta/src/main/java/org/jooq/meta/jaxb/ForcedType.java b/jOOQ-meta/src/main/java/org/jooq/meta/jaxb/ForcedType.java index 858a7feddd..d76c33d9e9 100644 --- a/jOOQ-meta/src/main/java/org/jooq/meta/jaxb/ForcedType.java +++ b/jOOQ-meta/src/main/java/org/jooq/meta/jaxb/ForcedType.java @@ -38,6 +38,8 @@ public class ForcedType implements Serializable, XMLAppendable protected String userType; @XmlSchemaType(name = "string") protected VisibilityModifier visibilityModifier; + @XmlElement(defaultValue = "false") + protected Boolean hidden = false; @XmlJavaTypeAdapter(StringAdapter.class) protected String generator; protected Boolean auditInsertTimestamp; @@ -156,6 +158,38 @@ public class ForcedType implements Serializable, XMLAppendable this.visibilityModifier = value; } + /** + * The hidden flag allows for hiding columns from usage in queries by default, unless explicitly projected.. + *
+ * This has no effect on matched objects that are not columns. + *
+ * This feature is available in the commercial distribution only. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isHidden() { + return hidden; + } + + /** + * The hidden flag allows for hiding columns from usage in queries by default, unless explicitly projected.. + *
+ * This has no effect on matched objects that are not columns. + *
+ * This feature is available in the commercial distribution only. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHidden(Boolean value) { + this.hidden = value; + } + /** * A {@link org.jooq.Generator} implementation used for client-side computed columns. *
@@ -717,6 +751,19 @@ public class ForcedType implements Serializable, XMLAppendable return this; } + /** + * The hidden flag allows for hiding columns from usage in queries by default, unless explicitly projected.. + *
+ * This has no effect on matched objects that are not columns. + *
+ * This feature is available in the commercial distribution only. + * + */ + public ForcedType withHidden(Boolean value) { + setHidden(value); + return this; + } + /** * A {@link org.jooq.Generator} implementation used for client-side computed columns. *
@@ -966,6 +1013,7 @@ public class ForcedType implements Serializable, XMLAppendable builder.append("name", name); builder.append("userType", userType); builder.append("visibilityModifier", visibilityModifier); + builder.append("hidden", hidden); builder.append("generator", generator); builder.append("auditInsertTimestamp", auditInsertTimestamp); builder.append("auditInsertUser", auditInsertUser); @@ -1047,6 +1095,15 @@ public class ForcedType implements Serializable, XMLAppendable return false; } } + if (hidden == null) { + if (other.hidden!= null) { + return false; + } + } else { + if (!hidden.equals(other.hidden)) { + return false; + } + } if (generator == null) { if (other.generator!= null) { return false; @@ -1274,6 +1331,7 @@ public class ForcedType implements Serializable, XMLAppendable result = ((prime*result)+((name == null)? 0 :name.hashCode())); result = ((prime*result)+((userType == null)? 0 :userType.hashCode())); result = ((prime*result)+((visibilityModifier == null)? 0 :visibilityModifier.hashCode())); + result = ((prime*result)+((hidden == null)? 0 :hidden.hashCode())); result = ((prime*result)+((generator == null)? 0 :generator.hashCode())); result = ((prime*result)+((auditInsertTimestamp == null)? 0 :auditInsertTimestamp.hashCode())); result = ((prime*result)+((auditInsertUser == null)? 0 :auditInsertUser.hashCode())); diff --git a/jOOQ-meta/src/main/java/org/jooq/meta/jaxb/Generate.java b/jOOQ-meta/src/main/java/org/jooq/meta/jaxb/Generate.java index d32f29585f..76782dc1fc 100644 --- a/jOOQ-meta/src/main/java/org/jooq/meta/jaxb/Generate.java +++ b/jOOQ-meta/src/main/java/org/jooq/meta/jaxb/Generate.java @@ -266,6 +266,12 @@ public class Generate implements Serializable, XMLAppendable protected Boolean renameMethodOverrides = true; @XmlElement(defaultValue = "true") protected Boolean asMethodOverrides = true; + @XmlElement(defaultValue = "false") + protected Boolean hiddenColumnsInRecords = false; + @XmlElement(defaultValue = "false") + protected Boolean hiddenColumnsInPojos = false; + @XmlElement(defaultValue = "false") + protected Boolean hiddenColumnsInInterfaces = false; /** * Generate index information. @@ -3017,6 +3023,90 @@ public class Generate implements Serializable, XMLAppendable this.asMethodOverrides = value; } + /** + * Whether hidden columns should be generated in records. + *
+ * This feature is available in the commercial distribution only. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isHiddenColumnsInRecords() { + return hiddenColumnsInRecords; + } + + /** + * Whether hidden columns should be generated in records. + *
+ * This feature is available in the commercial distribution only. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHiddenColumnsInRecords(Boolean value) { + this.hiddenColumnsInRecords = value; + } + + /** + * Whether hidden columns should be generated in POJOs. + *
+ * This feature is available in the commercial distribution only. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isHiddenColumnsInPojos() { + return hiddenColumnsInPojos; + } + + /** + * Whether hidden columns should be generated in POJOs. + *
+ * This feature is available in the commercial distribution only. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHiddenColumnsInPojos(Boolean value) { + this.hiddenColumnsInPojos = value; + } + + /** + * Whether hidden columns should be generated in interfaces. + *
+ * This feature is available in the commercial distribution only. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isHiddenColumnsInInterfaces() { + return hiddenColumnsInInterfaces; + } + + /** + * Whether hidden columns should be generated in interfaces. + *
+ * This feature is available in the commercial distribution only. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHiddenColumnsInInterfaces(Boolean value) { + this.hiddenColumnsInInterfaces = value; + } + /** * Generate index information. * @@ -4093,6 +4183,39 @@ public class Generate implements Serializable, XMLAppendable return this; } + /** + * Whether hidden columns should be generated in records. + *
+ * This feature is available in the commercial distribution only. + * + */ + public Generate withHiddenColumnsInRecords(Boolean value) { + setHiddenColumnsInRecords(value); + return this; + } + + /** + * Whether hidden columns should be generated in POJOs. + *
+ * This feature is available in the commercial distribution only. + * + */ + public Generate withHiddenColumnsInPojos(Boolean value) { + setHiddenColumnsInPojos(value); + return this; + } + + /** + * Whether hidden columns should be generated in interfaces. + *
+ * This feature is available in the commercial distribution only.
+ *
+ */
+ public Generate withHiddenColumnsInInterfaces(Boolean value) {
+ setHiddenColumnsInInterfaces(value);
+ return this;
+ }
+
@Override
public final void appendTo(XMLBuilder builder) {
builder.append("indexes", indexes);
@@ -4210,6 +4333,9 @@ public class Generate implements Serializable, XMLAppendable
builder.append("whereMethodOverrides", whereMethodOverrides);
builder.append("renameMethodOverrides", renameMethodOverrides);
builder.append("asMethodOverrides", asMethodOverrides);
+ builder.append("hiddenColumnsInRecords", hiddenColumnsInRecords);
+ builder.append("hiddenColumnsInPojos", hiddenColumnsInPojos);
+ builder.append("hiddenColumnsInInterfaces", hiddenColumnsInInterfaces);
}
@Override
@@ -5266,6 +5392,33 @@ public class Generate implements Serializable, XMLAppendable
return false;
}
}
+ if (hiddenColumnsInRecords == null) {
+ if (other.hiddenColumnsInRecords!= null) {
+ return false;
+ }
+ } else {
+ if (!hiddenColumnsInRecords.equals(other.hiddenColumnsInRecords)) {
+ return false;
+ }
+ }
+ if (hiddenColumnsInPojos == null) {
+ if (other.hiddenColumnsInPojos!= null) {
+ return false;
+ }
+ } else {
+ if (!hiddenColumnsInPojos.equals(other.hiddenColumnsInPojos)) {
+ return false;
+ }
+ }
+ if (hiddenColumnsInInterfaces == null) {
+ if (other.hiddenColumnsInInterfaces!= null) {
+ return false;
+ }
+ } else {
+ if (!hiddenColumnsInInterfaces.equals(other.hiddenColumnsInInterfaces)) {
+ return false;
+ }
+ }
return true;
}
@@ -5388,6 +5541,9 @@ public class Generate implements Serializable, XMLAppendable
result = ((prime*result)+((whereMethodOverrides == null)? 0 :whereMethodOverrides.hashCode()));
result = ((prime*result)+((renameMethodOverrides == null)? 0 :renameMethodOverrides.hashCode()));
result = ((prime*result)+((asMethodOverrides == null)? 0 :asMethodOverrides.hashCode()));
+ result = ((prime*result)+((hiddenColumnsInRecords == null)? 0 :hiddenColumnsInRecords.hashCode()));
+ result = ((prime*result)+((hiddenColumnsInPojos == null)? 0 :hiddenColumnsInPojos.hashCode()));
+ result = ((prime*result)+((hiddenColumnsInInterfaces == null)? 0 :hiddenColumnsInInterfaces.hashCode()));
return result;
}
diff --git a/jOOQ-meta/src/main/resources/org/jooq/meta/xsd/jooq-codegen-3.20.0.xsd b/jOOQ-meta/src/main/resources/org/jooq/meta/xsd/jooq-codegen-3.20.0.xsd
index ce1283b19e..871543c1bb 100644
--- a/jOOQ-meta/src/main/resources/org/jooq/meta/xsd/jooq-codegen-3.20.0.xsd
+++ b/jOOQ-meta/src/main/resources/org/jooq/meta/xsd/jooq-codegen-3.20.0.xsd
@@ -2196,6 +2196,14 @@ This has no effect on matched objects that are not columns.
This feature is available in the commercial distribution only.]]>
+
+This feature is available in the commercial distribution only.]]>