added day slots
This commit is contained in:
@ -22,7 +22,7 @@ apply plugin: 'java'
|
||||
apply plugin: 'maven-publish'
|
||||
|
||||
group = 'de.jottyfan'
|
||||
version = '6'
|
||||
version = '7'
|
||||
|
||||
description = """bicolib"""
|
||||
|
||||
|
@ -130,6 +130,31 @@ public class TRegistration extends TableImpl<TRegistrationRecord> {
|
||||
*/
|
||||
public final TableField<TRegistrationRecord, Integer> FK_AGE = createField(DSL.name("fk_age"), SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>camp.t_registration.day0</code>.
|
||||
*/
|
||||
public final TableField<TRegistrationRecord, Boolean> DAY0 = createField(DSL.name("day0"), SQLDataType.BOOLEAN, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>camp.t_registration.day1</code>.
|
||||
*/
|
||||
public final TableField<TRegistrationRecord, Boolean> DAY1 = createField(DSL.name("day1"), SQLDataType.BOOLEAN, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>camp.t_registration.day2</code>.
|
||||
*/
|
||||
public final TableField<TRegistrationRecord, Boolean> DAY2 = createField(DSL.name("day2"), SQLDataType.BOOLEAN, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>camp.t_registration.day3</code>.
|
||||
*/
|
||||
public final TableField<TRegistrationRecord, Boolean> DAY3 = createField(DSL.name("day3"), SQLDataType.BOOLEAN, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>camp.t_registration.day4</code>.
|
||||
*/
|
||||
public final TableField<TRegistrationRecord, Boolean> DAY4 = createField(DSL.name("day4"), SQLDataType.BOOLEAN, this, "");
|
||||
|
||||
private TRegistration(Name alias, Table<TRegistrationRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
@ -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 <code>camp.t_registration.day0</code>.
|
||||
*/
|
||||
public Boolean getDay0() {
|
||||
return this.day0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.day1</code>.
|
||||
*/
|
||||
public Boolean getDay1() {
|
||||
return this.day1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.day2</code>.
|
||||
*/
|
||||
public Boolean getDay2() {
|
||||
return this.day2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.day3</code>.
|
||||
*/
|
||||
public Boolean getDay3() {
|
||||
return this.day3;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.day4</code>.
|
||||
*/
|
||||
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();
|
||||
|
@ -232,6 +232,81 @@ public class TRegistrationRecord extends UpdatableRecordImpl<TRegistrationRecord
|
||||
return (Integer) get(13);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>camp.t_registration.day0</code>.
|
||||
*/
|
||||
public TRegistrationRecord setDay0(Boolean value) {
|
||||
set(14, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.day0</code>.
|
||||
*/
|
||||
public Boolean getDay0() {
|
||||
return (Boolean) get(14);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>camp.t_registration.day1</code>.
|
||||
*/
|
||||
public TRegistrationRecord setDay1(Boolean value) {
|
||||
set(15, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.day1</code>.
|
||||
*/
|
||||
public Boolean getDay1() {
|
||||
return (Boolean) get(15);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>camp.t_registration.day2</code>.
|
||||
*/
|
||||
public TRegistrationRecord setDay2(Boolean value) {
|
||||
set(16, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.day2</code>.
|
||||
*/
|
||||
public Boolean getDay2() {
|
||||
return (Boolean) get(16);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>camp.t_registration.day3</code>.
|
||||
*/
|
||||
public TRegistrationRecord setDay3(Boolean value) {
|
||||
set(17, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.day3</code>.
|
||||
*/
|
||||
public Boolean getDay3() {
|
||||
return (Boolean) get(17);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>camp.t_registration.day4</code>.
|
||||
*/
|
||||
public TRegistrationRecord setDay4(Boolean value) {
|
||||
set(18, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.day4</code>.
|
||||
*/
|
||||
public Boolean getDay4() {
|
||||
return (Boolean) get(18);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
@ -255,7 +330,7 @@ public class TRegistrationRecord extends UpdatableRecordImpl<TRegistrationRecord
|
||||
/**
|
||||
* Create a detached, initialised TRegistrationRecord
|
||||
*/
|
||||
public TRegistrationRecord(LocalDateTime created, Integer pkRegistration, String registrator, EnumCamp camp, String forename, String surname, EnumSex sex, Boolean barrierFree, String nutrition, Integer driverProvidePlaces, Boolean wantPlaceInCar, String diseases, Boolean requirePayment, Integer fkAge) {
|
||||
public TRegistrationRecord(LocalDateTime created, Integer pkRegistration, String registrator, EnumCamp camp, String forename, String surname, EnumSex sex, Boolean barrierFree, String nutrition, Integer driverProvidePlaces, Boolean wantPlaceInCar, String diseases, Boolean requirePayment, Integer fkAge, Boolean day0, Boolean day1, Boolean day2, Boolean day3, Boolean day4) {
|
||||
super(TRegistration.T_REGISTRATION);
|
||||
|
||||
setCreated(created);
|
||||
@ -272,6 +347,11 @@ public class TRegistrationRecord extends UpdatableRecordImpl<TRegistrationRecord
|
||||
setDiseases(diseases);
|
||||
setRequirePayment(requirePayment);
|
||||
setFkAge(fkAge);
|
||||
setDay0(day0);
|
||||
setDay1(day1);
|
||||
setDay2(day2);
|
||||
setDay3(day3);
|
||||
setDay4(day4);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
|
||||
@ -296,6 +376,11 @@ public class TRegistrationRecord extends UpdatableRecordImpl<TRegistrationRecord
|
||||
setDiseases(value.getDiseases());
|
||||
setRequirePayment(value.getRequirePayment());
|
||||
setFkAge(value.getFkAge());
|
||||
setDay0(value.getDay0());
|
||||
setDay1(value.getDay1());
|
||||
setDay2(value.getDay2());
|
||||
setDay3(value.getDay3());
|
||||
setDay4(value.getDay4());
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ public class VVersion extends TableImpl<VVersionRecord> {
|
||||
|
||||
private VVersion(Name alias, Table<VVersionRecord> 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);
|
||||
}
|
||||
|
||||
|
8
src/main/resources/v7.sql
Normal file
8
src/main/resources/v7.sql
Normal file
@ -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;
|
Reference in New Issue
Block a user