diff --git a/build.gradle b/build.gradle index cb47064..65134fd 100644 --- a/build.gradle +++ b/build.gradle @@ -22,7 +22,7 @@ apply plugin: 'java' apply plugin: 'maven-publish' group = 'de.jottyfan' -version = '6' +version = '7' description = """bicolib""" diff --git a/src/main/java/de/jottyfan/bico/db/camp/tables/TRegistration.java b/src/main/java/de/jottyfan/bico/db/camp/tables/TRegistration.java index d91cab5..2e39aa4 100644 --- a/src/main/java/de/jottyfan/bico/db/camp/tables/TRegistration.java +++ b/src/main/java/de/jottyfan/bico/db/camp/tables/TRegistration.java @@ -130,6 +130,31 @@ public class TRegistration extends TableImpl { */ public final TableField FK_AGE = createField(DSL.name("fk_age"), SQLDataType.INTEGER.nullable(false), this, ""); + /** + * The column camp.t_registration.day0. + */ + public final TableField DAY0 = createField(DSL.name("day0"), SQLDataType.BOOLEAN, this, ""); + + /** + * The column camp.t_registration.day1. + */ + public final TableField DAY1 = createField(DSL.name("day1"), SQLDataType.BOOLEAN, this, ""); + + /** + * The column camp.t_registration.day2. + */ + public final TableField DAY2 = createField(DSL.name("day2"), SQLDataType.BOOLEAN, this, ""); + + /** + * The column camp.t_registration.day3. + */ + public final TableField DAY3 = createField(DSL.name("day3"), SQLDataType.BOOLEAN, this, ""); + + /** + * The column camp.t_registration.day4. + */ + public final TableField DAY4 = createField(DSL.name("day4"), SQLDataType.BOOLEAN, this, ""); + private TRegistration(Name alias, Table aliased) { this(alias, aliased, (Field[]) null, null); } diff --git a/src/main/java/de/jottyfan/bico/db/camp/tables/pojos/TRegistration.java b/src/main/java/de/jottyfan/bico/db/camp/tables/pojos/TRegistration.java index 6b98e96..79fd846 100644 --- a/src/main/java/de/jottyfan/bico/db/camp/tables/pojos/TRegistration.java +++ b/src/main/java/de/jottyfan/bico/db/camp/tables/pojos/TRegistration.java @@ -33,6 +33,11 @@ public class TRegistration implements Serializable { private final String diseases; private final Boolean requirePayment; private final Integer fkAge; + private final Boolean day0; + private final Boolean day1; + private final Boolean day2; + private final Boolean day3; + private final Boolean day4; public TRegistration(TRegistration value) { this.created = value.created; @@ -49,6 +54,11 @@ public class TRegistration implements Serializable { this.diseases = value.diseases; this.requirePayment = value.requirePayment; this.fkAge = value.fkAge; + this.day0 = value.day0; + this.day1 = value.day1; + this.day2 = value.day2; + this.day3 = value.day3; + this.day4 = value.day4; } public TRegistration( @@ -65,7 +75,12 @@ public class TRegistration implements Serializable { Boolean wantPlaceInCar, String diseases, Boolean requirePayment, - Integer fkAge + Integer fkAge, + Boolean day0, + Boolean day1, + Boolean day2, + Boolean day3, + Boolean day4 ) { this.created = created; this.pkRegistration = pkRegistration; @@ -81,6 +96,11 @@ public class TRegistration implements Serializable { this.diseases = diseases; this.requirePayment = requirePayment; this.fkAge = fkAge; + this.day0 = day0; + this.day1 = day1; + this.day2 = day2; + this.day3 = day3; + this.day4 = day4; } /** @@ -181,6 +201,41 @@ public class TRegistration implements Serializable { return this.fkAge; } + /** + * Getter for camp.t_registration.day0. + */ + public Boolean getDay0() { + return this.day0; + } + + /** + * Getter for camp.t_registration.day1. + */ + public Boolean getDay1() { + return this.day1; + } + + /** + * Getter for camp.t_registration.day2. + */ + public Boolean getDay2() { + return this.day2; + } + + /** + * Getter for camp.t_registration.day3. + */ + public Boolean getDay3() { + return this.day3; + } + + /** + * Getter for camp.t_registration.day4. + */ + public Boolean getDay4() { + return this.day4; + } + @Override public boolean equals(Object obj) { if (this == obj) @@ -274,6 +329,36 @@ public class TRegistration implements Serializable { } else if (!this.fkAge.equals(other.fkAge)) return false; + if (this.day0 == null) { + if (other.day0 != null) + return false; + } + else if (!this.day0.equals(other.day0)) + return false; + if (this.day1 == null) { + if (other.day1 != null) + return false; + } + else if (!this.day1.equals(other.day1)) + return false; + if (this.day2 == null) { + if (other.day2 != null) + return false; + } + else if (!this.day2.equals(other.day2)) + return false; + if (this.day3 == null) { + if (other.day3 != null) + return false; + } + else if (!this.day3.equals(other.day3)) + return false; + if (this.day4 == null) { + if (other.day4 != null) + return false; + } + else if (!this.day4.equals(other.day4)) + return false; return true; } @@ -295,6 +380,11 @@ public class TRegistration implements Serializable { result = prime * result + ((this.diseases == null) ? 0 : this.diseases.hashCode()); result = prime * result + ((this.requirePayment == null) ? 0 : this.requirePayment.hashCode()); result = prime * result + ((this.fkAge == null) ? 0 : this.fkAge.hashCode()); + result = prime * result + ((this.day0 == null) ? 0 : this.day0.hashCode()); + result = prime * result + ((this.day1 == null) ? 0 : this.day1.hashCode()); + result = prime * result + ((this.day2 == null) ? 0 : this.day2.hashCode()); + result = prime * result + ((this.day3 == null) ? 0 : this.day3.hashCode()); + result = prime * result + ((this.day4 == null) ? 0 : this.day4.hashCode()); return result; } @@ -316,6 +406,11 @@ public class TRegistration implements Serializable { sb.append(", ").append(diseases); sb.append(", ").append(requirePayment); sb.append(", ").append(fkAge); + sb.append(", ").append(day0); + sb.append(", ").append(day1); + sb.append(", ").append(day2); + sb.append(", ").append(day3); + sb.append(", ").append(day4); sb.append(")"); return sb.toString(); diff --git a/src/main/java/de/jottyfan/bico/db/camp/tables/records/TRegistrationRecord.java b/src/main/java/de/jottyfan/bico/db/camp/tables/records/TRegistrationRecord.java index 1444270..77e5811 100644 --- a/src/main/java/de/jottyfan/bico/db/camp/tables/records/TRegistrationRecord.java +++ b/src/main/java/de/jottyfan/bico/db/camp/tables/records/TRegistrationRecord.java @@ -232,6 +232,81 @@ public class TRegistrationRecord extends UpdatableRecordImplcamp.t_registration.day0. + */ + public TRegistrationRecord setDay0(Boolean value) { + set(14, value); + return this; + } + + /** + * Getter for camp.t_registration.day0. + */ + public Boolean getDay0() { + return (Boolean) get(14); + } + + /** + * Setter for camp.t_registration.day1. + */ + public TRegistrationRecord setDay1(Boolean value) { + set(15, value); + return this; + } + + /** + * Getter for camp.t_registration.day1. + */ + public Boolean getDay1() { + return (Boolean) get(15); + } + + /** + * Setter for camp.t_registration.day2. + */ + public TRegistrationRecord setDay2(Boolean value) { + set(16, value); + return this; + } + + /** + * Getter for camp.t_registration.day2. + */ + public Boolean getDay2() { + return (Boolean) get(16); + } + + /** + * Setter for camp.t_registration.day3. + */ + public TRegistrationRecord setDay3(Boolean value) { + set(17, value); + return this; + } + + /** + * Getter for camp.t_registration.day3. + */ + public Boolean getDay3() { + return (Boolean) get(17); + } + + /** + * Setter for camp.t_registration.day4. + */ + public TRegistrationRecord setDay4(Boolean value) { + set(18, value); + return this; + } + + /** + * Getter for camp.t_registration.day4. + */ + public Boolean getDay4() { + return (Boolean) get(18); + } + // ------------------------------------------------------------------------- // Primary key information // ------------------------------------------------------------------------- @@ -255,7 +330,7 @@ public class TRegistrationRecord extends UpdatableRecordImpl { private VVersion(Name alias, Table aliased, Field[] parameters, Condition where) { super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" - create view "v_version" as SELECT 5 AS version; + create view "v_version" as SELECT 7 AS version; """), where); } diff --git a/src/main/resources/v7.sql b/src/main/resources/v7.sql new file mode 100644 index 0000000..94ea636 --- /dev/null +++ b/src/main/resources/v7.sql @@ -0,0 +1,8 @@ +alter table camp.t_registration add column day0 boolean; +alter table camp.t_registration add column day1 boolean; +alter table camp.t_registration add column day2 boolean; +alter table camp.t_registration add column day3 boolean; +alter table camp.t_registration add column day4 boolean; + +create or replace view v_version as +select 7 as version;