diff --git a/build.gradle b/build.gradle index 00385af..cb47064 100644 --- a/build.gradle +++ b/build.gradle @@ -22,7 +22,7 @@ apply plugin: 'java' apply plugin: 'maven-publish' group = 'de.jottyfan' -version = '5' +version = '6' description = """bicolib""" diff --git a/src/main/java/de/jottyfan/bico/db/camp/Camp.java b/src/main/java/de/jottyfan/bico/db/camp/Camp.java index b137905..6904bba 100644 --- a/src/main/java/de/jottyfan/bico/db/camp/Camp.java +++ b/src/main/java/de/jottyfan/bico/db/camp/Camp.java @@ -5,6 +5,7 @@ package de.jottyfan.bico.db.camp; import de.jottyfan.bico.db.DefaultCatalog; +import de.jottyfan.bico.db.camp.tables.TAge; import de.jottyfan.bico.db.camp.tables.TRegistration; import de.jottyfan.bico.db.camp.tables.VParticipant; @@ -29,6 +30,11 @@ public class Camp extends SchemaImpl { */ public static final Camp CAMP = new Camp(); + /** + * The table camp.t_age. + */ + public final TAge T_AGE = TAge.T_AGE; + /** * The table camp.t_registration. */ @@ -55,6 +61,7 @@ public class Camp extends SchemaImpl { @Override public final List> getTables() { return Arrays.asList( + TAge.T_AGE, TRegistration.T_REGISTRATION, VParticipant.V_PARTICIPANT ); diff --git a/src/main/java/de/jottyfan/bico/db/camp/Keys.java b/src/main/java/de/jottyfan/bico/db/camp/Keys.java index ad17fbb..3e85c7a 100644 --- a/src/main/java/de/jottyfan/bico/db/camp/Keys.java +++ b/src/main/java/de/jottyfan/bico/db/camp/Keys.java @@ -4,9 +4,12 @@ package de.jottyfan.bico.db.camp; +import de.jottyfan.bico.db.camp.tables.TAge; import de.jottyfan.bico.db.camp.tables.TRegistration; +import de.jottyfan.bico.db.camp.tables.records.TAgeRecord; import de.jottyfan.bico.db.camp.tables.records.TRegistrationRecord; +import org.jooq.ForeignKey; import org.jooq.TableField; import org.jooq.UniqueKey; import org.jooq.impl.DSL; @@ -24,5 +27,15 @@ public class Keys { // UNIQUE and PRIMARY KEY definitions // ------------------------------------------------------------------------- + public static final UniqueKey T_AGE_AGE_KEY = Internal.createUniqueKey(TAge.T_AGE, DSL.name("t_age_age_key"), new TableField[] { TAge.T_AGE.AGE }, true); + public static final UniqueKey T_AGE_NAME_KEY = Internal.createUniqueKey(TAge.T_AGE, DSL.name("t_age_name_key"), new TableField[] { TAge.T_AGE.NAME }, true); + public static final UniqueKey T_AGE_PKEY = Internal.createUniqueKey(TAge.T_AGE, DSL.name("t_age_pkey"), new TableField[] { TAge.T_AGE.PK_AGE }, true); + public static final UniqueKey T_REGISTRATION_CAMP_FORENAME_SURNAME_KEY = Internal.createUniqueKey(TRegistration.T_REGISTRATION, DSL.name("t_registration_camp_forename_surname_key"), new TableField[] { TRegistration.T_REGISTRATION.CAMP, TRegistration.T_REGISTRATION.FORENAME, TRegistration.T_REGISTRATION.SURNAME }, true); public static final UniqueKey T_REGISTRATION_PKEY = Internal.createUniqueKey(TRegistration.T_REGISTRATION, DSL.name("t_registration_pkey"), new TableField[] { TRegistration.T_REGISTRATION.PK_REGISTRATION }, true); + + // ------------------------------------------------------------------------- + // FOREIGN KEY definitions + // ------------------------------------------------------------------------- + + public static final ForeignKey T_REGISTRATION__T_REGISTRATION_FK_AGE_FKEY = Internal.createForeignKey(TRegistration.T_REGISTRATION, DSL.name("t_registration_fk_age_fkey"), new TableField[] { TRegistration.T_REGISTRATION.FK_AGE }, Keys.T_AGE_PKEY, new TableField[] { TAge.T_AGE.PK_AGE }, true); } diff --git a/src/main/java/de/jottyfan/bico/db/camp/Tables.java b/src/main/java/de/jottyfan/bico/db/camp/Tables.java index 662ea97..d2eb711 100644 --- a/src/main/java/de/jottyfan/bico/db/camp/Tables.java +++ b/src/main/java/de/jottyfan/bico/db/camp/Tables.java @@ -4,6 +4,7 @@ package de.jottyfan.bico.db.camp; +import de.jottyfan.bico.db.camp.tables.TAge; import de.jottyfan.bico.db.camp.tables.TRegistration; import de.jottyfan.bico.db.camp.tables.VParticipant; @@ -14,6 +15,11 @@ import de.jottyfan.bico.db.camp.tables.VParticipant; @SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) public class Tables { + /** + * The table camp.t_age. + */ + public static final TAge T_AGE = TAge.T_AGE; + /** * The table camp.t_registration. */ diff --git a/src/main/java/de/jottyfan/bico/db/camp/tables/TAge.java b/src/main/java/de/jottyfan/bico/db/camp/tables/TAge.java new file mode 100644 index 0000000..cf26e53 --- /dev/null +++ b/src/main/java/de/jottyfan/bico/db/camp/tables/TAge.java @@ -0,0 +1,311 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.bico.db.camp.tables; + + +import de.jottyfan.bico.db.camp.Camp; +import de.jottyfan.bico.db.camp.Keys; +import de.jottyfan.bico.db.camp.tables.TRegistration.TRegistrationPath; +import de.jottyfan.bico.db.camp.tables.records.TAgeRecord; + +import java.math.BigDecimal; +import java.time.LocalDateTime; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.jooq.Condition; +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Identity; +import org.jooq.InverseForeignKey; +import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.Record; +import org.jooq.SQL; +import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.DefaultDataType; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class TAge extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of camp.t_age + */ + public static final TAge T_AGE = new TAge(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TAgeRecord.class; + } + + /** + * The column camp.t_age.created. + */ + public final TableField CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("CURRENT_TIMESTAMP"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column camp.t_age.pk_age. + */ + public final TableField PK_AGE = createField(DSL.name("pk_age"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column camp.t_age.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, ""); + + /** + * @deprecated Unknown data type. If this is a qualified, user-defined type, + * it may have been excluded from code generation. If this is a built-in + * type, you can define an explicit {@link org.jooq.Binding} to specify how + * this type should be handled. Deprecation can be turned off using + * {@literal } in your code generator + * configuration. + */ + @Deprecated + public final TableField AGE = createField(DSL.name("age"), DefaultDataType.getDefaultDataType("\"pg_catalog\".\"int4range\"").nullable(false), this, ""); + + /** + * The column camp.t_age.price. + */ + public final TableField PRICE = createField(DSL.name("price"), SQLDataType.NUMERIC(4, 2).nullable(false), this, ""); + + private TAge(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TAge(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased camp.t_age table reference + */ + public TAge(String alias) { + this(DSL.name(alias), T_AGE); + } + + /** + * Create an aliased camp.t_age table reference + */ + public TAge(Name alias) { + this(alias, T_AGE); + } + + /** + * Create a camp.t_age table reference + */ + public TAge() { + this(DSL.name("t_age"), null); + } + + public TAge(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_AGE); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TAgePath extends TAge implements Path { + + private static final long serialVersionUID = 1L; + public TAgePath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TAgePath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TAgePath as(String alias) { + return new TAgePath(DSL.name(alias), this); + } + + @Override + public TAgePath as(Name alias) { + return new TAgePath(alias, this); + } + + @Override + public TAgePath as(Table alias) { + return new TAgePath(alias.getQualifiedName(), this); + } + } + + @Override + public Schema getSchema() { + return aliased() ? null : Camp.CAMP; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_AGE_PKEY; + } + + @Override + public List> getUniqueKeys() { + return Arrays.asList(Keys.T_AGE_AGE_KEY, Keys.T_AGE_NAME_KEY); + } + + private transient TRegistrationPath _tRegistration; + + /** + * Get the implicit to-many join path to the + * camp.t_registration table + */ + public TRegistrationPath tRegistration() { + if (_tRegistration == null) + _tRegistration = new TRegistrationPath(this, null, Keys.T_REGISTRATION__T_REGISTRATION_FK_AGE_FKEY.getInverseKey()); + + return _tRegistration; + } + + @Override + public TAge as(String alias) { + return new TAge(DSL.name(alias), this); + } + + @Override + public TAge as(Name alias) { + return new TAge(alias, this); + } + + @Override + public TAge as(Table alias) { + return new TAge(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public TAge rename(String name) { + return new TAge(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public TAge rename(Name name) { + return new TAge(name, null); + } + + /** + * Rename this table + */ + @Override + public TAge rename(Table name) { + return new TAge(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TAge where(Condition condition) { + return new TAge(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TAge where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TAge where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TAge where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TAge where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TAge where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TAge where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TAge where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TAge whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TAge whereNotExists(Select select) { + return where(DSL.notExists(select)); + } +} 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 78af472..d91cab5 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 @@ -8,17 +8,24 @@ import de.jottyfan.bico.db.camp.Camp; import de.jottyfan.bico.db.camp.Keys; import de.jottyfan.bico.db.camp.enums.EnumCamp; import de.jottyfan.bico.db.camp.enums.EnumSex; +import de.jottyfan.bico.db.camp.tables.TAge.TAgePath; import de.jottyfan.bico.db.camp.tables.records.TRegistrationRecord; import java.time.LocalDateTime; +import java.util.Arrays; import java.util.Collection; +import java.util.List; import org.jooq.Condition; import org.jooq.Field; +import org.jooq.ForeignKey; import org.jooq.Identity; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; import org.jooq.PlainSQL; import org.jooq.QueryPart; +import org.jooq.Record; import org.jooq.SQL; import org.jooq.Schema; import org.jooq.Select; @@ -88,6 +95,41 @@ public class TRegistration extends TableImpl { */ public final TableField SEX = createField(DSL.name("sex"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(EnumSex.class), this, ""); + /** + * The column camp.t_registration.barrier_free. + */ + public final TableField BARRIER_FREE = createField(DSL.name("barrier_free"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); + + /** + * The column camp.t_registration.nutrition. + */ + public final TableField NUTRITION = createField(DSL.name("nutrition"), SQLDataType.CLOB, this, ""); + + /** + * The column camp.t_registration.driver_provide_places. + */ + public final TableField DRIVER_PROVIDE_PLACES = createField(DSL.name("driver_provide_places"), SQLDataType.INTEGER, this, ""); + + /** + * The column camp.t_registration.want_place_in_car. + */ + public final TableField WANT_PLACE_IN_CAR = createField(DSL.name("want_place_in_car"), SQLDataType.BOOLEAN, this, ""); + + /** + * The column camp.t_registration.diseases. + */ + public final TableField DISEASES = createField(DSL.name("diseases"), SQLDataType.CLOB, this, ""); + + /** + * The column camp.t_registration.require_payment. + */ + public final TableField REQUIRE_PAYMENT = createField(DSL.name("require_payment"), SQLDataType.BOOLEAN, this, ""); + + /** + * The column camp.t_registration.fk_age. + */ + public final TableField FK_AGE = createField(DSL.name("fk_age"), SQLDataType.INTEGER.nullable(false), this, ""); + private TRegistration(Name alias, Table aliased) { this(alias, aliased, (Field[]) null, null); } @@ -117,6 +159,39 @@ public class TRegistration extends TableImpl { this(DSL.name("t_registration"), null); } + public TRegistration(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_REGISTRATION); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TRegistrationPath extends TRegistration implements Path { + + private static final long serialVersionUID = 1L; + public TRegistrationPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TRegistrationPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TRegistrationPath as(String alias) { + return new TRegistrationPath(DSL.name(alias), this); + } + + @Override + public TRegistrationPath as(Name alias) { + return new TRegistrationPath(alias, this); + } + + @Override + public TRegistrationPath as(Table alias) { + return new TRegistrationPath(alias.getQualifiedName(), this); + } + } + @Override public Schema getSchema() { return aliased() ? null : Camp.CAMP; @@ -132,6 +207,28 @@ public class TRegistration extends TableImpl { return Keys.T_REGISTRATION_PKEY; } + @Override + public List> getUniqueKeys() { + return Arrays.asList(Keys.T_REGISTRATION_CAMP_FORENAME_SURNAME_KEY); + } + + @Override + public List> getReferences() { + return Arrays.asList(Keys.T_REGISTRATION__T_REGISTRATION_FK_AGE_FKEY); + } + + private transient TAgePath _tAge; + + /** + * Get the implicit join path to the camp.t_age table. + */ + public TAgePath tAge() { + if (_tAge == null) + _tAge = new TAgePath(this, Keys.T_REGISTRATION__T_REGISTRATION_FK_AGE_FKEY, null); + + return _tAge; + } + @Override public TRegistration as(String alias) { return new TRegistration(DSL.name(alias), this); diff --git a/src/main/java/de/jottyfan/bico/db/camp/tables/pojos/TAge.java b/src/main/java/de/jottyfan/bico/db/camp/tables/pojos/TAge.java new file mode 100644 index 0000000..a31a618 --- /dev/null +++ b/src/main/java/de/jottyfan/bico/db/camp/tables/pojos/TAge.java @@ -0,0 +1,156 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.bico.db.camp.tables.pojos; + + +import java.io.Serializable; +import java.math.BigDecimal; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class TAge implements Serializable { + + private static final long serialVersionUID = 1L; + + private final LocalDateTime created; + private final Integer pkAge; + private final String name; + private final Object age; + private final BigDecimal price; + + public TAge(TAge value) { + this.created = value.created; + this.pkAge = value.pkAge; + this.name = value.name; + this.age = value.age; + this.price = value.price; + } + + public TAge( + LocalDateTime created, + Integer pkAge, + String name, + Object age, + BigDecimal price + ) { + this.created = created; + this.pkAge = pkAge; + this.name = name; + this.age = age; + this.price = price; + } + + /** + * Getter for camp.t_age.created. + */ + public LocalDateTime getCreated() { + return this.created; + } + + /** + * Getter for camp.t_age.pk_age. + */ + public Integer getPkAge() { + return this.pkAge; + } + + /** + * Getter for camp.t_age.name. + */ + public String getName() { + return this.name; + } + + /** + * @deprecated Unknown data type. If this is a qualified, user-defined type, + * it may have been excluded from code generation. If this is a built-in + * type, you can define an explicit {@link org.jooq.Binding} to specify how + * this type should be handled. Deprecation can be turned off using + * {@literal } in your code generator + * configuration. + */ + @Deprecated + public Object getAge() { + return this.age; + } + + /** + * Getter for camp.t_age.price. + */ + public BigDecimal getPrice() { + return this.price; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TAge other = (TAge) obj; + if (this.created == null) { + if (other.created != null) + return false; + } + else if (!this.created.equals(other.created)) + return false; + if (this.pkAge == null) { + if (other.pkAge != null) + return false; + } + else if (!this.pkAge.equals(other.pkAge)) + return false; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + if (this.age == null) { + if (other.age != null) + return false; + } + else if (!this.age.equals(other.age)) + return false; + if (this.price == null) { + if (other.price != null) + return false; + } + else if (!this.price.equals(other.price)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.created == null) ? 0 : this.created.hashCode()); + result = prime * result + ((this.pkAge == null) ? 0 : this.pkAge.hashCode()); + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + result = prime * result + ((this.age == null) ? 0 : this.age.hashCode()); + result = prime * result + ((this.price == null) ? 0 : this.price.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TAge ("); + + sb.append(created); + sb.append(", ").append(pkAge); + sb.append(", ").append(name); + sb.append(", ").append(age); + sb.append(", ").append(price); + + sb.append(")"); + return sb.toString(); + } +} 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 4e0e877..6b98e96 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 @@ -26,6 +26,13 @@ public class TRegistration implements Serializable { private final String forename; private final String surname; private final EnumSex sex; + private final Boolean barrierFree; + private final String nutrition; + private final Integer driverProvidePlaces; + private final Boolean wantPlaceInCar; + private final String diseases; + private final Boolean requirePayment; + private final Integer fkAge; public TRegistration(TRegistration value) { this.created = value.created; @@ -35,6 +42,13 @@ public class TRegistration implements Serializable { this.forename = value.forename; this.surname = value.surname; this.sex = value.sex; + this.barrierFree = value.barrierFree; + this.nutrition = value.nutrition; + this.driverProvidePlaces = value.driverProvidePlaces; + this.wantPlaceInCar = value.wantPlaceInCar; + this.diseases = value.diseases; + this.requirePayment = value.requirePayment; + this.fkAge = value.fkAge; } public TRegistration( @@ -44,7 +58,14 @@ public class TRegistration implements Serializable { EnumCamp camp, String forename, String surname, - EnumSex sex + EnumSex sex, + Boolean barrierFree, + String nutrition, + Integer driverProvidePlaces, + Boolean wantPlaceInCar, + String diseases, + Boolean requirePayment, + Integer fkAge ) { this.created = created; this.pkRegistration = pkRegistration; @@ -53,6 +74,13 @@ public class TRegistration implements Serializable { this.forename = forename; this.surname = surname; this.sex = sex; + this.barrierFree = barrierFree; + this.nutrition = nutrition; + this.driverProvidePlaces = driverProvidePlaces; + this.wantPlaceInCar = wantPlaceInCar; + this.diseases = diseases; + this.requirePayment = requirePayment; + this.fkAge = fkAge; } /** @@ -104,6 +132,55 @@ public class TRegistration implements Serializable { return this.sex; } + /** + * Getter for camp.t_registration.barrier_free. + */ + public Boolean getBarrierFree() { + return this.barrierFree; + } + + /** + * Getter for camp.t_registration.nutrition. + */ + public String getNutrition() { + return this.nutrition; + } + + /** + * Getter for camp.t_registration.driver_provide_places. + */ + public Integer getDriverProvidePlaces() { + return this.driverProvidePlaces; + } + + /** + * Getter for camp.t_registration.want_place_in_car. + */ + public Boolean getWantPlaceInCar() { + return this.wantPlaceInCar; + } + + /** + * Getter for camp.t_registration.diseases. + */ + public String getDiseases() { + return this.diseases; + } + + /** + * Getter for camp.t_registration.require_payment. + */ + public Boolean getRequirePayment() { + return this.requirePayment; + } + + /** + * Getter for camp.t_registration.fk_age. + */ + public Integer getFkAge() { + return this.fkAge; + } + @Override public boolean equals(Object obj) { if (this == obj) @@ -155,6 +232,48 @@ public class TRegistration implements Serializable { } else if (!this.sex.equals(other.sex)) return false; + if (this.barrierFree == null) { + if (other.barrierFree != null) + return false; + } + else if (!this.barrierFree.equals(other.barrierFree)) + return false; + if (this.nutrition == null) { + if (other.nutrition != null) + return false; + } + else if (!this.nutrition.equals(other.nutrition)) + return false; + if (this.driverProvidePlaces == null) { + if (other.driverProvidePlaces != null) + return false; + } + else if (!this.driverProvidePlaces.equals(other.driverProvidePlaces)) + return false; + if (this.wantPlaceInCar == null) { + if (other.wantPlaceInCar != null) + return false; + } + else if (!this.wantPlaceInCar.equals(other.wantPlaceInCar)) + return false; + if (this.diseases == null) { + if (other.diseases != null) + return false; + } + else if (!this.diseases.equals(other.diseases)) + return false; + if (this.requirePayment == null) { + if (other.requirePayment != null) + return false; + } + else if (!this.requirePayment.equals(other.requirePayment)) + return false; + if (this.fkAge == null) { + if (other.fkAge != null) + return false; + } + else if (!this.fkAge.equals(other.fkAge)) + return false; return true; } @@ -169,6 +288,13 @@ public class TRegistration implements Serializable { result = prime * result + ((this.forename == null) ? 0 : this.forename.hashCode()); result = prime * result + ((this.surname == null) ? 0 : this.surname.hashCode()); result = prime * result + ((this.sex == null) ? 0 : this.sex.hashCode()); + result = prime * result + ((this.barrierFree == null) ? 0 : this.barrierFree.hashCode()); + result = prime * result + ((this.nutrition == null) ? 0 : this.nutrition.hashCode()); + result = prime * result + ((this.driverProvidePlaces == null) ? 0 : this.driverProvidePlaces.hashCode()); + result = prime * result + ((this.wantPlaceInCar == null) ? 0 : this.wantPlaceInCar.hashCode()); + 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()); return result; } @@ -183,6 +309,13 @@ public class TRegistration implements Serializable { sb.append(", ").append(forename); sb.append(", ").append(surname); sb.append(", ").append(sex); + sb.append(", ").append(barrierFree); + sb.append(", ").append(nutrition); + sb.append(", ").append(driverProvidePlaces); + sb.append(", ").append(wantPlaceInCar); + sb.append(", ").append(diseases); + sb.append(", ").append(requirePayment); + sb.append(", ").append(fkAge); sb.append(")"); return sb.toString(); diff --git a/src/main/java/de/jottyfan/bico/db/camp/tables/records/TAgeRecord.java b/src/main/java/de/jottyfan/bico/db/camp/tables/records/TAgeRecord.java new file mode 100644 index 0000000..42c1925 --- /dev/null +++ b/src/main/java/de/jottyfan/bico/db/camp/tables/records/TAgeRecord.java @@ -0,0 +1,160 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.bico.db.camp.tables.records; + + +import de.jottyfan.bico.db.camp.tables.TAge; + +import java.math.BigDecimal; +import java.time.LocalDateTime; + +import org.jooq.Record1; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class TAgeRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for camp.t_age.created. + */ + public TAgeRecord setCreated(LocalDateTime value) { + set(0, value); + return this; + } + + /** + * Getter for camp.t_age.created. + */ + public LocalDateTime getCreated() { + return (LocalDateTime) get(0); + } + + /** + * Setter for camp.t_age.pk_age. + */ + public TAgeRecord setPkAge(Integer value) { + set(1, value); + return this; + } + + /** + * Getter for camp.t_age.pk_age. + */ + public Integer getPkAge() { + return (Integer) get(1); + } + + /** + * Setter for camp.t_age.name. + */ + public TAgeRecord setName(String value) { + set(2, value); + return this; + } + + /** + * Getter for camp.t_age.name. + */ + public String getName() { + return (String) get(2); + } + + /** + * @deprecated Unknown data type. If this is a qualified, user-defined type, + * it may have been excluded from code generation. If this is a built-in + * type, you can define an explicit {@link org.jooq.Binding} to specify how + * this type should be handled. Deprecation can be turned off using + * {@literal } in your code generator + * configuration. + */ + @Deprecated + public TAgeRecord setAge(Object value) { + set(3, value); + return this; + } + + /** + * @deprecated Unknown data type. If this is a qualified, user-defined type, + * it may have been excluded from code generation. If this is a built-in + * type, you can define an explicit {@link org.jooq.Binding} to specify how + * this type should be handled. Deprecation can be turned off using + * {@literal } in your code generator + * configuration. + */ + @Deprecated + public Object getAge() { + return get(3); + } + + /** + * Setter for camp.t_age.price. + */ + public TAgeRecord setPrice(BigDecimal value) { + set(4, value); + return this; + } + + /** + * Getter for camp.t_age.price. + */ + public BigDecimal getPrice() { + return (BigDecimal) get(4); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached TAgeRecord + */ + public TAgeRecord() { + super(TAge.T_AGE); + } + + /** + * Create a detached, initialised TAgeRecord + */ + public TAgeRecord(LocalDateTime created, Integer pkAge, String name, Object age, BigDecimal price) { + super(TAge.T_AGE); + + setCreated(created); + setPkAge(pkAge); + setName(name); + setAge(age); + setPrice(price); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised TAgeRecord + */ + public TAgeRecord(de.jottyfan.bico.db.camp.tables.pojos.TAge value) { + super(TAge.T_AGE); + + if (value != null) { + setCreated(value.getCreated()); + setPkAge(value.getPkAge()); + setName(value.getName()); + setAge(value.getAge()); + setPrice(value.getPrice()); + resetChangedOnNotNull(); + } + } +} 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 e6c3961..1444270 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 @@ -127,6 +127,111 @@ public class TRegistrationRecord extends UpdatableRecordImplcamp.t_registration.barrier_free. + */ + public TRegistrationRecord setBarrierFree(Boolean value) { + set(7, value); + return this; + } + + /** + * Getter for camp.t_registration.barrier_free. + */ + public Boolean getBarrierFree() { + return (Boolean) get(7); + } + + /** + * Setter for camp.t_registration.nutrition. + */ + public TRegistrationRecord setNutrition(String value) { + set(8, value); + return this; + } + + /** + * Getter for camp.t_registration.nutrition. + */ + public String getNutrition() { + return (String) get(8); + } + + /** + * Setter for camp.t_registration.driver_provide_places. + */ + public TRegistrationRecord setDriverProvidePlaces(Integer value) { + set(9, value); + return this; + } + + /** + * Getter for camp.t_registration.driver_provide_places. + */ + public Integer getDriverProvidePlaces() { + return (Integer) get(9); + } + + /** + * Setter for camp.t_registration.want_place_in_car. + */ + public TRegistrationRecord setWantPlaceInCar(Boolean value) { + set(10, value); + return this; + } + + /** + * Getter for camp.t_registration.want_place_in_car. + */ + public Boolean getWantPlaceInCar() { + return (Boolean) get(10); + } + + /** + * Setter for camp.t_registration.diseases. + */ + public TRegistrationRecord setDiseases(String value) { + set(11, value); + return this; + } + + /** + * Getter for camp.t_registration.diseases. + */ + public String getDiseases() { + return (String) get(11); + } + + /** + * Setter for camp.t_registration.require_payment. + */ + public TRegistrationRecord setRequirePayment(Boolean value) { + set(12, value); + return this; + } + + /** + * Getter for camp.t_registration.require_payment. + */ + public Boolean getRequirePayment() { + return (Boolean) get(12); + } + + /** + * Setter for camp.t_registration.fk_age. + */ + public TRegistrationRecord setFkAge(Integer value) { + set(13, value); + return this; + } + + /** + * Getter for camp.t_registration.fk_age. + */ + public Integer getFkAge() { + return (Integer) get(13); + } + // ------------------------------------------------------------------------- // Primary key information // ------------------------------------------------------------------------- @@ -150,7 +255,7 @@ public class TRegistrationRecord extends UpdatableRecordImpl