https://gitlab.com/jottyfan/camporganizer2/-/issues/11
This commit is contained in:
parent
d20d9b9dcf
commit
13682b24cc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
22
build.gradle
22
build.gradle
@ -1,3 +1,19 @@
|
|||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
mavenLocal()
|
||||||
|
mavenCentral()
|
||||||
|
maven { url "https://repo.maven.apache.org/maven2" }
|
||||||
|
maven { url "https://plugins.gradle.org/m2/" }
|
||||||
|
jcenter()
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
classpath 'org.jooq:jooq-codegen:3.16.4'
|
||||||
|
classpath 'org.postgresql:postgresql:42.3.2'
|
||||||
|
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:latest.release'
|
||||||
|
classpath 'nu.studer.jooq:nu.studer.jooq.gradle.plugin:7.1.1'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'nu.studer.jooq' version '7.1.1'
|
id 'nu.studer.jooq' version '7.1.1'
|
||||||
}
|
}
|
||||||
@ -6,7 +22,7 @@ apply plugin: 'java'
|
|||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
|
|
||||||
group = 'de.jottyfan'
|
group = 'de.jottyfan'
|
||||||
version = '2021.02'
|
version = '2023.03'
|
||||||
|
|
||||||
description = """COJooq"""
|
description = """COJooq"""
|
||||||
|
|
||||||
@ -16,6 +32,7 @@ targetCompatibility = 11
|
|||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
maven { url "https://repo.maven.apache.org/maven2" }
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@ -81,9 +98,8 @@ publishing {
|
|||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url = layout.buildDirectory.dir("/home/henkej/git/libs/")
|
url = layout.buildDirectory.dir("/home/jotty/git/libs/")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,7 +23,9 @@ public enum EnumCamprole implements EnumType {
|
|||||||
|
|
||||||
director("director"),
|
director("director"),
|
||||||
|
|
||||||
feeder("feeder");
|
feeder("feeder"),
|
||||||
|
|
||||||
|
observer("observer");
|
||||||
|
|
||||||
private final String literal;
|
private final String literal;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ import org.jooq.ForeignKey;
|
|||||||
import org.jooq.Identity;
|
import org.jooq.Identity;
|
||||||
import org.jooq.Name;
|
import org.jooq.Name;
|
||||||
import org.jooq.Record;
|
import org.jooq.Record;
|
||||||
import org.jooq.Row19;
|
import org.jooq.Row20;
|
||||||
import org.jooq.Schema;
|
import org.jooq.Schema;
|
||||||
import org.jooq.Table;
|
import org.jooq.Table;
|
||||||
import org.jooq.TableField;
|
import org.jooq.TableField;
|
||||||
@ -148,6 +148,11 @@ public class TPerson extends TableImpl<TPersonRecord> {
|
|||||||
*/
|
*/
|
||||||
public final TableField<TPersonRecord, Boolean> CONSENT_CATALOG_PHOTO = createField(DSL.name("consent_catalog_photo"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field("false", SQLDataType.BOOLEAN)), this, "");
|
public final TableField<TPersonRecord, Boolean> CONSENT_CATALOG_PHOTO = createField(DSL.name("consent_catalog_photo"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field("false", SQLDataType.BOOLEAN)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>camp.t_person.required_price</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<TPersonRecord, BigDecimal> REQUIRED_PRICE = createField(DSL.name("required_price"), SQLDataType.NUMERIC(7, 2), this, "");
|
||||||
|
|
||||||
private TPerson(Name alias, Table<TPersonRecord> aliased) {
|
private TPerson(Name alias, Table<TPersonRecord> aliased) {
|
||||||
this(alias, aliased, null);
|
this(alias, aliased, null);
|
||||||
}
|
}
|
||||||
@ -269,11 +274,11 @@ public class TPerson extends TableImpl<TPersonRecord> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
// Row19 type methods
|
// Row20 type methods
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Row19<Integer, String, String, String, String, String, String, LocalDate, EnumCamprole, String, Integer, Integer, Boolean, LocalDateTime, EnumSex, Integer, BigDecimal, String, Boolean> fieldsRow() {
|
public Row20<Integer, String, String, String, String, String, String, LocalDate, EnumCamprole, String, Integer, Integer, Boolean, LocalDateTime, EnumSex, Integer, BigDecimal, String, Boolean, BigDecimal> fieldsRow() {
|
||||||
return (Row19) super.fieldsRow();
|
return (Row20) super.fieldsRow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,6 +40,7 @@ public class TPerson implements Serializable {
|
|||||||
private final BigDecimal paid;
|
private final BigDecimal paid;
|
||||||
private final String comment;
|
private final String comment;
|
||||||
private final Boolean consentCatalogPhoto;
|
private final Boolean consentCatalogPhoto;
|
||||||
|
private final BigDecimal requiredPrice;
|
||||||
|
|
||||||
public TPerson(TPerson value) {
|
public TPerson(TPerson value) {
|
||||||
this.pk = value.pk;
|
this.pk = value.pk;
|
||||||
@ -61,6 +62,7 @@ public class TPerson implements Serializable {
|
|||||||
this.paid = value.paid;
|
this.paid = value.paid;
|
||||||
this.comment = value.comment;
|
this.comment = value.comment;
|
||||||
this.consentCatalogPhoto = value.consentCatalogPhoto;
|
this.consentCatalogPhoto = value.consentCatalogPhoto;
|
||||||
|
this.requiredPrice = value.requiredPrice;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TPerson(
|
public TPerson(
|
||||||
@ -82,7 +84,8 @@ public class TPerson implements Serializable {
|
|||||||
Integer fkRegistrator,
|
Integer fkRegistrator,
|
||||||
BigDecimal paid,
|
BigDecimal paid,
|
||||||
String comment,
|
String comment,
|
||||||
Boolean consentCatalogPhoto
|
Boolean consentCatalogPhoto,
|
||||||
|
BigDecimal requiredPrice
|
||||||
) {
|
) {
|
||||||
this.pk = pk;
|
this.pk = pk;
|
||||||
this.forename = forename;
|
this.forename = forename;
|
||||||
@ -103,6 +106,7 @@ public class TPerson implements Serializable {
|
|||||||
this.paid = paid;
|
this.paid = paid;
|
||||||
this.comment = comment;
|
this.comment = comment;
|
||||||
this.consentCatalogPhoto = consentCatalogPhoto;
|
this.consentCatalogPhoto = consentCatalogPhoto;
|
||||||
|
this.requiredPrice = requiredPrice;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -238,6 +242,13 @@ public class TPerson implements Serializable {
|
|||||||
return this.consentCatalogPhoto;
|
return this.consentCatalogPhoto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>camp.t_person.required_price</code>.
|
||||||
|
*/
|
||||||
|
public BigDecimal getRequiredPrice() {
|
||||||
|
return this.requiredPrice;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder("TPerson (");
|
StringBuilder sb = new StringBuilder("TPerson (");
|
||||||
@ -261,6 +272,7 @@ public class TPerson implements Serializable {
|
|||||||
sb.append(", ").append(paid);
|
sb.append(", ").append(paid);
|
||||||
sb.append(", ").append(comment);
|
sb.append(", ").append(comment);
|
||||||
sb.append(", ").append(consentCatalogPhoto);
|
sb.append(", ").append(consentCatalogPhoto);
|
||||||
|
sb.append(", ").append(requiredPrice);
|
||||||
|
|
||||||
sb.append(")");
|
sb.append(")");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
|
@ -14,8 +14,8 @@ import java.time.LocalDateTime;
|
|||||||
|
|
||||||
import org.jooq.Field;
|
import org.jooq.Field;
|
||||||
import org.jooq.Record1;
|
import org.jooq.Record1;
|
||||||
import org.jooq.Record19;
|
import org.jooq.Record20;
|
||||||
import org.jooq.Row19;
|
import org.jooq.Row20;
|
||||||
import org.jooq.impl.UpdatableRecordImpl;
|
import org.jooq.impl.UpdatableRecordImpl;
|
||||||
|
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ import org.jooq.impl.UpdatableRecordImpl;
|
|||||||
* This class is generated by jOOQ.
|
* This class is generated by jOOQ.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements Record19<Integer, String, String, String, String, String, String, LocalDate, EnumCamprole, String, Integer, Integer, Boolean, LocalDateTime, EnumSex, Integer, BigDecimal, String, Boolean> {
|
public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements Record20<Integer, String, String, String, String, String, String, LocalDate, EnumCamprole, String, Integer, Integer, Boolean, LocalDateTime, EnumSex, Integer, BigDecimal, String, Boolean, BigDecimal> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@ -312,6 +312,21 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
|
|||||||
return (Boolean) get(18);
|
return (Boolean) get(18);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>camp.t_person.required_price</code>.
|
||||||
|
*/
|
||||||
|
public TPersonRecord setRequiredPrice(BigDecimal value) {
|
||||||
|
set(19, value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>camp.t_person.required_price</code>.
|
||||||
|
*/
|
||||||
|
public BigDecimal getRequiredPrice() {
|
||||||
|
return (BigDecimal) get(19);
|
||||||
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
// Primary key information
|
// Primary key information
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@ -322,17 +337,17 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
// Record19 type implementation
|
// Record20 type implementation
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Row19<Integer, String, String, String, String, String, String, LocalDate, EnumCamprole, String, Integer, Integer, Boolean, LocalDateTime, EnumSex, Integer, BigDecimal, String, Boolean> fieldsRow() {
|
public Row20<Integer, String, String, String, String, String, String, LocalDate, EnumCamprole, String, Integer, Integer, Boolean, LocalDateTime, EnumSex, Integer, BigDecimal, String, Boolean, BigDecimal> fieldsRow() {
|
||||||
return (Row19) super.fieldsRow();
|
return (Row20) super.fieldsRow();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Row19<Integer, String, String, String, String, String, String, LocalDate, EnumCamprole, String, Integer, Integer, Boolean, LocalDateTime, EnumSex, Integer, BigDecimal, String, Boolean> valuesRow() {
|
public Row20<Integer, String, String, String, String, String, String, LocalDate, EnumCamprole, String, Integer, Integer, Boolean, LocalDateTime, EnumSex, Integer, BigDecimal, String, Boolean, BigDecimal> valuesRow() {
|
||||||
return (Row19) super.valuesRow();
|
return (Row20) super.valuesRow();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -430,6 +445,11 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
|
|||||||
return TPerson.T_PERSON.CONSENT_CATALOG_PHOTO;
|
return TPerson.T_PERSON.CONSENT_CATALOG_PHOTO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Field<BigDecimal> field20() {
|
||||||
|
return TPerson.T_PERSON.REQUIRED_PRICE;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer component1() {
|
public Integer component1() {
|
||||||
return getPk();
|
return getPk();
|
||||||
@ -525,6 +545,11 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
|
|||||||
return getConsentCatalogPhoto();
|
return getConsentCatalogPhoto();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public BigDecimal component20() {
|
||||||
|
return getRequiredPrice();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer value1() {
|
public Integer value1() {
|
||||||
return getPk();
|
return getPk();
|
||||||
@ -620,6 +645,11 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
|
|||||||
return getConsentCatalogPhoto();
|
return getConsentCatalogPhoto();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public BigDecimal value20() {
|
||||||
|
return getRequiredPrice();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TPersonRecord value1(Integer value) {
|
public TPersonRecord value1(Integer value) {
|
||||||
setPk(value);
|
setPk(value);
|
||||||
@ -735,7 +765,13 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TPersonRecord values(Integer value1, String value2, String value3, String value4, String value5, String value6, String value7, LocalDate value8, EnumCamprole value9, String value10, Integer value11, Integer value12, Boolean value13, LocalDateTime value14, EnumSex value15, Integer value16, BigDecimal value17, String value18, Boolean value19) {
|
public TPersonRecord value20(BigDecimal value) {
|
||||||
|
setRequiredPrice(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public TPersonRecord values(Integer value1, String value2, String value3, String value4, String value5, String value6, String value7, LocalDate value8, EnumCamprole value9, String value10, Integer value11, Integer value12, Boolean value13, LocalDateTime value14, EnumSex value15, Integer value16, BigDecimal value17, String value18, Boolean value19, BigDecimal value20) {
|
||||||
value1(value1);
|
value1(value1);
|
||||||
value2(value2);
|
value2(value2);
|
||||||
value3(value3);
|
value3(value3);
|
||||||
@ -755,6 +791,7 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
|
|||||||
value17(value17);
|
value17(value17);
|
||||||
value18(value18);
|
value18(value18);
|
||||||
value19(value19);
|
value19(value19);
|
||||||
|
value20(value20);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -772,7 +809,7 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
|
|||||||
/**
|
/**
|
||||||
* Create a detached, initialised TPersonRecord
|
* Create a detached, initialised TPersonRecord
|
||||||
*/
|
*/
|
||||||
public TPersonRecord(Integer pk, String forename, String surname, String street, String zip, String city, String phone, LocalDate birthdate, EnumCamprole camprole, String email, Integer fkCamp, Integer fkProfile, Boolean accept, LocalDateTime created, EnumSex sex, Integer fkRegistrator, BigDecimal paid, String comment, Boolean consentCatalogPhoto) {
|
public TPersonRecord(Integer pk, String forename, String surname, String street, String zip, String city, String phone, LocalDate birthdate, EnumCamprole camprole, String email, Integer fkCamp, Integer fkProfile, Boolean accept, LocalDateTime created, EnumSex sex, Integer fkRegistrator, BigDecimal paid, String comment, Boolean consentCatalogPhoto, BigDecimal requiredPrice) {
|
||||||
super(TPerson.T_PERSON);
|
super(TPerson.T_PERSON);
|
||||||
|
|
||||||
setPk(pk);
|
setPk(pk);
|
||||||
@ -794,6 +831,7 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
|
|||||||
setPaid(paid);
|
setPaid(paid);
|
||||||
setComment(comment);
|
setComment(comment);
|
||||||
setConsentCatalogPhoto(consentCatalogPhoto);
|
setConsentCatalogPhoto(consentCatalogPhoto);
|
||||||
|
setRequiredPrice(requiredPrice);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -822,6 +860,7 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
|
|||||||
setPaid(value.getPaid());
|
setPaid(value.getPaid());
|
||||||
setComment(value.getComment());
|
setComment(value.getComment());
|
||||||
setConsentCatalogPhoto(value.getConsentCatalogPhoto());
|
setConsentCatalogPhoto(value.getConsentCatalogPhoto());
|
||||||
|
setRequiredPrice(value.getRequiredPrice());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user