Jottyfan 2023-03-26 20:31:15 +02:00
parent d20d9b9dcf
commit 13682b24cc
18 changed files with 93 additions and 19 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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 {
id 'nu.studer.jooq' version '7.1.1'
}
@ -6,7 +22,7 @@ apply plugin: 'java'
apply plugin: 'maven-publish'
group = 'de.jottyfan'
version = '2021.02'
version = '2023.03'
description = """COJooq"""
@ -16,6 +32,7 @@ targetCompatibility = 11
repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.maven.apache.org/maven2" }
}
dependencies {
@ -81,9 +98,8 @@ publishing {
}
repositories {
maven {
url = layout.buildDirectory.dir("/home/henkej/git/libs/")
url = layout.buildDirectory.dir("/home/jotty/git/libs/")
}
}
}

View File

@ -23,7 +23,9 @@ public enum EnumCamprole implements EnumType {
director("director"),
feeder("feeder");
feeder("feeder"),
observer("observer");
private final String literal;

View File

@ -21,7 +21,7 @@ import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row19;
import org.jooq.Row20;
import org.jooq.Schema;
import org.jooq.Table;
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, "");
/**
* 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) {
this(alias, aliased, null);
}
@ -269,11 +274,11 @@ public class TPerson extends TableImpl<TPersonRecord> {
}
// -------------------------------------------------------------------------
// Row19 type methods
// Row20 type methods
// -------------------------------------------------------------------------
@Override
public Row19<Integer, String, String, String, String, String, String, LocalDate, EnumCamprole, String, Integer, Integer, Boolean, LocalDateTime, EnumSex, Integer, BigDecimal, String, Boolean> fieldsRow() {
return (Row19) super.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 (Row20) super.fieldsRow();
}
}

View File

@ -40,6 +40,7 @@ public class TPerson implements Serializable {
private final BigDecimal paid;
private final String comment;
private final Boolean consentCatalogPhoto;
private final BigDecimal requiredPrice;
public TPerson(TPerson value) {
this.pk = value.pk;
@ -61,6 +62,7 @@ public class TPerson implements Serializable {
this.paid = value.paid;
this.comment = value.comment;
this.consentCatalogPhoto = value.consentCatalogPhoto;
this.requiredPrice = value.requiredPrice;
}
public TPerson(
@ -82,7 +84,8 @@ public class TPerson implements Serializable {
Integer fkRegistrator,
BigDecimal paid,
String comment,
Boolean consentCatalogPhoto
Boolean consentCatalogPhoto,
BigDecimal requiredPrice
) {
this.pk = pk;
this.forename = forename;
@ -103,6 +106,7 @@ public class TPerson implements Serializable {
this.paid = paid;
this.comment = comment;
this.consentCatalogPhoto = consentCatalogPhoto;
this.requiredPrice = requiredPrice;
}
/**
@ -238,6 +242,13 @@ public class TPerson implements Serializable {
return this.consentCatalogPhoto;
}
/**
* Getter for <code>camp.t_person.required_price</code>.
*/
public BigDecimal getRequiredPrice() {
return this.requiredPrice;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("TPerson (");
@ -261,6 +272,7 @@ public class TPerson implements Serializable {
sb.append(", ").append(paid);
sb.append(", ").append(comment);
sb.append(", ").append(consentCatalogPhoto);
sb.append(", ").append(requiredPrice);
sb.append(")");
return sb.toString();

View File

@ -14,8 +14,8 @@ import java.time.LocalDateTime;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record19;
import org.jooq.Row19;
import org.jooq.Record20;
import org.jooq.Row20;
import org.jooq.impl.UpdatableRecordImpl;
@ -23,7 +23,7 @@ import org.jooq.impl.UpdatableRecordImpl;
* This class is generated by jOOQ.
*/
@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;
@ -312,6 +312,21 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
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
// -------------------------------------------------------------------------
@ -322,17 +337,17 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
}
// -------------------------------------------------------------------------
// Record19 type implementation
// Record20 type implementation
// -------------------------------------------------------------------------
@Override
public Row19<Integer, String, String, String, String, String, String, LocalDate, EnumCamprole, String, Integer, Integer, Boolean, LocalDateTime, EnumSex, Integer, BigDecimal, String, Boolean> fieldsRow() {
return (Row19) super.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 (Row20) super.fieldsRow();
}
@Override
public Row19<Integer, String, String, String, String, String, String, LocalDate, EnumCamprole, String, Integer, Integer, Boolean, LocalDateTime, EnumSex, Integer, BigDecimal, String, Boolean> valuesRow() {
return (Row19) super.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 (Row20) super.valuesRow();
}
@Override
@ -430,6 +445,11 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
return TPerson.T_PERSON.CONSENT_CATALOG_PHOTO;
}
@Override
public Field<BigDecimal> field20() {
return TPerson.T_PERSON.REQUIRED_PRICE;
}
@Override
public Integer component1() {
return getPk();
@ -525,6 +545,11 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
return getConsentCatalogPhoto();
}
@Override
public BigDecimal component20() {
return getRequiredPrice();
}
@Override
public Integer value1() {
return getPk();
@ -620,6 +645,11 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
return getConsentCatalogPhoto();
}
@Override
public BigDecimal value20() {
return getRequiredPrice();
}
@Override
public TPersonRecord value1(Integer value) {
setPk(value);
@ -735,7 +765,13 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
}
@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);
value2(value2);
value3(value3);
@ -755,6 +791,7 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
value17(value17);
value18(value18);
value19(value19);
value20(value20);
return this;
}
@ -772,7 +809,7 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
/**
* 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);
setPk(pk);
@ -794,6 +831,7 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
setPaid(paid);
setComment(comment);
setConsentCatalogPhoto(consentCatalogPhoto);
setRequiredPrice(requiredPrice);
}
/**
@ -822,6 +860,7 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> implements
setPaid(value.getPaid());
setComment(value.getComment());
setConsentCatalogPhoto(value.getConsentCatalogPhoto());
setRequiredPrice(value.getRequiredPrice());
}
}
}