added camp tables

This commit is contained in:
Jottyfan
2024-12-01 16:47:22 +01:00
parent b46d3d05c0
commit cf9bf2a9cf
62 changed files with 4456 additions and 1686 deletions

View File

@ -12,7 +12,7 @@
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>

View File

@ -1,4 +1,4 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.compliance=17
org.eclipse.jdt.core.compiler.source=17
org.eclipse.jdt.core.compiler.codegen.targetPlatform=21
org.eclipse.jdt.core.compiler.compliance=21
org.eclipse.jdt.core.compiler.source=21

View File

@ -22,12 +22,12 @@ apply plugin: 'java'
apply plugin: 'maven-publish'
group = 'de.jottyfan'
version = '4'
version = '5'
description = """bicolib"""
sourceCompatibility = 17
targetCompatibility = 17
sourceCompatibility = 21
targetCompatibility = 21
repositories {
mavenLocal()
@ -47,7 +47,7 @@ dependencies {
import org.jooq.meta.jaxb.Logging
jooq {
version = '3.16.4'
version = '3.19.15'
edition = nu.studer.gradle.jooq.JooqEdition.OSS
configurations {
bicolib {
@ -70,8 +70,15 @@ jooq {
name = 'org.jooq.codegen.DefaultGenerator'
database {
name = 'org.jooq.meta.postgres.PostgresDatabase'
schemata {
schema {
inputSchema = 'public'
}
schema {
inputSchema = 'camp'
}
}
}
generate {
deprecated = false
relations = true

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@ -4,6 +4,9 @@
package de.jottyfan.bico.db;
import de.jottyfan.bico.db.camp.Camp;
import de.jottyfan.bico.db.public_.Public;
import java.util.Arrays;
import java.util.List;
@ -15,7 +18,7 @@ import org.jooq.impl.CatalogImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class DefaultCatalog extends CatalogImpl {
private static final long serialVersionUID = 1L;
@ -25,6 +28,11 @@ public class DefaultCatalog extends CatalogImpl {
*/
public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog();
/**
* The schema <code>camp</code>.
*/
public final Camp CAMP = Camp.CAMP;
/**
* The schema <code>public</code>.
*/
@ -40,15 +48,16 @@ public class DefaultCatalog extends CatalogImpl {
@Override
public final List<Schema> getSchemas() {
return Arrays.asList(
Camp.CAMP,
Public.PUBLIC
);
}
/**
* A reference to the 3.16 minor release of the code generator. If this
* A reference to the 3.19 minor release of the code generator. If this
* doesn't compile, it's because the runtime library uses an older minor
* release, namely: 3.16. You can turn off the generation of this reference
* release, namely: 3.19. You can turn off the generation of this reference
* by specifying /configuration/generator/generate/jooqVersionReference
*/
private static final String REQUIRE_RUNTIME_JOOQ_VERSION = Constants.VERSION_3_16;
private static final String REQUIRE_RUNTIME_JOOQ_VERSION = Constants.VERSION_3_19;
}

View File

@ -0,0 +1,62 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.camp;
import de.jottyfan.bico.db.DefaultCatalog;
import de.jottyfan.bico.db.camp.tables.TRegistration;
import de.jottyfan.bico.db.camp.tables.VParticipant;
import java.util.Arrays;
import java.util.List;
import org.jooq.Catalog;
import org.jooq.Table;
import org.jooq.impl.SchemaImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class Camp extends SchemaImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>camp</code>
*/
public static final Camp CAMP = new Camp();
/**
* The table <code>camp.t_registration</code>.
*/
public final TRegistration T_REGISTRATION = TRegistration.T_REGISTRATION;
/**
* The table <code>camp.v_participant</code>.
*/
public final VParticipant V_PARTICIPANT = VParticipant.V_PARTICIPANT;
/**
* No further instances allowed
*/
private Camp() {
super("camp", null);
}
@Override
public Catalog getCatalog() {
return DefaultCatalog.DEFAULT_CATALOG;
}
@Override
public final List<Table<?>> getTables() {
return Arrays.asList(
TRegistration.T_REGISTRATION,
VParticipant.V_PARTICIPANT
);
}
}

View File

@ -0,0 +1,28 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.camp;
import de.jottyfan.bico.db.camp.tables.TRegistration;
import de.jottyfan.bico.db.camp.tables.records.TRegistrationRecord;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.Internal;
/**
* A class modelling foreign key relationships and constraints of tables in
* camp.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class Keys {
// -------------------------------------------------------------------------
// UNIQUE and PRIMARY KEY definitions
// -------------------------------------------------------------------------
public static final UniqueKey<TRegistrationRecord> T_REGISTRATION_PKEY = Internal.createUniqueKey(TRegistration.T_REGISTRATION, DSL.name("t_registration_pkey"), new TableField[] { TRegistration.T_REGISTRATION.PK_REGISTRATION }, true);
}

View File

@ -0,0 +1,26 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.camp;
import de.jottyfan.bico.db.camp.tables.TRegistration;
import de.jottyfan.bico.db.camp.tables.VParticipant;
/**
* Convenience access to all tables in camp.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class Tables {
/**
* The table <code>camp.t_registration</code>.
*/
public static final TRegistration T_REGISTRATION = TRegistration.T_REGISTRATION;
/**
* The table <code>camp.v_participant</code>.
*/
public static final VParticipant V_PARTICIPANT = VParticipant.V_PARTICIPANT;
}

View File

@ -0,0 +1,56 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.camp.enums;
import de.jottyfan.bico.db.camp.Camp;
import org.jooq.Catalog;
import org.jooq.EnumType;
import org.jooq.Schema;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public enum EnumCamp implements EnumType {
Gemeindefreizeit_2025("Gemeindefreizeit 2025");
private final String literal;
private EnumCamp(String literal) {
this.literal = literal;
}
@Override
public Catalog getCatalog() {
return getSchema().getCatalog();
}
@Override
public Schema getSchema() {
return Camp.CAMP;
}
@Override
public String getName() {
return "enum_camp";
}
@Override
public String getLiteral() {
return literal;
}
/**
* Lookup a value of this EnumType by its literal. Returns
* <code>null</code>, if no such value could be found, see {@link
* EnumType#lookupLiteral(Class, String)}.
*/
public static EnumCamp lookupLiteral(String literal) {
return EnumType.lookupLiteral(EnumCamp.class, literal);
}
}

View File

@ -0,0 +1,58 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.camp.enums;
import de.jottyfan.bico.db.camp.Camp;
import org.jooq.Catalog;
import org.jooq.EnumType;
import org.jooq.Schema;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public enum EnumSex implements EnumType {
männlich("männlich"),
weiblich("weiblich");
private final String literal;
private EnumSex(String literal) {
this.literal = literal;
}
@Override
public Catalog getCatalog() {
return getSchema().getCatalog();
}
@Override
public Schema getSchema() {
return Camp.CAMP;
}
@Override
public String getName() {
return "enum_sex";
}
@Override
public String getLiteral() {
return literal;
}
/**
* Lookup a value of this EnumType by its literal. Returns
* <code>null</code>, if no such value could be found, see {@link
* EnumType#lookupLiteral(Class, String)}.
*/
public static EnumSex lookupLiteral(String literal) {
return EnumType.lookupLiteral(EnumSex.class, literal);
}
}

View File

@ -0,0 +1,257 @@
/*
* 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.enums.EnumCamp;
import de.jottyfan.bico.db.camp.enums.EnumSex;
import de.jottyfan.bico.db.camp.tables.records.TRegistrationRecord;
import java.time.LocalDateTime;
import java.util.Collection;
import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.PlainSQL;
import org.jooq.QueryPart;
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.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TRegistration extends TableImpl<TRegistrationRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>camp.t_registration</code>
*/
public static final TRegistration T_REGISTRATION = new TRegistration();
/**
* The class holding records for this type
*/
@Override
public Class<TRegistrationRecord> getRecordType() {
return TRegistrationRecord.class;
}
/**
* The column <code>camp.t_registration.created</code>.
*/
public final TableField<TRegistrationRecord, LocalDateTime> CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("CURRENT_TIMESTAMP"), SQLDataType.LOCALDATETIME)), this, "");
/**
* The column <code>camp.t_registration.pk_registration</code>.
*/
public final TableField<TRegistrationRecord, Integer> PK_REGISTRATION = createField(DSL.name("pk_registration"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>camp.t_registration.registrator</code>.
*/
public final TableField<TRegistrationRecord, String> REGISTRATOR = createField(DSL.name("registrator"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column <code>camp.t_registration.camp</code>.
*/
public final TableField<TRegistrationRecord, EnumCamp> CAMP = createField(DSL.name("camp"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(EnumCamp.class), this, "");
/**
* The column <code>camp.t_registration.forename</code>.
*/
public final TableField<TRegistrationRecord, String> FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column <code>camp.t_registration.surname</code>.
*/
public final TableField<TRegistrationRecord, String> SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column <code>camp.t_registration.sex</code>.
*/
public final TableField<TRegistrationRecord, EnumSex> SEX = createField(DSL.name("sex"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(EnumSex.class), this, "");
private TRegistration(Name alias, Table<TRegistrationRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private TRegistration(Name alias, Table<TRegistrationRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>camp.t_registration</code> table reference
*/
public TRegistration(String alias) {
this(DSL.name(alias), T_REGISTRATION);
}
/**
* Create an aliased <code>camp.t_registration</code> table reference
*/
public TRegistration(Name alias) {
this(alias, T_REGISTRATION);
}
/**
* Create a <code>camp.t_registration</code> table reference
*/
public TRegistration() {
this(DSL.name("t_registration"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Camp.CAMP;
}
@Override
public Identity<TRegistrationRecord, Integer> getIdentity() {
return (Identity<TRegistrationRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TRegistrationRecord> getPrimaryKey() {
return Keys.T_REGISTRATION_PKEY;
}
@Override
public TRegistration as(String alias) {
return new TRegistration(DSL.name(alias), this);
}
@Override
public TRegistration as(Name alias) {
return new TRegistration(alias, this);
}
@Override
public TRegistration as(Table<?> alias) {
return new TRegistration(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public TRegistration rename(String name) {
return new TRegistration(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TRegistration rename(Name name) {
return new TRegistration(name, null);
}
/**
* Rename this table
*/
@Override
public TRegistration rename(Table<?> name) {
return new TRegistration(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public TRegistration where(Condition condition) {
return new TRegistration(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public TRegistration where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TRegistration where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TRegistration where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TRegistration where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TRegistration where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TRegistration where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TRegistration where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public TRegistration whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public TRegistration whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View File

@ -0,0 +1,228 @@
/*
* 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.tables.records.VParticipantRecord;
import java.util.Collection;
import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.Name;
import org.jooq.PlainSQL;
import org.jooq.QueryPart;
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.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class VParticipant extends TableImpl<VParticipantRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>camp.v_participant</code>
*/
public static final VParticipant V_PARTICIPANT = new VParticipant();
/**
* The class holding records for this type
*/
@Override
public Class<VParticipantRecord> getRecordType() {
return VParticipantRecord.class;
}
/**
* The column <code>camp.v_participant.males</code>.
*/
public final TableField<VParticipantRecord, Long> MALES = createField(DSL.name("males"), SQLDataType.BIGINT, this, "");
/**
* The column <code>camp.v_participant.females</code>.
*/
public final TableField<VParticipantRecord, Long> FEMALES = createField(DSL.name("females"), SQLDataType.BIGINT, this, "");
private VParticipant(Name alias, Table<VParticipantRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private VParticipant(Name alias, Table<VParticipantRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
create view "v_participant" as SELECT sum(
CASE
WHEN (sex = 'männlich'::camp.enum_sex) THEN 1
ELSE 0
END) AS males,
sum(
CASE
WHEN (sex = 'weiblich'::camp.enum_sex) THEN 1
ELSE 0
END) AS females
FROM camp.t_registration;
"""), where);
}
/**
* Create an aliased <code>camp.v_participant</code> table reference
*/
public VParticipant(String alias) {
this(DSL.name(alias), V_PARTICIPANT);
}
/**
* Create an aliased <code>camp.v_participant</code> table reference
*/
public VParticipant(Name alias) {
this(alias, V_PARTICIPANT);
}
/**
* Create a <code>camp.v_participant</code> table reference
*/
public VParticipant() {
this(DSL.name("v_participant"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Camp.CAMP;
}
@Override
public VParticipant as(String alias) {
return new VParticipant(DSL.name(alias), this);
}
@Override
public VParticipant as(Name alias) {
return new VParticipant(alias, this);
}
@Override
public VParticipant as(Table<?> alias) {
return new VParticipant(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public VParticipant rename(String name) {
return new VParticipant(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public VParticipant rename(Name name) {
return new VParticipant(name, null);
}
/**
* Rename this table
*/
@Override
public VParticipant rename(Table<?> name) {
return new VParticipant(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public VParticipant where(Condition condition) {
return new VParticipant(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public VParticipant where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public VParticipant where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public VParticipant where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VParticipant where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VParticipant where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VParticipant where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VParticipant where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public VParticipant whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public VParticipant whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View File

@ -0,0 +1,190 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.camp.tables.pojos;
import de.jottyfan.bico.db.camp.enums.EnumCamp;
import de.jottyfan.bico.db.camp.enums.EnumSex;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TRegistration implements Serializable {
private static final long serialVersionUID = 1L;
private final LocalDateTime created;
private final Integer pkRegistration;
private final String registrator;
private final EnumCamp camp;
private final String forename;
private final String surname;
private final EnumSex sex;
public TRegistration(TRegistration value) {
this.created = value.created;
this.pkRegistration = value.pkRegistration;
this.registrator = value.registrator;
this.camp = value.camp;
this.forename = value.forename;
this.surname = value.surname;
this.sex = value.sex;
}
public TRegistration(
LocalDateTime created,
Integer pkRegistration,
String registrator,
EnumCamp camp,
String forename,
String surname,
EnumSex sex
) {
this.created = created;
this.pkRegistration = pkRegistration;
this.registrator = registrator;
this.camp = camp;
this.forename = forename;
this.surname = surname;
this.sex = sex;
}
/**
* Getter for <code>camp.t_registration.created</code>.
*/
public LocalDateTime getCreated() {
return this.created;
}
/**
* Getter for <code>camp.t_registration.pk_registration</code>.
*/
public Integer getPkRegistration() {
return this.pkRegistration;
}
/**
* Getter for <code>camp.t_registration.registrator</code>.
*/
public String getRegistrator() {
return this.registrator;
}
/**
* Getter for <code>camp.t_registration.camp</code>.
*/
public EnumCamp getCamp() {
return this.camp;
}
/**
* Getter for <code>camp.t_registration.forename</code>.
*/
public String getForename() {
return this.forename;
}
/**
* Getter for <code>camp.t_registration.surname</code>.
*/
public String getSurname() {
return this.surname;
}
/**
* Getter for <code>camp.t_registration.sex</code>.
*/
public EnumSex getSex() {
return this.sex;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final TRegistration other = (TRegistration) obj;
if (this.created == null) {
if (other.created != null)
return false;
}
else if (!this.created.equals(other.created))
return false;
if (this.pkRegistration == null) {
if (other.pkRegistration != null)
return false;
}
else if (!this.pkRegistration.equals(other.pkRegistration))
return false;
if (this.registrator == null) {
if (other.registrator != null)
return false;
}
else if (!this.registrator.equals(other.registrator))
return false;
if (this.camp == null) {
if (other.camp != null)
return false;
}
else if (!this.camp.equals(other.camp))
return false;
if (this.forename == null) {
if (other.forename != null)
return false;
}
else if (!this.forename.equals(other.forename))
return false;
if (this.surname == null) {
if (other.surname != null)
return false;
}
else if (!this.surname.equals(other.surname))
return false;
if (this.sex == null) {
if (other.sex != null)
return false;
}
else if (!this.sex.equals(other.sex))
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.pkRegistration == null) ? 0 : this.pkRegistration.hashCode());
result = prime * result + ((this.registrator == null) ? 0 : this.registrator.hashCode());
result = prime * result + ((this.camp == null) ? 0 : this.camp.hashCode());
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());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("TRegistration (");
sb.append(created);
sb.append(", ").append(pkRegistration);
sb.append(", ").append(registrator);
sb.append(", ").append(camp);
sb.append(", ").append(forename);
sb.append(", ").append(surname);
sb.append(", ").append(sex);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,91 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.camp.tables.pojos;
import java.io.Serializable;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class VParticipant implements Serializable {
private static final long serialVersionUID = 1L;
private final Long males;
private final Long females;
public VParticipant(VParticipant value) {
this.males = value.males;
this.females = value.females;
}
public VParticipant(
Long males,
Long females
) {
this.males = males;
this.females = females;
}
/**
* Getter for <code>camp.v_participant.males</code>.
*/
public Long getMales() {
return this.males;
}
/**
* Getter for <code>camp.v_participant.females</code>.
*/
public Long getFemales() {
return this.females;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
final VParticipant other = (VParticipant) obj;
if (this.males == null) {
if (other.males != null)
return false;
}
else if (!this.males.equals(other.males))
return false;
if (this.females == null) {
if (other.females != null)
return false;
}
else if (!this.females.equals(other.females))
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((this.males == null) ? 0 : this.males.hashCode());
result = prime * result + ((this.females == null) ? 0 : this.females.hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("VParticipant (");
sb.append(males);
sb.append(", ").append(females);
sb.append(")");
return sb.toString();
}
}

View File

@ -0,0 +1,183 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.camp.tables.records;
import de.jottyfan.bico.db.camp.enums.EnumCamp;
import de.jottyfan.bico.db.camp.enums.EnumSex;
import de.jottyfan.bico.db.camp.tables.TRegistration;
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 TRegistrationRecord extends UpdatableRecordImpl<TRegistrationRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>camp.t_registration.created</code>.
*/
public TRegistrationRecord setCreated(LocalDateTime value) {
set(0, value);
return this;
}
/**
* Getter for <code>camp.t_registration.created</code>.
*/
public LocalDateTime getCreated() {
return (LocalDateTime) get(0);
}
/**
* Setter for <code>camp.t_registration.pk_registration</code>.
*/
public TRegistrationRecord setPkRegistration(Integer value) {
set(1, value);
return this;
}
/**
* Getter for <code>camp.t_registration.pk_registration</code>.
*/
public Integer getPkRegistration() {
return (Integer) get(1);
}
/**
* Setter for <code>camp.t_registration.registrator</code>.
*/
public TRegistrationRecord setRegistrator(String value) {
set(2, value);
return this;
}
/**
* Getter for <code>camp.t_registration.registrator</code>.
*/
public String getRegistrator() {
return (String) get(2);
}
/**
* Setter for <code>camp.t_registration.camp</code>.
*/
public TRegistrationRecord setCamp(EnumCamp value) {
set(3, value);
return this;
}
/**
* Getter for <code>camp.t_registration.camp</code>.
*/
public EnumCamp getCamp() {
return (EnumCamp) get(3);
}
/**
* Setter for <code>camp.t_registration.forename</code>.
*/
public TRegistrationRecord setForename(String value) {
set(4, value);
return this;
}
/**
* Getter for <code>camp.t_registration.forename</code>.
*/
public String getForename() {
return (String) get(4);
}
/**
* Setter for <code>camp.t_registration.surname</code>.
*/
public TRegistrationRecord setSurname(String value) {
set(5, value);
return this;
}
/**
* Getter for <code>camp.t_registration.surname</code>.
*/
public String getSurname() {
return (String) get(5);
}
/**
* Setter for <code>camp.t_registration.sex</code>.
*/
public TRegistrationRecord setSex(EnumSex value) {
set(6, value);
return this;
}
/**
* Getter for <code>camp.t_registration.sex</code>.
*/
public EnumSex getSex() {
return (EnumSex) get(6);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Integer> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached TRegistrationRecord
*/
public TRegistrationRecord() {
super(TRegistration.T_REGISTRATION);
}
/**
* Create a detached, initialised TRegistrationRecord
*/
public TRegistrationRecord(LocalDateTime created, Integer pkRegistration, String registrator, EnumCamp camp, String forename, String surname, EnumSex sex) {
super(TRegistration.T_REGISTRATION);
setCreated(created);
setPkRegistration(pkRegistration);
setRegistrator(registrator);
setCamp(camp);
setForename(forename);
setSurname(surname);
setSex(sex);
resetChangedOnNotNull();
}
/**
* Create a detached, initialised TRegistrationRecord
*/
public TRegistrationRecord(de.jottyfan.bico.db.camp.tables.pojos.TRegistration value) {
super(TRegistration.T_REGISTRATION);
if (value != null) {
setCreated(value.getCreated());
setPkRegistration(value.getPkRegistration());
setRegistrator(value.getRegistrator());
setCamp(value.getCamp());
setForename(value.getForename());
setSurname(value.getSurname());
setSex(value.getSex());
resetChangedOnNotNull();
}
}
}

View File

@ -0,0 +1,84 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.camp.tables.records;
import de.jottyfan.bico.db.camp.tables.VParticipant;
import org.jooq.impl.TableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class VParticipantRecord extends TableRecordImpl<VParticipantRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>camp.v_participant.males</code>.
*/
public VParticipantRecord setMales(Long value) {
set(0, value);
return this;
}
/**
* Getter for <code>camp.v_participant.males</code>.
*/
public Long getMales() {
return (Long) get(0);
}
/**
* Setter for <code>camp.v_participant.females</code>.
*/
public VParticipantRecord setFemales(Long value) {
set(1, value);
return this;
}
/**
* Getter for <code>camp.v_participant.females</code>.
*/
public Long getFemales() {
return (Long) get(1);
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached VParticipantRecord
*/
public VParticipantRecord() {
super(VParticipant.V_PARTICIPANT);
}
/**
* Create a detached, initialised VParticipantRecord
*/
public VParticipantRecord(Long males, Long females) {
super(VParticipant.V_PARTICIPANT);
setMales(males);
setFemales(females);
resetChangedOnNotNull();
}
/**
* Create a detached, initialised VParticipantRecord
*/
public VParticipantRecord(de.jottyfan.bico.db.camp.tables.pojos.VParticipant value) {
super(VParticipant.V_PARTICIPANT);
if (value != null) {
setMales(value.getMales());
setFemales(value.getFemales());
resetChangedOnNotNull();
}
}
}

View File

@ -1,23 +1,23 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db;
package de.jottyfan.bico.db.public_;
import de.jottyfan.bico.db.tables.TLesson;
import de.jottyfan.bico.db.tables.TLessonSubject;
import de.jottyfan.bico.db.tables.TPerson;
import de.jottyfan.bico.db.tables.TProfile;
import de.jottyfan.bico.db.tables.TSlot;
import de.jottyfan.bico.db.tables.TSource;
import de.jottyfan.bico.db.tables.TSubject;
import de.jottyfan.bico.db.tables.records.TLessonRecord;
import de.jottyfan.bico.db.tables.records.TLessonSubjectRecord;
import de.jottyfan.bico.db.tables.records.TPersonRecord;
import de.jottyfan.bico.db.tables.records.TProfileRecord;
import de.jottyfan.bico.db.tables.records.TSlotRecord;
import de.jottyfan.bico.db.tables.records.TSourceRecord;
import de.jottyfan.bico.db.tables.records.TSubjectRecord;
import de.jottyfan.bico.db.public_.tables.TLesson;
import de.jottyfan.bico.db.public_.tables.TLessonSubject;
import de.jottyfan.bico.db.public_.tables.TPerson;
import de.jottyfan.bico.db.public_.tables.TProfile;
import de.jottyfan.bico.db.public_.tables.TSlot;
import de.jottyfan.bico.db.public_.tables.TSource;
import de.jottyfan.bico.db.public_.tables.TSubject;
import de.jottyfan.bico.db.public_.tables.records.TLessonRecord;
import de.jottyfan.bico.db.public_.tables.records.TLessonSubjectRecord;
import de.jottyfan.bico.db.public_.tables.records.TPersonRecord;
import de.jottyfan.bico.db.public_.tables.records.TProfileRecord;
import de.jottyfan.bico.db.public_.tables.records.TSlotRecord;
import de.jottyfan.bico.db.public_.tables.records.TSourceRecord;
import de.jottyfan.bico.db.public_.tables.records.TSubjectRecord;
import org.jooq.ForeignKey;
import org.jooq.TableField;
@ -30,7 +30,7 @@ import org.jooq.impl.Internal;
* A class modelling foreign key relationships and constraints of tables in
* public.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class Keys {
// -------------------------------------------------------------------------

View File

@ -1,20 +1,21 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db;
package de.jottyfan.bico.db.public_;
import de.jottyfan.bico.db.tables.TLesson;
import de.jottyfan.bico.db.tables.TLessonSubject;
import de.jottyfan.bico.db.tables.TPerson;
import de.jottyfan.bico.db.tables.TProfile;
import de.jottyfan.bico.db.tables.TSlot;
import de.jottyfan.bico.db.tables.TSource;
import de.jottyfan.bico.db.tables.TSubject;
import de.jottyfan.bico.db.tables.VCalendar;
import de.jottyfan.bico.db.tables.VLesson;
import de.jottyfan.bico.db.tables.VLessonMissing;
import de.jottyfan.bico.db.tables.VVersion;
import de.jottyfan.bico.db.DefaultCatalog;
import de.jottyfan.bico.db.public_.tables.TLesson;
import de.jottyfan.bico.db.public_.tables.TLessonSubject;
import de.jottyfan.bico.db.public_.tables.TPerson;
import de.jottyfan.bico.db.public_.tables.TProfile;
import de.jottyfan.bico.db.public_.tables.TSlot;
import de.jottyfan.bico.db.public_.tables.TSource;
import de.jottyfan.bico.db.public_.tables.TSubject;
import de.jottyfan.bico.db.public_.tables.VCalendar;
import de.jottyfan.bico.db.public_.tables.VLesson;
import de.jottyfan.bico.db.public_.tables.VLessonMissing;
import de.jottyfan.bico.db.public_.tables.VVersion;
import java.util.Arrays;
import java.util.List;
@ -27,7 +28,7 @@ import org.jooq.impl.SchemaImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class Public extends SchemaImpl {
private static final long serialVersionUID = 1L;

View File

@ -1,26 +1,26 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db;
package de.jottyfan.bico.db.public_;
import de.jottyfan.bico.db.tables.TLesson;
import de.jottyfan.bico.db.tables.TLessonSubject;
import de.jottyfan.bico.db.tables.TPerson;
import de.jottyfan.bico.db.tables.TProfile;
import de.jottyfan.bico.db.tables.TSlot;
import de.jottyfan.bico.db.tables.TSource;
import de.jottyfan.bico.db.tables.TSubject;
import de.jottyfan.bico.db.tables.VCalendar;
import de.jottyfan.bico.db.tables.VLesson;
import de.jottyfan.bico.db.tables.VLessonMissing;
import de.jottyfan.bico.db.tables.VVersion;
import de.jottyfan.bico.db.public_.tables.TLesson;
import de.jottyfan.bico.db.public_.tables.TLessonSubject;
import de.jottyfan.bico.db.public_.tables.TPerson;
import de.jottyfan.bico.db.public_.tables.TProfile;
import de.jottyfan.bico.db.public_.tables.TSlot;
import de.jottyfan.bico.db.public_.tables.TSource;
import de.jottyfan.bico.db.public_.tables.TSubject;
import de.jottyfan.bico.db.public_.tables.VCalendar;
import de.jottyfan.bico.db.public_.tables.VLesson;
import de.jottyfan.bico.db.public_.tables.VLessonMissing;
import de.jottyfan.bico.db.public_.tables.VVersion;
/**
* Convenience access to all tables in public.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class Tables {
/**

View File

@ -0,0 +1,337 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.public_.tables;
import de.jottyfan.bico.db.public_.Keys;
import de.jottyfan.bico.db.public_.Public;
import de.jottyfan.bico.db.public_.tables.TLessonSubject.TLessonSubjectPath;
import de.jottyfan.bico.db.public_.tables.TPerson.TPersonPath;
import de.jottyfan.bico.db.public_.tables.TSlot.TSlotPath;
import de.jottyfan.bico.db.public_.tables.TSubject.TSubjectPath;
import de.jottyfan.bico.db.public_.tables.records.TLessonRecord;
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.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TLesson extends TableImpl<TLessonRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_lesson</code>
*/
public static final TLesson T_LESSON = new TLesson();
/**
* The class holding records for this type
*/
@Override
public Class<TLessonRecord> getRecordType() {
return TLessonRecord.class;
}
/**
* The column <code>public.t_lesson.pk_lesson</code>.
*/
public final TableField<TLessonRecord, Integer> PK_LESSON = createField(DSL.name("pk_lesson"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_lesson.fk_slot</code>.
*/
public final TableField<TLessonRecord, Integer> FK_SLOT = createField(DSL.name("fk_slot"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>public.t_lesson.fk_person</code>.
*/
public final TableField<TLessonRecord, Integer> FK_PERSON = createField(DSL.name("fk_person"), SQLDataType.INTEGER, this, "");
/**
* The column <code>public.t_lesson.notes</code>.
*/
public final TableField<TLessonRecord, String> NOTES = createField(DSL.name("notes"), SQLDataType.CLOB, this, "");
private TLesson(Name alias, Table<TLessonRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private TLesson(Name alias, Table<TLessonRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>public.t_lesson</code> table reference
*/
public TLesson(String alias) {
this(DSL.name(alias), T_LESSON);
}
/**
* Create an aliased <code>public.t_lesson</code> table reference
*/
public TLesson(Name alias) {
this(alias, T_LESSON);
}
/**
* Create a <code>public.t_lesson</code> table reference
*/
public TLesson() {
this(DSL.name("t_lesson"), null);
}
public <O extends Record> TLesson(Table<O> path, ForeignKey<O, TLessonRecord> childPath, InverseForeignKey<O, TLessonRecord> parentPath) {
super(path, childPath, parentPath, T_LESSON);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class TLessonPath extends TLesson implements Path<TLessonRecord> {
private static final long serialVersionUID = 1L;
public <O extends Record> TLessonPath(Table<O> path, ForeignKey<O, TLessonRecord> childPath, InverseForeignKey<O, TLessonRecord> parentPath) {
super(path, childPath, parentPath);
}
private TLessonPath(Name alias, Table<TLessonRecord> aliased) {
super(alias, aliased);
}
@Override
public TLessonPath as(String alias) {
return new TLessonPath(DSL.name(alias), this);
}
@Override
public TLessonPath as(Name alias) {
return new TLessonPath(alias, this);
}
@Override
public TLessonPath as(Table<?> alias) {
return new TLessonPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TLessonRecord, Integer> getIdentity() {
return (Identity<TLessonRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TLessonRecord> getPrimaryKey() {
return Keys.T_LESSON_PKEY;
}
@Override
public List<UniqueKey<TLessonRecord>> getUniqueKeys() {
return Arrays.asList(Keys.T_LESSON_FK_LESSONDAY_KEY);
}
@Override
public List<ForeignKey<TLessonRecord, ?>> getReferences() {
return Arrays.asList(Keys.T_LESSON__T_LESSON_FK_LESSONDAY_FKEY, Keys.T_LESSON__T_LESSON_FK_PERSON_FKEY);
}
private transient TSlotPath _tSlot;
/**
* Get the implicit join path to the <code>public.t_slot</code> table.
*/
public TSlotPath tSlot() {
if (_tSlot == null)
_tSlot = new TSlotPath(this, Keys.T_LESSON__T_LESSON_FK_LESSONDAY_FKEY, null);
return _tSlot;
}
private transient TPersonPath _tPerson;
/**
* Get the implicit join path to the <code>public.t_person</code> table.
*/
public TPersonPath tPerson() {
if (_tPerson == null)
_tPerson = new TPersonPath(this, Keys.T_LESSON__T_LESSON_FK_PERSON_FKEY, null);
return _tPerson;
}
private transient TLessonSubjectPath _tLessonSubject;
/**
* Get the implicit to-many join path to the
* <code>public.t_lesson_subject</code> table
*/
public TLessonSubjectPath tLessonSubject() {
if (_tLessonSubject == null)
_tLessonSubject = new TLessonSubjectPath(this, null, Keys.T_LESSON_SUBJECT__T_LESSON_SUBJECT_FK_LESSON_FKEY.getInverseKey());
return _tLessonSubject;
}
/**
* Get the implicit many-to-many join path to the
* <code>public.t_subject</code> table
*/
public TSubjectPath tSubject() {
return tLessonSubject().tSubject();
}
@Override
public TLesson as(String alias) {
return new TLesson(DSL.name(alias), this);
}
@Override
public TLesson as(Name alias) {
return new TLesson(alias, this);
}
@Override
public TLesson as(Table<?> alias) {
return new TLesson(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public TLesson rename(String name) {
return new TLesson(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TLesson rename(Name name) {
return new TLesson(name, null);
}
/**
* Rename this table
*/
@Override
public TLesson rename(Table<?> name) {
return new TLesson(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public TLesson where(Condition condition) {
return new TLesson(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public TLesson where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TLesson where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TLesson where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TLesson where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TLesson where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TLesson where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TLesson where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public TLesson whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public TLesson whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View File

@ -0,0 +1,309 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.public_.tables;
import de.jottyfan.bico.db.public_.Keys;
import de.jottyfan.bico.db.public_.Public;
import de.jottyfan.bico.db.public_.tables.TLesson.TLessonPath;
import de.jottyfan.bico.db.public_.tables.TSubject.TSubjectPath;
import de.jottyfan.bico.db.public_.tables.records.TLessonSubjectRecord;
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.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TLessonSubject extends TableImpl<TLessonSubjectRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_lesson_subject</code>
*/
public static final TLessonSubject T_LESSON_SUBJECT = new TLessonSubject();
/**
* The class holding records for this type
*/
@Override
public Class<TLessonSubjectRecord> getRecordType() {
return TLessonSubjectRecord.class;
}
/**
* The column <code>public.t_lesson_subject.pk_lesson_subject</code>.
*/
public final TableField<TLessonSubjectRecord, Integer> PK_LESSON_SUBJECT = createField(DSL.name("pk_lesson_subject"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_lesson_subject.fk_lesson</code>.
*/
public final TableField<TLessonSubjectRecord, Integer> FK_LESSON = createField(DSL.name("fk_lesson"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>public.t_lesson_subject.fk_subject</code>.
*/
public final TableField<TLessonSubjectRecord, Integer> FK_SUBJECT = createField(DSL.name("fk_subject"), SQLDataType.INTEGER.nullable(false), this, "");
private TLessonSubject(Name alias, Table<TLessonSubjectRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private TLessonSubject(Name alias, Table<TLessonSubjectRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>public.t_lesson_subject</code> table reference
*/
public TLessonSubject(String alias) {
this(DSL.name(alias), T_LESSON_SUBJECT);
}
/**
* Create an aliased <code>public.t_lesson_subject</code> table reference
*/
public TLessonSubject(Name alias) {
this(alias, T_LESSON_SUBJECT);
}
/**
* Create a <code>public.t_lesson_subject</code> table reference
*/
public TLessonSubject() {
this(DSL.name("t_lesson_subject"), null);
}
public <O extends Record> TLessonSubject(Table<O> path, ForeignKey<O, TLessonSubjectRecord> childPath, InverseForeignKey<O, TLessonSubjectRecord> parentPath) {
super(path, childPath, parentPath, T_LESSON_SUBJECT);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class TLessonSubjectPath extends TLessonSubject implements Path<TLessonSubjectRecord> {
private static final long serialVersionUID = 1L;
public <O extends Record> TLessonSubjectPath(Table<O> path, ForeignKey<O, TLessonSubjectRecord> childPath, InverseForeignKey<O, TLessonSubjectRecord> parentPath) {
super(path, childPath, parentPath);
}
private TLessonSubjectPath(Name alias, Table<TLessonSubjectRecord> aliased) {
super(alias, aliased);
}
@Override
public TLessonSubjectPath as(String alias) {
return new TLessonSubjectPath(DSL.name(alias), this);
}
@Override
public TLessonSubjectPath as(Name alias) {
return new TLessonSubjectPath(alias, this);
}
@Override
public TLessonSubjectPath as(Table<?> alias) {
return new TLessonSubjectPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TLessonSubjectRecord, Integer> getIdentity() {
return (Identity<TLessonSubjectRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TLessonSubjectRecord> getPrimaryKey() {
return Keys.T_LESSON_SUBJECT_PKEY;
}
@Override
public List<UniqueKey<TLessonSubjectRecord>> getUniqueKeys() {
return Arrays.asList(Keys.T_LESSON_SUBJECT_FK_LESSON_FK_SUBJECT_KEY);
}
@Override
public List<ForeignKey<TLessonSubjectRecord, ?>> getReferences() {
return Arrays.asList(Keys.T_LESSON_SUBJECT__T_LESSON_SUBJECT_FK_LESSON_FKEY, Keys.T_LESSON_SUBJECT__T_LESSON_SUBJECT_FK_SUBJECT_FKEY);
}
private transient TLessonPath _tLesson;
/**
* Get the implicit join path to the <code>public.t_lesson</code> table.
*/
public TLessonPath tLesson() {
if (_tLesson == null)
_tLesson = new TLessonPath(this, Keys.T_LESSON_SUBJECT__T_LESSON_SUBJECT_FK_LESSON_FKEY, null);
return _tLesson;
}
private transient TSubjectPath _tSubject;
/**
* Get the implicit join path to the <code>public.t_subject</code> table.
*/
public TSubjectPath tSubject() {
if (_tSubject == null)
_tSubject = new TSubjectPath(this, Keys.T_LESSON_SUBJECT__T_LESSON_SUBJECT_FK_SUBJECT_FKEY, null);
return _tSubject;
}
@Override
public TLessonSubject as(String alias) {
return new TLessonSubject(DSL.name(alias), this);
}
@Override
public TLessonSubject as(Name alias) {
return new TLessonSubject(alias, this);
}
@Override
public TLessonSubject as(Table<?> alias) {
return new TLessonSubject(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public TLessonSubject rename(String name) {
return new TLessonSubject(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TLessonSubject rename(Name name) {
return new TLessonSubject(name, null);
}
/**
* Rename this table
*/
@Override
public TLessonSubject rename(Table<?> name) {
return new TLessonSubject(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public TLessonSubject where(Condition condition) {
return new TLessonSubject(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public TLessonSubject where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TLessonSubject where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TLessonSubject where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TLessonSubject where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TLessonSubject where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TLessonSubject where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TLessonSubject where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public TLessonSubject whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public TLessonSubject whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View File

@ -0,0 +1,297 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.public_.tables;
import de.jottyfan.bico.db.public_.Keys;
import de.jottyfan.bico.db.public_.Public;
import de.jottyfan.bico.db.public_.tables.TLesson.TLessonPath;
import de.jottyfan.bico.db.public_.tables.records.TPersonRecord;
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.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TPerson extends TableImpl<TPersonRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_person</code>
*/
public static final TPerson T_PERSON = new TPerson();
/**
* The class holding records for this type
*/
@Override
public Class<TPersonRecord> getRecordType() {
return TPersonRecord.class;
}
/**
* The column <code>public.t_person.pk_person</code>.
*/
public final TableField<TPersonRecord, Integer> PK_PERSON = createField(DSL.name("pk_person"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_person.forename</code>.
*/
public final TableField<TPersonRecord, String> FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column <code>public.t_person.surname</code>.
*/
public final TableField<TPersonRecord, String> SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column <code>public.t_person.abbreviation</code>.
*/
public final TableField<TPersonRecord, String> ABBREVIATION = createField(DSL.name("abbreviation"), SQLDataType.CLOB, this, "");
private TPerson(Name alias, Table<TPersonRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private TPerson(Name alias, Table<TPersonRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>public.t_person</code> table reference
*/
public TPerson(String alias) {
this(DSL.name(alias), T_PERSON);
}
/**
* Create an aliased <code>public.t_person</code> table reference
*/
public TPerson(Name alias) {
this(alias, T_PERSON);
}
/**
* Create a <code>public.t_person</code> table reference
*/
public TPerson() {
this(DSL.name("t_person"), null);
}
public <O extends Record> TPerson(Table<O> path, ForeignKey<O, TPersonRecord> childPath, InverseForeignKey<O, TPersonRecord> parentPath) {
super(path, childPath, parentPath, T_PERSON);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class TPersonPath extends TPerson implements Path<TPersonRecord> {
private static final long serialVersionUID = 1L;
public <O extends Record> TPersonPath(Table<O> path, ForeignKey<O, TPersonRecord> childPath, InverseForeignKey<O, TPersonRecord> parentPath) {
super(path, childPath, parentPath);
}
private TPersonPath(Name alias, Table<TPersonRecord> aliased) {
super(alias, aliased);
}
@Override
public TPersonPath as(String alias) {
return new TPersonPath(DSL.name(alias), this);
}
@Override
public TPersonPath as(Name alias) {
return new TPersonPath(alias, this);
}
@Override
public TPersonPath as(Table<?> alias) {
return new TPersonPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TPersonRecord, Integer> getIdentity() {
return (Identity<TPersonRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TPersonRecord> getPrimaryKey() {
return Keys.T_PERSON_PKEY;
}
@Override
public List<UniqueKey<TPersonRecord>> getUniqueKeys() {
return Arrays.asList(Keys.T_PERSON_ABBREVIATION_KEY, Keys.T_PERSON_FORENAME_SURNAME_KEY);
}
private transient TLessonPath _tLesson;
/**
* Get the implicit to-many join path to the <code>public.t_lesson</code>
* table
*/
public TLessonPath tLesson() {
if (_tLesson == null)
_tLesson = new TLessonPath(this, null, Keys.T_LESSON__T_LESSON_FK_PERSON_FKEY.getInverseKey());
return _tLesson;
}
@Override
public TPerson as(String alias) {
return new TPerson(DSL.name(alias), this);
}
@Override
public TPerson as(Name alias) {
return new TPerson(alias, this);
}
@Override
public TPerson as(Table<?> alias) {
return new TPerson(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public TPerson rename(String name) {
return new TPerson(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TPerson rename(Name name) {
return new TPerson(name, null);
}
/**
* Rename this table
*/
@Override
public TPerson rename(Table<?> name) {
return new TPerson(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public TPerson where(Condition condition) {
return new TPerson(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public TPerson where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TPerson where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TPerson where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TPerson where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TPerson where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TPerson where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TPerson where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public TPerson whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public TPerson whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View File

@ -1,22 +1,27 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
package de.jottyfan.bico.db.public_.tables;
import de.jottyfan.bico.db.Keys;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.TProfileRecord;
import de.jottyfan.bico.db.public_.Keys;
import de.jottyfan.bico.db.public_.Public;
import de.jottyfan.bico.db.public_.tables.records.TProfileRecord;
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.Name;
import org.jooq.Record;
import org.jooq.PlainSQL;
import org.jooq.QueryPart;
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;
@ -29,7 +34,7 @@ import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TProfile extends TableImpl<TProfileRecord> {
private static final long serialVersionUID = 1L;
@ -60,14 +65,14 @@ public class TProfile extends TableImpl<TProfileRecord> {
/**
* The column <code>public.t_profile.theme</code>.
*/
public final TableField<TProfileRecord, String> THEME = createField(DSL.name("theme"), SQLDataType.CLOB.defaultValue(DSL.field("'light'::text", SQLDataType.CLOB)), this, "");
public final TableField<TProfileRecord, String> THEME = createField(DSL.name("theme"), SQLDataType.CLOB.defaultValue(DSL.field(DSL.raw("'light'::text"), SQLDataType.CLOB)), this, "");
private TProfile(Name alias, Table<TProfileRecord> aliased) {
this(alias, aliased, null);
this(alias, aliased, (Field<?>[]) null, null);
}
private TProfile(Name alias, Table<TProfileRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
private TProfile(Name alias, Table<TProfileRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
@ -91,10 +96,6 @@ public class TProfile extends TableImpl<TProfileRecord> {
this(DSL.name("t_profile"), null);
}
public <O extends Record> TProfile(Table<O> child, ForeignKey<O, TProfileRecord> key) {
super(child, key, T_PROFILE);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
@ -125,6 +126,11 @@ public class TProfile extends TableImpl<TProfileRecord> {
return new TProfile(alias, this);
}
@Override
public TProfile as(Table<?> alias) {
return new TProfile(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@ -140,4 +146,96 @@ public class TProfile extends TableImpl<TProfileRecord> {
public TProfile rename(Name name) {
return new TProfile(name, null);
}
/**
* Rename this table
*/
@Override
public TProfile rename(Table<?> name) {
return new TProfile(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public TProfile where(Condition condition) {
return new TProfile(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public TProfile where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TProfile where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TProfile where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TProfile where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TProfile where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TProfile where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TProfile where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public TProfile whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public TProfile whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View File

@ -0,0 +1,293 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.public_.tables;
import de.jottyfan.bico.db.public_.Keys;
import de.jottyfan.bico.db.public_.Public;
import de.jottyfan.bico.db.public_.tables.TLesson.TLessonPath;
import de.jottyfan.bico.db.public_.tables.records.TSlotRecord;
import java.time.LocalDate;
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.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TSlot extends TableImpl<TSlotRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_slot</code>
*/
public static final TSlot T_SLOT = new TSlot();
/**
* The class holding records for this type
*/
@Override
public Class<TSlotRecord> getRecordType() {
return TSlotRecord.class;
}
/**
* The column <code>public.t_slot.pk_slot</code>.
*/
public final TableField<TSlotRecord, Integer> PK_SLOT = createField(DSL.name("pk_slot"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_slot.slot_day</code>.
*/
public final TableField<TSlotRecord, LocalDate> SLOT_DAY = createField(DSL.name("slot_day"), SQLDataType.LOCALDATE.nullable(false), this, "");
/**
* The column <code>public.t_slot.note</code>.
*/
public final TableField<TSlotRecord, String> NOTE = createField(DSL.name("note"), SQLDataType.CLOB, this, "");
private TSlot(Name alias, Table<TSlotRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private TSlot(Name alias, Table<TSlotRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>public.t_slot</code> table reference
*/
public TSlot(String alias) {
this(DSL.name(alias), T_SLOT);
}
/**
* Create an aliased <code>public.t_slot</code> table reference
*/
public TSlot(Name alias) {
this(alias, T_SLOT);
}
/**
* Create a <code>public.t_slot</code> table reference
*/
public TSlot() {
this(DSL.name("t_slot"), null);
}
public <O extends Record> TSlot(Table<O> path, ForeignKey<O, TSlotRecord> childPath, InverseForeignKey<O, TSlotRecord> parentPath) {
super(path, childPath, parentPath, T_SLOT);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class TSlotPath extends TSlot implements Path<TSlotRecord> {
private static final long serialVersionUID = 1L;
public <O extends Record> TSlotPath(Table<O> path, ForeignKey<O, TSlotRecord> childPath, InverseForeignKey<O, TSlotRecord> parentPath) {
super(path, childPath, parentPath);
}
private TSlotPath(Name alias, Table<TSlotRecord> aliased) {
super(alias, aliased);
}
@Override
public TSlotPath as(String alias) {
return new TSlotPath(DSL.name(alias), this);
}
@Override
public TSlotPath as(Name alias) {
return new TSlotPath(alias, this);
}
@Override
public TSlotPath as(Table<?> alias) {
return new TSlotPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TSlotRecord, Integer> getIdentity() {
return (Identity<TSlotRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TSlotRecord> getPrimaryKey() {
return Keys.T_LESSONDAY_PKEY;
}
@Override
public List<UniqueKey<TSlotRecord>> getUniqueKeys() {
return Arrays.asList(Keys.T_LESSONDAY_LESSON_DAY_KEY);
}
private transient TLessonPath _tLesson;
/**
* Get the implicit to-many join path to the <code>public.t_lesson</code>
* table
*/
public TLessonPath tLesson() {
if (_tLesson == null)
_tLesson = new TLessonPath(this, null, Keys.T_LESSON__T_LESSON_FK_LESSONDAY_FKEY.getInverseKey());
return _tLesson;
}
@Override
public TSlot as(String alias) {
return new TSlot(DSL.name(alias), this);
}
@Override
public TSlot as(Name alias) {
return new TSlot(alias, this);
}
@Override
public TSlot as(Table<?> alias) {
return new TSlot(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public TSlot rename(String name) {
return new TSlot(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TSlot rename(Name name) {
return new TSlot(name, null);
}
/**
* Rename this table
*/
@Override
public TSlot rename(Table<?> name) {
return new TSlot(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public TSlot where(Condition condition) {
return new TSlot(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public TSlot where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TSlot where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TSlot where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TSlot where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TSlot where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TSlot where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TSlot where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public TSlot whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public TSlot whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View File

@ -0,0 +1,287 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.public_.tables;
import de.jottyfan.bico.db.public_.Keys;
import de.jottyfan.bico.db.public_.Public;
import de.jottyfan.bico.db.public_.tables.TSubject.TSubjectPath;
import de.jottyfan.bico.db.public_.tables.records.TSourceRecord;
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.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TSource extends TableImpl<TSourceRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_source</code>
*/
public static final TSource T_SOURCE = new TSource();
/**
* The class holding records for this type
*/
@Override
public Class<TSourceRecord> getRecordType() {
return TSourceRecord.class;
}
/**
* The column <code>public.t_source.pk_source</code>.
*/
public final TableField<TSourceRecord, Integer> PK_SOURCE = createField(DSL.name("pk_source"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_source.name</code>.
*/
public final TableField<TSourceRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "");
private TSource(Name alias, Table<TSourceRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private TSource(Name alias, Table<TSourceRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>public.t_source</code> table reference
*/
public TSource(String alias) {
this(DSL.name(alias), T_SOURCE);
}
/**
* Create an aliased <code>public.t_source</code> table reference
*/
public TSource(Name alias) {
this(alias, T_SOURCE);
}
/**
* Create a <code>public.t_source</code> table reference
*/
public TSource() {
this(DSL.name("t_source"), null);
}
public <O extends Record> TSource(Table<O> path, ForeignKey<O, TSourceRecord> childPath, InverseForeignKey<O, TSourceRecord> parentPath) {
super(path, childPath, parentPath, T_SOURCE);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class TSourcePath extends TSource implements Path<TSourceRecord> {
private static final long serialVersionUID = 1L;
public <O extends Record> TSourcePath(Table<O> path, ForeignKey<O, TSourceRecord> childPath, InverseForeignKey<O, TSourceRecord> parentPath) {
super(path, childPath, parentPath);
}
private TSourcePath(Name alias, Table<TSourceRecord> aliased) {
super(alias, aliased);
}
@Override
public TSourcePath as(String alias) {
return new TSourcePath(DSL.name(alias), this);
}
@Override
public TSourcePath as(Name alias) {
return new TSourcePath(alias, this);
}
@Override
public TSourcePath as(Table<?> alias) {
return new TSourcePath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TSourceRecord, Integer> getIdentity() {
return (Identity<TSourceRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TSourceRecord> getPrimaryKey() {
return Keys.T_SOURCE_PKEY;
}
@Override
public List<UniqueKey<TSourceRecord>> getUniqueKeys() {
return Arrays.asList(Keys.T_SOURCE_NAME_KEY);
}
private transient TSubjectPath _tSubject;
/**
* Get the implicit to-many join path to the <code>public.t_subject</code>
* table
*/
public TSubjectPath tSubject() {
if (_tSubject == null)
_tSubject = new TSubjectPath(this, null, Keys.T_SUBJECT__T_SUBJECT_FK_SOURCE_FKEY.getInverseKey());
return _tSubject;
}
@Override
public TSource as(String alias) {
return new TSource(DSL.name(alias), this);
}
@Override
public TSource as(Name alias) {
return new TSource(alias, this);
}
@Override
public TSource as(Table<?> alias) {
return new TSource(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public TSource rename(String name) {
return new TSource(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TSource rename(Name name) {
return new TSource(name, null);
}
/**
* Rename this table
*/
@Override
public TSource rename(Table<?> name) {
return new TSource(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public TSource where(Condition condition) {
return new TSource(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public TSource where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TSource where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TSource where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TSource where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TSource where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TSource where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TSource where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public TSource whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public TSource whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View File

@ -0,0 +1,344 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.public_.tables;
import de.jottyfan.bico.db.public_.Keys;
import de.jottyfan.bico.db.public_.Public;
import de.jottyfan.bico.db.public_.tables.TLesson.TLessonPath;
import de.jottyfan.bico.db.public_.tables.TLessonSubject.TLessonSubjectPath;
import de.jottyfan.bico.db.public_.tables.TSource.TSourcePath;
import de.jottyfan.bico.db.public_.tables.records.TSubjectRecord;
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.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TSubject extends TableImpl<TSubjectRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_subject</code>
*/
public static final TSubject T_SUBJECT = new TSubject();
/**
* The class holding records for this type
*/
@Override
public Class<TSubjectRecord> getRecordType() {
return TSubjectRecord.class;
}
/**
* The column <code>public.t_subject.pk_subject</code>.
*/
public final TableField<TSubjectRecord, Integer> PK_SUBJECT = createField(DSL.name("pk_subject"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_subject.fk_source</code>.
*/
public final TableField<TSubjectRecord, Integer> FK_SOURCE = createField(DSL.name("fk_source"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>public.t_subject.theme</code>.
*/
public final TableField<TSubjectRecord, String> THEME = createField(DSL.name("theme"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column <code>public.t_subject.subtheme</code>.
*/
public final TableField<TSubjectRecord, String> SUBTHEME = createField(DSL.name("subtheme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.t_subject.book_pages</code>.
*/
public final TableField<TSubjectRecord, String> BOOK_PAGES = createField(DSL.name("book_pages"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.t_subject.worksheets</code>.
*/
public final TableField<TSubjectRecord, String> WORKSHEETS = createField(DSL.name("worksheets"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.t_subject.bibleverse</code>.
*/
public final TableField<TSubjectRecord, String> BIBLEVERSE = createField(DSL.name("bibleverse"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.t_subject.notes</code>.
*/
public final TableField<TSubjectRecord, String> NOTES = createField(DSL.name("notes"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.t_subject.order_nr</code>.
*/
public final TableField<TSubjectRecord, Integer> ORDER_NR = createField(DSL.name("order_nr"), SQLDataType.INTEGER, this, "");
private TSubject(Name alias, Table<TSubjectRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private TSubject(Name alias, Table<TSubjectRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>public.t_subject</code> table reference
*/
public TSubject(String alias) {
this(DSL.name(alias), T_SUBJECT);
}
/**
* Create an aliased <code>public.t_subject</code> table reference
*/
public TSubject(Name alias) {
this(alias, T_SUBJECT);
}
/**
* Create a <code>public.t_subject</code> table reference
*/
public TSubject() {
this(DSL.name("t_subject"), null);
}
public <O extends Record> TSubject(Table<O> path, ForeignKey<O, TSubjectRecord> childPath, InverseForeignKey<O, TSubjectRecord> parentPath) {
super(path, childPath, parentPath, T_SUBJECT);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class TSubjectPath extends TSubject implements Path<TSubjectRecord> {
private static final long serialVersionUID = 1L;
public <O extends Record> TSubjectPath(Table<O> path, ForeignKey<O, TSubjectRecord> childPath, InverseForeignKey<O, TSubjectRecord> parentPath) {
super(path, childPath, parentPath);
}
private TSubjectPath(Name alias, Table<TSubjectRecord> aliased) {
super(alias, aliased);
}
@Override
public TSubjectPath as(String alias) {
return new TSubjectPath(DSL.name(alias), this);
}
@Override
public TSubjectPath as(Name alias) {
return new TSubjectPath(alias, this);
}
@Override
public TSubjectPath as(Table<?> alias) {
return new TSubjectPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TSubjectRecord, Integer> getIdentity() {
return (Identity<TSubjectRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TSubjectRecord> getPrimaryKey() {
return Keys.T_SUBJECT_PKEY;
}
@Override
public List<ForeignKey<TSubjectRecord, ?>> getReferences() {
return Arrays.asList(Keys.T_SUBJECT__T_SUBJECT_FK_SOURCE_FKEY);
}
private transient TSourcePath _tSource;
/**
* Get the implicit join path to the <code>public.t_source</code> table.
*/
public TSourcePath tSource() {
if (_tSource == null)
_tSource = new TSourcePath(this, Keys.T_SUBJECT__T_SUBJECT_FK_SOURCE_FKEY, null);
return _tSource;
}
private transient TLessonSubjectPath _tLessonSubject;
/**
* Get the implicit to-many join path to the
* <code>public.t_lesson_subject</code> table
*/
public TLessonSubjectPath tLessonSubject() {
if (_tLessonSubject == null)
_tLessonSubject = new TLessonSubjectPath(this, null, Keys.T_LESSON_SUBJECT__T_LESSON_SUBJECT_FK_SUBJECT_FKEY.getInverseKey());
return _tLessonSubject;
}
/**
* Get the implicit many-to-many join path to the
* <code>public.t_lesson</code> table
*/
public TLessonPath tLesson() {
return tLessonSubject().tLesson();
}
@Override
public TSubject as(String alias) {
return new TSubject(DSL.name(alias), this);
}
@Override
public TSubject as(Name alias) {
return new TSubject(alias, this);
}
@Override
public TSubject as(Table<?> alias) {
return new TSubject(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public TSubject rename(String name) {
return new TSubject(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TSubject rename(Name name) {
return new TSubject(name, null);
}
/**
* Rename this table
*/
@Override
public TSubject rename(Table<?> name) {
return new TSubject(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public TSubject where(Condition condition) {
return new TSubject(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public TSubject where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TSubject where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public TSubject where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TSubject where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TSubject where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TSubject where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public TSubject where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public TSubject whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public TSubject whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View File

@ -1,19 +1,24 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
package de.jottyfan.bico.db.public_.tables;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.VCalendarRecord;
import de.jottyfan.bico.db.public_.Public;
import de.jottyfan.bico.db.public_.tables.records.VCalendarRecord;
import java.time.LocalDate;
import java.util.Collection;
import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.PlainSQL;
import org.jooq.QueryPart;
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;
@ -25,7 +30,7 @@ import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class VCalendar extends TableImpl<VCalendarRecord> {
private static final long serialVersionUID = 1L;
@ -134,11 +139,36 @@ public class VCalendar extends TableImpl<VCalendarRecord> {
public final TableField<VCalendarRecord, Integer> PK_SOURCE = createField(DSL.name("pk_source"), SQLDataType.INTEGER, this, "");
private VCalendar(Name alias, Table<VCalendarRecord> aliased) {
this(alias, aliased, null);
this(alias, aliased, (Field<?>[]) null, null);
}
private VCalendar(Name alias, Table<VCalendarRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view());
private VCalendar(Name alias, Table<VCalendarRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
create view "v_calendar" as SELECT d.slot_day,
((p.forename || ' '::text) || p.surname) AS fullname,
p.abbreviation,
o.name AS source_name,
s.theme,
s.subtheme,
s.book_pages,
s.worksheets,
s.bibleverse,
s.notes AS subject_notes,
l.notes AS lesson_notes,
d.note AS slot_notes,
d.pk_slot,
l.pk_lesson,
ls.pk_lesson_subject,
p.pk_person,
s.pk_subject,
o.pk_source
FROM (((((t_slot d
LEFT JOIN t_lesson l ON ((l.fk_slot = d.pk_slot)))
LEFT JOIN t_lesson_subject ls ON ((ls.fk_lesson = l.pk_lesson)))
LEFT JOIN t_person p ON ((p.pk_person = l.fk_person)))
LEFT JOIN t_subject s ON ((s.pk_subject = ls.fk_subject)))
LEFT JOIN t_source o ON ((o.pk_source = s.fk_source)));
"""), where);
}
/**
@ -162,10 +192,6 @@ public class VCalendar extends TableImpl<VCalendarRecord> {
this(DSL.name("v_calendar"), null);
}
public <O extends Record> VCalendar(Table<O> child, ForeignKey<O, VCalendarRecord> key) {
super(child, key, V_CALENDAR);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
@ -181,6 +207,11 @@ public class VCalendar extends TableImpl<VCalendarRecord> {
return new VCalendar(alias, this);
}
@Override
public VCalendar as(Table<?> alias) {
return new VCalendar(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@ -196,4 +227,96 @@ public class VCalendar extends TableImpl<VCalendarRecord> {
public VCalendar rename(Name name) {
return new VCalendar(name, null);
}
/**
* Rename this table
*/
@Override
public VCalendar rename(Table<?> name) {
return new VCalendar(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public VCalendar where(Condition condition) {
return new VCalendar(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public VCalendar where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public VCalendar where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public VCalendar where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VCalendar where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VCalendar where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VCalendar where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VCalendar where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public VCalendar whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public VCalendar whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View File

@ -0,0 +1,250 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.public_.tables;
import de.jottyfan.bico.db.public_.Public;
import de.jottyfan.bico.db.public_.tables.records.VLessonRecord;
import java.time.LocalDate;
import java.util.Collection;
import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.Name;
import org.jooq.PlainSQL;
import org.jooq.QueryPart;
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.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class VLesson extends TableImpl<VLessonRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.v_lesson</code>
*/
public static final VLesson V_LESSON = new VLesson();
/**
* The class holding records for this type
*/
@Override
public Class<VLessonRecord> getRecordType() {
return VLessonRecord.class;
}
/**
* The column <code>public.v_lesson.pk_subject</code>.
*/
public final TableField<VLessonRecord, Integer> PK_SUBJECT = createField(DSL.name("pk_subject"), SQLDataType.INTEGER, this, "");
/**
* The column <code>public.v_lesson.source_name</code>.
*/
public final TableField<VLessonRecord, String> SOURCE_NAME = createField(DSL.name("source_name"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson.theme</code>.
*/
public final TableField<VLessonRecord, String> THEME = createField(DSL.name("theme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson.subtheme</code>.
*/
public final TableField<VLessonRecord, String> SUBTHEME = createField(DSL.name("subtheme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson.slots</code>.
*/
public final TableField<VLessonRecord, LocalDate[]> SLOTS = createField(DSL.name("slots"), SQLDataType.LOCALDATE.array(), this, "");
/**
* The column <code>public.v_lesson.order_nr</code>.
*/
public final TableField<VLessonRecord, Integer> ORDER_NR = createField(DSL.name("order_nr"), SQLDataType.INTEGER, this, "");
private VLesson(Name alias, Table<VLessonRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private VLesson(Name alias, Table<VLessonRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
create view "v_lesson" as SELECT su.pk_subject,
s.name AS source_name,
su.theme,
su.subtheme,
array_agg(d.slot_day) AS slots,
su.order_nr
FROM ((((t_subject su
LEFT JOIN t_source s ON ((s.pk_source = su.fk_source)))
LEFT JOIN t_lesson_subject ls ON ((ls.fk_subject = su.pk_subject)))
LEFT JOIN t_lesson l ON ((l.pk_lesson = ls.fk_lesson)))
LEFT JOIN t_slot d ON ((d.pk_slot = l.fk_slot)))
GROUP BY su.pk_subject, s.name, su.theme, su.subtheme, su.order_nr;
"""), where);
}
/**
* Create an aliased <code>public.v_lesson</code> table reference
*/
public VLesson(String alias) {
this(DSL.name(alias), V_LESSON);
}
/**
* Create an aliased <code>public.v_lesson</code> table reference
*/
public VLesson(Name alias) {
this(alias, V_LESSON);
}
/**
* Create a <code>public.v_lesson</code> table reference
*/
public VLesson() {
this(DSL.name("v_lesson"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public VLesson as(String alias) {
return new VLesson(DSL.name(alias), this);
}
@Override
public VLesson as(Name alias) {
return new VLesson(alias, this);
}
@Override
public VLesson as(Table<?> alias) {
return new VLesson(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public VLesson rename(String name) {
return new VLesson(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public VLesson rename(Name name) {
return new VLesson(name, null);
}
/**
* Rename this table
*/
@Override
public VLesson rename(Table<?> name) {
return new VLesson(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public VLesson where(Condition condition) {
return new VLesson(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public VLesson where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public VLesson where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public VLesson where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VLesson where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VLesson where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VLesson where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VLesson where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public VLesson whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public VLesson whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View File

@ -0,0 +1,235 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.public_.tables;
import de.jottyfan.bico.db.public_.Public;
import de.jottyfan.bico.db.public_.tables.records.VLessonMissingRecord;
import java.util.Collection;
import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.Name;
import org.jooq.PlainSQL;
import org.jooq.QueryPart;
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.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class VLessonMissing extends TableImpl<VLessonMissingRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.v_lesson_missing</code>
*/
public static final VLessonMissing V_LESSON_MISSING = new VLessonMissing();
/**
* The class holding records for this type
*/
@Override
public Class<VLessonMissingRecord> getRecordType() {
return VLessonMissingRecord.class;
}
/**
* The column <code>public.v_lesson_missing.source_name</code>.
*/
public final TableField<VLessonMissingRecord, String> SOURCE_NAME = createField(DSL.name("source_name"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson_missing.theme</code>.
*/
public final TableField<VLessonMissingRecord, String> THEME = createField(DSL.name("theme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson_missing.subtheme</code>.
*/
public final TableField<VLessonMissingRecord, String> SUBTHEME = createField(DSL.name("subtheme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson_missing.order_nr</code>.
*/
public final TableField<VLessonMissingRecord, Integer> ORDER_NR = createField(DSL.name("order_nr"), SQLDataType.INTEGER, this, "");
private VLessonMissing(Name alias, Table<VLessonMissingRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private VLessonMissing(Name alias, Table<VLessonMissingRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view("""
create view "v_lesson_missing" as SELECT s.name AS source_name,
su.theme,
su.subtheme,
su.order_nr
FROM (t_subject su
LEFT JOIN t_source s ON ((s.pk_source = su.fk_source)))
WHERE (NOT (su.pk_subject IN ( SELECT t_lesson_subject.fk_subject
FROM t_lesson_subject)));
"""), where);
}
/**
* Create an aliased <code>public.v_lesson_missing</code> table reference
*/
public VLessonMissing(String alias) {
this(DSL.name(alias), V_LESSON_MISSING);
}
/**
* Create an aliased <code>public.v_lesson_missing</code> table reference
*/
public VLessonMissing(Name alias) {
this(alias, V_LESSON_MISSING);
}
/**
* Create a <code>public.v_lesson_missing</code> table reference
*/
public VLessonMissing() {
this(DSL.name("v_lesson_missing"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public VLessonMissing as(String alias) {
return new VLessonMissing(DSL.name(alias), this);
}
@Override
public VLessonMissing as(Name alias) {
return new VLessonMissing(alias, this);
}
@Override
public VLessonMissing as(Table<?> alias) {
return new VLessonMissing(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public VLessonMissing rename(String name) {
return new VLessonMissing(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public VLessonMissing rename(Name name) {
return new VLessonMissing(name, null);
}
/**
* Rename this table
*/
@Override
public VLessonMissing rename(Table<?> name) {
return new VLessonMissing(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public VLessonMissing where(Condition condition) {
return new VLessonMissing(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public VLessonMissing where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public VLessonMissing where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public VLessonMissing where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VLessonMissing where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VLessonMissing where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VLessonMissing where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VLessonMissing where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public VLessonMissing whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public VLessonMissing whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View File

@ -0,0 +1,213 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.public_.tables;
import de.jottyfan.bico.db.public_.Public;
import de.jottyfan.bico.db.public_.tables.records.VVersionRecord;
import java.util.Collection;
import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.Name;
import org.jooq.PlainSQL;
import org.jooq.QueryPart;
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.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class VVersion extends TableImpl<VVersionRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.v_version</code>
*/
public static final VVersion V_VERSION = new VVersion();
/**
* The class holding records for this type
*/
@Override
public Class<VVersionRecord> getRecordType() {
return VVersionRecord.class;
}
/**
* The column <code>public.v_version.version</code>.
*/
public final TableField<VVersionRecord, Integer> VERSION = createField(DSL.name("version"), SQLDataType.INTEGER, this, "");
private VVersion(Name alias, Table<VVersionRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
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;
"""), where);
}
/**
* Create an aliased <code>public.v_version</code> table reference
*/
public VVersion(String alias) {
this(DSL.name(alias), V_VERSION);
}
/**
* Create an aliased <code>public.v_version</code> table reference
*/
public VVersion(Name alias) {
this(alias, V_VERSION);
}
/**
* Create a <code>public.v_version</code> table reference
*/
public VVersion() {
this(DSL.name("v_version"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public VVersion as(String alias) {
return new VVersion(DSL.name(alias), this);
}
@Override
public VVersion as(Name alias) {
return new VVersion(alias, this);
}
@Override
public VVersion as(Table<?> alias) {
return new VVersion(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public VVersion rename(String name) {
return new VVersion(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public VVersion rename(Name name) {
return new VVersion(name, null);
}
/**
* Rename this table
*/
@Override
public VVersion rename(Table<?> name) {
return new VVersion(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public VVersion where(Condition condition) {
return new VVersion(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public VVersion where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public VVersion where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public VVersion where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VVersion where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VVersion where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VVersion where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public VVersion where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public VVersion whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public VVersion whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View File

@ -1,7 +1,7 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
package de.jottyfan.bico.db.public_.tables.pojos;
import java.io.Serializable;
@ -10,7 +10,7 @@ import java.io.Serializable;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TLesson implements Serializable {
private static final long serialVersionUID = 1L;
@ -76,29 +76,29 @@ public class TLesson implements Serializable {
if (getClass() != obj.getClass())
return false;
final TLesson other = (TLesson) obj;
if (pkLesson == null) {
if (this.pkLesson == null) {
if (other.pkLesson != null)
return false;
}
else if (!pkLesson.equals(other.pkLesson))
else if (!this.pkLesson.equals(other.pkLesson))
return false;
if (fkSlot == null) {
if (this.fkSlot == null) {
if (other.fkSlot != null)
return false;
}
else if (!fkSlot.equals(other.fkSlot))
else if (!this.fkSlot.equals(other.fkSlot))
return false;
if (fkPerson == null) {
if (this.fkPerson == null) {
if (other.fkPerson != null)
return false;
}
else if (!fkPerson.equals(other.fkPerson))
else if (!this.fkPerson.equals(other.fkPerson))
return false;
if (notes == null) {
if (this.notes == null) {
if (other.notes != null)
return false;
}
else if (!notes.equals(other.notes))
else if (!this.notes.equals(other.notes))
return false;
return true;
}

View File

@ -1,7 +1,7 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
package de.jottyfan.bico.db.public_.tables.pojos;
import java.io.Serializable;
@ -10,7 +10,7 @@ import java.io.Serializable;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TLessonSubject implements Serializable {
private static final long serialVersionUID = 1L;
@ -65,23 +65,23 @@ public class TLessonSubject implements Serializable {
if (getClass() != obj.getClass())
return false;
final TLessonSubject other = (TLessonSubject) obj;
if (pkLessonSubject == null) {
if (this.pkLessonSubject == null) {
if (other.pkLessonSubject != null)
return false;
}
else if (!pkLessonSubject.equals(other.pkLessonSubject))
else if (!this.pkLessonSubject.equals(other.pkLessonSubject))
return false;
if (fkLesson == null) {
if (this.fkLesson == null) {
if (other.fkLesson != null)
return false;
}
else if (!fkLesson.equals(other.fkLesson))
else if (!this.fkLesson.equals(other.fkLesson))
return false;
if (fkSubject == null) {
if (this.fkSubject == null) {
if (other.fkSubject != null)
return false;
}
else if (!fkSubject.equals(other.fkSubject))
else if (!this.fkSubject.equals(other.fkSubject))
return false;
return true;
}

View File

@ -1,7 +1,7 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
package de.jottyfan.bico.db.public_.tables.pojos;
import java.io.Serializable;
@ -10,7 +10,7 @@ import java.io.Serializable;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TPerson implements Serializable {
private static final long serialVersionUID = 1L;
@ -76,29 +76,29 @@ public class TPerson implements Serializable {
if (getClass() != obj.getClass())
return false;
final TPerson other = (TPerson) obj;
if (pkPerson == null) {
if (this.pkPerson == null) {
if (other.pkPerson != null)
return false;
}
else if (!pkPerson.equals(other.pkPerson))
else if (!this.pkPerson.equals(other.pkPerson))
return false;
if (forename == null) {
if (this.forename == null) {
if (other.forename != null)
return false;
}
else if (!forename.equals(other.forename))
else if (!this.forename.equals(other.forename))
return false;
if (surname == null) {
if (this.surname == null) {
if (other.surname != null)
return false;
}
else if (!surname.equals(other.surname))
else if (!this.surname.equals(other.surname))
return false;
if (abbreviation == null) {
if (this.abbreviation == null) {
if (other.abbreviation != null)
return false;
}
else if (!abbreviation.equals(other.abbreviation))
else if (!this.abbreviation.equals(other.abbreviation))
return false;
return true;
}

View File

@ -1,7 +1,7 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
package de.jottyfan.bico.db.public_.tables.pojos;
import java.io.Serializable;
@ -10,7 +10,7 @@ import java.io.Serializable;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TProfile implements Serializable {
private static final long serialVersionUID = 1L;
@ -65,23 +65,23 @@ public class TProfile implements Serializable {
if (getClass() != obj.getClass())
return false;
final TProfile other = (TProfile) obj;
if (id == null) {
if (this.id == null) {
if (other.id != null)
return false;
}
else if (!id.equals(other.id))
else if (!this.id.equals(other.id))
return false;
if (username == null) {
if (this.username == null) {
if (other.username != null)
return false;
}
else if (!username.equals(other.username))
else if (!this.username.equals(other.username))
return false;
if (theme == null) {
if (this.theme == null) {
if (other.theme != null)
return false;
}
else if (!theme.equals(other.theme))
else if (!this.theme.equals(other.theme))
return false;
return true;
}

View File

@ -1,7 +1,7 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
package de.jottyfan.bico.db.public_.tables.pojos;
import java.io.Serializable;
@ -11,7 +11,7 @@ import java.time.LocalDate;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TSlot implements Serializable {
private static final long serialVersionUID = 1L;
@ -66,23 +66,23 @@ public class TSlot implements Serializable {
if (getClass() != obj.getClass())
return false;
final TSlot other = (TSlot) obj;
if (pkSlot == null) {
if (this.pkSlot == null) {
if (other.pkSlot != null)
return false;
}
else if (!pkSlot.equals(other.pkSlot))
else if (!this.pkSlot.equals(other.pkSlot))
return false;
if (slotDay == null) {
if (this.slotDay == null) {
if (other.slotDay != null)
return false;
}
else if (!slotDay.equals(other.slotDay))
else if (!this.slotDay.equals(other.slotDay))
return false;
if (note == null) {
if (this.note == null) {
if (other.note != null)
return false;
}
else if (!note.equals(other.note))
else if (!this.note.equals(other.note))
return false;
return true;
}

View File

@ -1,7 +1,7 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
package de.jottyfan.bico.db.public_.tables.pojos;
import java.io.Serializable;
@ -10,7 +10,7 @@ import java.io.Serializable;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TSource implements Serializable {
private static final long serialVersionUID = 1L;
@ -54,17 +54,17 @@ public class TSource implements Serializable {
if (getClass() != obj.getClass())
return false;
final TSource other = (TSource) obj;
if (pkSource == null) {
if (this.pkSource == null) {
if (other.pkSource != null)
return false;
}
else if (!pkSource.equals(other.pkSource))
else if (!this.pkSource.equals(other.pkSource))
return false;
if (name == null) {
if (this.name == null) {
if (other.name != null)
return false;
}
else if (!name.equals(other.name))
else if (!this.name.equals(other.name))
return false;
return true;
}

View File

@ -1,7 +1,7 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
package de.jottyfan.bico.db.public_.tables.pojos;
import java.io.Serializable;
@ -10,7 +10,7 @@ import java.io.Serializable;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TSubject implements Serializable {
private static final long serialVersionUID = 1L;
@ -131,59 +131,59 @@ public class TSubject implements Serializable {
if (getClass() != obj.getClass())
return false;
final TSubject other = (TSubject) obj;
if (pkSubject == null) {
if (this.pkSubject == null) {
if (other.pkSubject != null)
return false;
}
else if (!pkSubject.equals(other.pkSubject))
else if (!this.pkSubject.equals(other.pkSubject))
return false;
if (fkSource == null) {
if (this.fkSource == null) {
if (other.fkSource != null)
return false;
}
else if (!fkSource.equals(other.fkSource))
else if (!this.fkSource.equals(other.fkSource))
return false;
if (theme == null) {
if (this.theme == null) {
if (other.theme != null)
return false;
}
else if (!theme.equals(other.theme))
else if (!this.theme.equals(other.theme))
return false;
if (subtheme == null) {
if (this.subtheme == null) {
if (other.subtheme != null)
return false;
}
else if (!subtheme.equals(other.subtheme))
else if (!this.subtheme.equals(other.subtheme))
return false;
if (bookPages == null) {
if (this.bookPages == null) {
if (other.bookPages != null)
return false;
}
else if (!bookPages.equals(other.bookPages))
else if (!this.bookPages.equals(other.bookPages))
return false;
if (worksheets == null) {
if (this.worksheets == null) {
if (other.worksheets != null)
return false;
}
else if (!worksheets.equals(other.worksheets))
else if (!this.worksheets.equals(other.worksheets))
return false;
if (bibleverse == null) {
if (this.bibleverse == null) {
if (other.bibleverse != null)
return false;
}
else if (!bibleverse.equals(other.bibleverse))
else if (!this.bibleverse.equals(other.bibleverse))
return false;
if (notes == null) {
if (this.notes == null) {
if (other.notes != null)
return false;
}
else if (!notes.equals(other.notes))
else if (!this.notes.equals(other.notes))
return false;
if (orderNr == null) {
if (this.orderNr == null) {
if (other.orderNr != null)
return false;
}
else if (!orderNr.equals(other.orderNr))
else if (!this.orderNr.equals(other.orderNr))
return false;
return true;
}

View File

@ -1,7 +1,7 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
package de.jottyfan.bico.db.public_.tables.pojos;
import java.io.Serializable;
@ -11,7 +11,7 @@ import java.time.LocalDate;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class VCalendar implements Serializable {
private static final long serialVersionUID = 1L;
@ -231,113 +231,113 @@ public class VCalendar implements Serializable {
if (getClass() != obj.getClass())
return false;
final VCalendar other = (VCalendar) obj;
if (slotDay == null) {
if (this.slotDay == null) {
if (other.slotDay != null)
return false;
}
else if (!slotDay.equals(other.slotDay))
else if (!this.slotDay.equals(other.slotDay))
return false;
if (fullname == null) {
if (this.fullname == null) {
if (other.fullname != null)
return false;
}
else if (!fullname.equals(other.fullname))
else if (!this.fullname.equals(other.fullname))
return false;
if (abbreviation == null) {
if (this.abbreviation == null) {
if (other.abbreviation != null)
return false;
}
else if (!abbreviation.equals(other.abbreviation))
else if (!this.abbreviation.equals(other.abbreviation))
return false;
if (sourceName == null) {
if (this.sourceName == null) {
if (other.sourceName != null)
return false;
}
else if (!sourceName.equals(other.sourceName))
else if (!this.sourceName.equals(other.sourceName))
return false;
if (theme == null) {
if (this.theme == null) {
if (other.theme != null)
return false;
}
else if (!theme.equals(other.theme))
else if (!this.theme.equals(other.theme))
return false;
if (subtheme == null) {
if (this.subtheme == null) {
if (other.subtheme != null)
return false;
}
else if (!subtheme.equals(other.subtheme))
else if (!this.subtheme.equals(other.subtheme))
return false;
if (bookPages == null) {
if (this.bookPages == null) {
if (other.bookPages != null)
return false;
}
else if (!bookPages.equals(other.bookPages))
else if (!this.bookPages.equals(other.bookPages))
return false;
if (worksheets == null) {
if (this.worksheets == null) {
if (other.worksheets != null)
return false;
}
else if (!worksheets.equals(other.worksheets))
else if (!this.worksheets.equals(other.worksheets))
return false;
if (bibleverse == null) {
if (this.bibleverse == null) {
if (other.bibleverse != null)
return false;
}
else if (!bibleverse.equals(other.bibleverse))
else if (!this.bibleverse.equals(other.bibleverse))
return false;
if (subjectNotes == null) {
if (this.subjectNotes == null) {
if (other.subjectNotes != null)
return false;
}
else if (!subjectNotes.equals(other.subjectNotes))
else if (!this.subjectNotes.equals(other.subjectNotes))
return false;
if (lessonNotes == null) {
if (this.lessonNotes == null) {
if (other.lessonNotes != null)
return false;
}
else if (!lessonNotes.equals(other.lessonNotes))
else if (!this.lessonNotes.equals(other.lessonNotes))
return false;
if (slotNotes == null) {
if (this.slotNotes == null) {
if (other.slotNotes != null)
return false;
}
else if (!slotNotes.equals(other.slotNotes))
else if (!this.slotNotes.equals(other.slotNotes))
return false;
if (pkSlot == null) {
if (this.pkSlot == null) {
if (other.pkSlot != null)
return false;
}
else if (!pkSlot.equals(other.pkSlot))
else if (!this.pkSlot.equals(other.pkSlot))
return false;
if (pkLesson == null) {
if (this.pkLesson == null) {
if (other.pkLesson != null)
return false;
}
else if (!pkLesson.equals(other.pkLesson))
else if (!this.pkLesson.equals(other.pkLesson))
return false;
if (pkLessonSubject == null) {
if (this.pkLessonSubject == null) {
if (other.pkLessonSubject != null)
return false;
}
else if (!pkLessonSubject.equals(other.pkLessonSubject))
else if (!this.pkLessonSubject.equals(other.pkLessonSubject))
return false;
if (pkPerson == null) {
if (this.pkPerson == null) {
if (other.pkPerson != null)
return false;
}
else if (!pkPerson.equals(other.pkPerson))
else if (!this.pkPerson.equals(other.pkPerson))
return false;
if (pkSubject == null) {
if (this.pkSubject == null) {
if (other.pkSubject != null)
return false;
}
else if (!pkSubject.equals(other.pkSubject))
else if (!this.pkSubject.equals(other.pkSubject))
return false;
if (pkSource == null) {
if (this.pkSource == null) {
if (other.pkSource != null)
return false;
}
else if (!pkSource.equals(other.pkSource))
else if (!this.pkSource.equals(other.pkSource))
return false;
return true;
}

View File

@ -1,7 +1,7 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
package de.jottyfan.bico.db.public_.tables.pojos;
import java.io.Serializable;
@ -12,7 +12,7 @@ import java.util.Arrays;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class VLesson implements Serializable {
private static final long serialVersionUID = 1L;
@ -100,41 +100,41 @@ public class VLesson implements Serializable {
if (getClass() != obj.getClass())
return false;
final VLesson other = (VLesson) obj;
if (pkSubject == null) {
if (this.pkSubject == null) {
if (other.pkSubject != null)
return false;
}
else if (!pkSubject.equals(other.pkSubject))
else if (!this.pkSubject.equals(other.pkSubject))
return false;
if (sourceName == null) {
if (this.sourceName == null) {
if (other.sourceName != null)
return false;
}
else if (!sourceName.equals(other.sourceName))
else if (!this.sourceName.equals(other.sourceName))
return false;
if (theme == null) {
if (this.theme == null) {
if (other.theme != null)
return false;
}
else if (!theme.equals(other.theme))
else if (!this.theme.equals(other.theme))
return false;
if (subtheme == null) {
if (this.subtheme == null) {
if (other.subtheme != null)
return false;
}
else if (!subtheme.equals(other.subtheme))
else if (!this.subtheme.equals(other.subtheme))
return false;
if (slots == null) {
if (this.slots == null) {
if (other.slots != null)
return false;
}
else if (!Arrays.equals(slots, other.slots))
else if (!Arrays.deepEquals(this.slots, other.slots))
return false;
if (orderNr == null) {
if (this.orderNr == null) {
if (other.orderNr != null)
return false;
}
else if (!orderNr.equals(other.orderNr))
else if (!this.orderNr.equals(other.orderNr))
return false;
return true;
}
@ -147,7 +147,7 @@ public class VLesson implements Serializable {
result = prime * result + ((this.sourceName == null) ? 0 : this.sourceName.hashCode());
result = prime * result + ((this.theme == null) ? 0 : this.theme.hashCode());
result = prime * result + ((this.subtheme == null) ? 0 : this.subtheme.hashCode());
result = prime * result + ((this.slots == null) ? 0 : Arrays.hashCode(this.slots));
result = prime * result + ((this.slots == null) ? 0 : Arrays.deepHashCode(this.slots));
result = prime * result + ((this.orderNr == null) ? 0 : this.orderNr.hashCode());
return result;
}
@ -160,7 +160,7 @@ public class VLesson implements Serializable {
sb.append(", ").append(sourceName);
sb.append(", ").append(theme);
sb.append(", ").append(subtheme);
sb.append(", ").append(Arrays.toString(slots));
sb.append(", ").append(Arrays.deepToString(slots));
sb.append(", ").append(orderNr);
sb.append(")");

View File

@ -1,7 +1,7 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
package de.jottyfan.bico.db.public_.tables.pojos;
import java.io.Serializable;
@ -10,7 +10,7 @@ import java.io.Serializable;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class VLessonMissing implements Serializable {
private static final long serialVersionUID = 1L;
@ -76,29 +76,29 @@ public class VLessonMissing implements Serializable {
if (getClass() != obj.getClass())
return false;
final VLessonMissing other = (VLessonMissing) obj;
if (sourceName == null) {
if (this.sourceName == null) {
if (other.sourceName != null)
return false;
}
else if (!sourceName.equals(other.sourceName))
else if (!this.sourceName.equals(other.sourceName))
return false;
if (theme == null) {
if (this.theme == null) {
if (other.theme != null)
return false;
}
else if (!theme.equals(other.theme))
else if (!this.theme.equals(other.theme))
return false;
if (subtheme == null) {
if (this.subtheme == null) {
if (other.subtheme != null)
return false;
}
else if (!subtheme.equals(other.subtheme))
else if (!this.subtheme.equals(other.subtheme))
return false;
if (orderNr == null) {
if (this.orderNr == null) {
if (other.orderNr != null)
return false;
}
else if (!orderNr.equals(other.orderNr))
else if (!this.orderNr.equals(other.orderNr))
return false;
return true;
}

View File

@ -1,7 +1,7 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.pojos;
package de.jottyfan.bico.db.public_.tables.pojos;
import java.io.Serializable;
@ -10,7 +10,7 @@ import java.io.Serializable;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class VVersion implements Serializable {
private static final long serialVersionUID = 1L;
@ -43,11 +43,11 @@ public class VVersion implements Serializable {
if (getClass() != obj.getClass())
return false;
final VVersion other = (VVersion) obj;
if (version == null) {
if (this.version == null) {
if (other.version != null)
return false;
}
else if (!version.equals(other.version))
else if (!this.version.equals(other.version))
return false;
return true;
}

View File

@ -1,10 +1,10 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
package de.jottyfan.bico.db.public_.tables.records;
import de.jottyfan.bico.db.tables.TLesson;
import de.jottyfan.bico.db.public_.tables.TLesson;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
@ -13,7 +13,7 @@ import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TLessonRecord extends UpdatableRecordImpl<TLessonRecord> {
private static final long serialVersionUID = 1L;
@ -108,12 +108,13 @@ public class TLessonRecord extends UpdatableRecordImpl<TLessonRecord> {
setFkSlot(fkSlot);
setFkPerson(fkPerson);
setNotes(notes);
resetChangedOnNotNull();
}
/**
* Create a detached, initialised TLessonRecord
*/
public TLessonRecord(de.jottyfan.bico.db.tables.pojos.TLesson value) {
public TLessonRecord(de.jottyfan.bico.db.public_.tables.pojos.TLesson value) {
super(TLesson.T_LESSON);
if (value != null) {
@ -121,6 +122,7 @@ public class TLessonRecord extends UpdatableRecordImpl<TLessonRecord> {
setFkSlot(value.getFkSlot());
setFkPerson(value.getFkPerson());
setNotes(value.getNotes());
resetChangedOnNotNull();
}
}
}

View File

@ -1,10 +1,10 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
package de.jottyfan.bico.db.public_.tables.records;
import de.jottyfan.bico.db.tables.TLessonSubject;
import de.jottyfan.bico.db.public_.tables.TLessonSubject;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
@ -13,7 +13,7 @@ import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TLessonSubjectRecord extends UpdatableRecordImpl<TLessonSubjectRecord> {
private static final long serialVersionUID = 1L;
@ -92,18 +92,20 @@ public class TLessonSubjectRecord extends UpdatableRecordImpl<TLessonSubjectReco
setPkLessonSubject(pkLessonSubject);
setFkLesson(fkLesson);
setFkSubject(fkSubject);
resetChangedOnNotNull();
}
/**
* Create a detached, initialised TLessonSubjectRecord
*/
public TLessonSubjectRecord(de.jottyfan.bico.db.tables.pojos.TLessonSubject value) {
public TLessonSubjectRecord(de.jottyfan.bico.db.public_.tables.pojos.TLessonSubject value) {
super(TLessonSubject.T_LESSON_SUBJECT);
if (value != null) {
setPkLessonSubject(value.getPkLessonSubject());
setFkLesson(value.getFkLesson());
setFkSubject(value.getFkSubject());
resetChangedOnNotNull();
}
}
}

View File

@ -1,10 +1,10 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
package de.jottyfan.bico.db.public_.tables.records;
import de.jottyfan.bico.db.tables.TPerson;
import de.jottyfan.bico.db.public_.tables.TPerson;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
@ -13,7 +13,7 @@ import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> {
private static final long serialVersionUID = 1L;
@ -108,12 +108,13 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> {
setForename(forename);
setSurname(surname);
setAbbreviation(abbreviation);
resetChangedOnNotNull();
}
/**
* Create a detached, initialised TPersonRecord
*/
public TPersonRecord(de.jottyfan.bico.db.tables.pojos.TPerson value) {
public TPersonRecord(de.jottyfan.bico.db.public_.tables.pojos.TPerson value) {
super(TPerson.T_PERSON);
if (value != null) {
@ -121,6 +122,7 @@ public class TPersonRecord extends UpdatableRecordImpl<TPersonRecord> {
setForename(value.getForename());
setSurname(value.getSurname());
setAbbreviation(value.getAbbreviation());
resetChangedOnNotNull();
}
}
}

View File

@ -1,10 +1,10 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
package de.jottyfan.bico.db.public_.tables.records;
import de.jottyfan.bico.db.tables.TProfile;
import de.jottyfan.bico.db.public_.tables.TProfile;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
@ -13,7 +13,7 @@ import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TProfileRecord extends UpdatableRecordImpl<TProfileRecord> {
private static final long serialVersionUID = 1L;
@ -92,18 +92,20 @@ public class TProfileRecord extends UpdatableRecordImpl<TProfileRecord> {
setId(id);
setUsername(username);
setTheme(theme);
resetChangedOnNotNull();
}
/**
* Create a detached, initialised TProfileRecord
*/
public TProfileRecord(de.jottyfan.bico.db.tables.pojos.TProfile value) {
public TProfileRecord(de.jottyfan.bico.db.public_.tables.pojos.TProfile value) {
super(TProfile.T_PROFILE);
if (value != null) {
setId(value.getId());
setUsername(value.getUsername());
setTheme(value.getTheme());
resetChangedOnNotNull();
}
}
}

View File

@ -1,10 +1,10 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
package de.jottyfan.bico.db.public_.tables.records;
import de.jottyfan.bico.db.tables.TSlot;
import de.jottyfan.bico.db.public_.tables.TSlot;
import java.time.LocalDate;
@ -15,7 +15,7 @@ import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TSlotRecord extends UpdatableRecordImpl<TSlotRecord> {
private static final long serialVersionUID = 1L;
@ -94,18 +94,20 @@ public class TSlotRecord extends UpdatableRecordImpl<TSlotRecord> {
setPkSlot(pkSlot);
setSlotDay(slotDay);
setNote(note);
resetChangedOnNotNull();
}
/**
* Create a detached, initialised TSlotRecord
*/
public TSlotRecord(de.jottyfan.bico.db.tables.pojos.TSlot value) {
public TSlotRecord(de.jottyfan.bico.db.public_.tables.pojos.TSlot value) {
super(TSlot.T_SLOT);
if (value != null) {
setPkSlot(value.getPkSlot());
setSlotDay(value.getSlotDay());
setNote(value.getNote());
resetChangedOnNotNull();
}
}
}

View File

@ -1,10 +1,10 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
package de.jottyfan.bico.db.public_.tables.records;
import de.jottyfan.bico.db.tables.TSource;
import de.jottyfan.bico.db.public_.tables.TSource;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
@ -13,7 +13,7 @@ import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TSourceRecord extends UpdatableRecordImpl<TSourceRecord> {
private static final long serialVersionUID = 1L;
@ -76,17 +76,19 @@ public class TSourceRecord extends UpdatableRecordImpl<TSourceRecord> {
setPkSource(pkSource);
setName(name);
resetChangedOnNotNull();
}
/**
* Create a detached, initialised TSourceRecord
*/
public TSourceRecord(de.jottyfan.bico.db.tables.pojos.TSource value) {
public TSourceRecord(de.jottyfan.bico.db.public_.tables.pojos.TSource value) {
super(TSource.T_SOURCE);
if (value != null) {
setPkSource(value.getPkSource());
setName(value.getName());
resetChangedOnNotNull();
}
}
}

View File

@ -1,10 +1,10 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
package de.jottyfan.bico.db.public_.tables.records;
import de.jottyfan.bico.db.tables.TSubject;
import de.jottyfan.bico.db.public_.tables.TSubject;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
@ -13,7 +13,7 @@ import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class TSubjectRecord extends UpdatableRecordImpl<TSubjectRecord> {
private static final long serialVersionUID = 1L;
@ -188,12 +188,13 @@ public class TSubjectRecord extends UpdatableRecordImpl<TSubjectRecord> {
setBibleverse(bibleverse);
setNotes(notes);
setOrderNr(orderNr);
resetChangedOnNotNull();
}
/**
* Create a detached, initialised TSubjectRecord
*/
public TSubjectRecord(de.jottyfan.bico.db.tables.pojos.TSubject value) {
public TSubjectRecord(de.jottyfan.bico.db.public_.tables.pojos.TSubject value) {
super(TSubject.T_SUBJECT);
if (value != null) {
@ -206,6 +207,7 @@ public class TSubjectRecord extends UpdatableRecordImpl<TSubjectRecord> {
setBibleverse(value.getBibleverse());
setNotes(value.getNotes());
setOrderNr(value.getOrderNr());
resetChangedOnNotNull();
}
}
}

View File

@ -1,10 +1,10 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
package de.jottyfan.bico.db.public_.tables.records;
import de.jottyfan.bico.db.tables.VCalendar;
import de.jottyfan.bico.db.public_.tables.VCalendar;
import java.time.LocalDate;
@ -14,7 +14,7 @@ import org.jooq.impl.TableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class VCalendarRecord extends TableRecordImpl<VCalendarRecord> {
private static final long serialVersionUID = 1L;
@ -324,12 +324,13 @@ public class VCalendarRecord extends TableRecordImpl<VCalendarRecord> {
setPkPerson(pkPerson);
setPkSubject(pkSubject);
setPkSource(pkSource);
resetChangedOnNotNull();
}
/**
* Create a detached, initialised VCalendarRecord
*/
public VCalendarRecord(de.jottyfan.bico.db.tables.pojos.VCalendar value) {
public VCalendarRecord(de.jottyfan.bico.db.public_.tables.pojos.VCalendar value) {
super(VCalendar.V_CALENDAR);
if (value != null) {
@ -351,6 +352,7 @@ public class VCalendarRecord extends TableRecordImpl<VCalendarRecord> {
setPkPerson(value.getPkPerson());
setPkSubject(value.getPkSubject());
setPkSource(value.getPkSource());
resetChangedOnNotNull();
}
}
}

View File

@ -1,10 +1,10 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
package de.jottyfan.bico.db.public_.tables.records;
import de.jottyfan.bico.db.tables.VLessonMissing;
import de.jottyfan.bico.db.public_.tables.VLessonMissing;
import org.jooq.impl.TableRecordImpl;
@ -12,7 +12,7 @@ import org.jooq.impl.TableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class VLessonMissingRecord extends TableRecordImpl<VLessonMissingRecord> {
private static final long serialVersionUID = 1L;
@ -98,12 +98,13 @@ public class VLessonMissingRecord extends TableRecordImpl<VLessonMissingRecord>
setTheme(theme);
setSubtheme(subtheme);
setOrderNr(orderNr);
resetChangedOnNotNull();
}
/**
* Create a detached, initialised VLessonMissingRecord
*/
public VLessonMissingRecord(de.jottyfan.bico.db.tables.pojos.VLessonMissing value) {
public VLessonMissingRecord(de.jottyfan.bico.db.public_.tables.pojos.VLessonMissing value) {
super(VLessonMissing.V_LESSON_MISSING);
if (value != null) {
@ -111,6 +112,7 @@ public class VLessonMissingRecord extends TableRecordImpl<VLessonMissingRecord>
setTheme(value.getTheme());
setSubtheme(value.getSubtheme());
setOrderNr(value.getOrderNr());
resetChangedOnNotNull();
}
}
}

View File

@ -1,10 +1,10 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
package de.jottyfan.bico.db.public_.tables.records;
import de.jottyfan.bico.db.tables.VLesson;
import de.jottyfan.bico.db.public_.tables.VLesson;
import java.time.LocalDate;
@ -14,7 +14,7 @@ import org.jooq.impl.TableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class VLessonRecord extends TableRecordImpl<VLessonRecord> {
private static final long serialVersionUID = 1L;
@ -132,12 +132,13 @@ public class VLessonRecord extends TableRecordImpl<VLessonRecord> {
setSubtheme(subtheme);
setSlots(slots);
setOrderNr(orderNr);
resetChangedOnNotNull();
}
/**
* Create a detached, initialised VLessonRecord
*/
public VLessonRecord(de.jottyfan.bico.db.tables.pojos.VLesson value) {
public VLessonRecord(de.jottyfan.bico.db.public_.tables.pojos.VLesson value) {
super(VLesson.V_LESSON);
if (value != null) {
@ -147,6 +148,7 @@ public class VLessonRecord extends TableRecordImpl<VLessonRecord> {
setSubtheme(value.getSubtheme());
setSlots(value.getSlots());
setOrderNr(value.getOrderNr());
resetChangedOnNotNull();
}
}
}

View File

@ -1,10 +1,10 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables.records;
package de.jottyfan.bico.db.public_.tables.records;
import de.jottyfan.bico.db.tables.VVersion;
import de.jottyfan.bico.db.public_.tables.VVersion;
import org.jooq.impl.TableRecordImpl;
@ -12,7 +12,7 @@ import org.jooq.impl.TableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class VVersionRecord extends TableRecordImpl<VVersionRecord> {
private static final long serialVersionUID = 1L;
@ -50,16 +50,18 @@ public class VVersionRecord extends TableRecordImpl<VVersionRecord> {
super(VVersion.V_VERSION);
setVersion(version);
resetChangedOnNotNull();
}
/**
* Create a detached, initialised VVersionRecord
*/
public VVersionRecord(de.jottyfan.bico.db.tables.pojos.VVersion value) {
public VVersionRecord(de.jottyfan.bico.db.public_.tables.pojos.VVersion value) {
super(VVersion.V_VERSION);
if (value != null) {
setVersion(value.getVersion());
resetChangedOnNotNull();
}
}
}

View File

@ -1,176 +0,0 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Keys;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.TLessonRecord;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Schema;
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.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TLesson extends TableImpl<TLessonRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_lesson</code>
*/
public static final TLesson T_LESSON = new TLesson();
/**
* The class holding records for this type
*/
@Override
public Class<TLessonRecord> getRecordType() {
return TLessonRecord.class;
}
/**
* The column <code>public.t_lesson.pk_lesson</code>.
*/
public final TableField<TLessonRecord, Integer> PK_LESSON = createField(DSL.name("pk_lesson"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_lesson.fk_slot</code>.
*/
public final TableField<TLessonRecord, Integer> FK_SLOT = createField(DSL.name("fk_slot"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>public.t_lesson.fk_person</code>.
*/
public final TableField<TLessonRecord, Integer> FK_PERSON = createField(DSL.name("fk_person"), SQLDataType.INTEGER, this, "");
/**
* The column <code>public.t_lesson.notes</code>.
*/
public final TableField<TLessonRecord, String> NOTES = createField(DSL.name("notes"), SQLDataType.CLOB, this, "");
private TLesson(Name alias, Table<TLessonRecord> aliased) {
this(alias, aliased, null);
}
private TLesson(Name alias, Table<TLessonRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>public.t_lesson</code> table reference
*/
public TLesson(String alias) {
this(DSL.name(alias), T_LESSON);
}
/**
* Create an aliased <code>public.t_lesson</code> table reference
*/
public TLesson(Name alias) {
this(alias, T_LESSON);
}
/**
* Create a <code>public.t_lesson</code> table reference
*/
public TLesson() {
this(DSL.name("t_lesson"), null);
}
public <O extends Record> TLesson(Table<O> child, ForeignKey<O, TLessonRecord> key) {
super(child, key, T_LESSON);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TLessonRecord, Integer> getIdentity() {
return (Identity<TLessonRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TLessonRecord> getPrimaryKey() {
return Keys.T_LESSON_PKEY;
}
@Override
public List<UniqueKey<TLessonRecord>> getUniqueKeys() {
return Arrays.asList(Keys.T_LESSON_FK_LESSONDAY_KEY);
}
@Override
public List<ForeignKey<TLessonRecord, ?>> getReferences() {
return Arrays.asList(Keys.T_LESSON__T_LESSON_FK_LESSONDAY_FKEY, Keys.T_LESSON__T_LESSON_FK_PERSON_FKEY);
}
private transient TSlot _tSlot;
private transient TPerson _tPerson;
/**
* Get the implicit join path to the <code>public.t_slot</code> table.
*/
public TSlot tSlot() {
if (_tSlot == null)
_tSlot = new TSlot(this, Keys.T_LESSON__T_LESSON_FK_LESSONDAY_FKEY);
return _tSlot;
}
/**
* Get the implicit join path to the <code>public.t_person</code> table.
*/
public TPerson tPerson() {
if (_tPerson == null)
_tPerson = new TPerson(this, Keys.T_LESSON__T_LESSON_FK_PERSON_FKEY);
return _tPerson;
}
@Override
public TLesson as(String alias) {
return new TLesson(DSL.name(alias), this);
}
@Override
public TLesson as(Name alias) {
return new TLesson(alias, this);
}
/**
* Rename this table
*/
@Override
public TLesson rename(String name) {
return new TLesson(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TLesson rename(Name name) {
return new TLesson(name, null);
}
}

View File

@ -1,171 +0,0 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Keys;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.TLessonSubjectRecord;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Schema;
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.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TLessonSubject extends TableImpl<TLessonSubjectRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_lesson_subject</code>
*/
public static final TLessonSubject T_LESSON_SUBJECT = new TLessonSubject();
/**
* The class holding records for this type
*/
@Override
public Class<TLessonSubjectRecord> getRecordType() {
return TLessonSubjectRecord.class;
}
/**
* The column <code>public.t_lesson_subject.pk_lesson_subject</code>.
*/
public final TableField<TLessonSubjectRecord, Integer> PK_LESSON_SUBJECT = createField(DSL.name("pk_lesson_subject"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_lesson_subject.fk_lesson</code>.
*/
public final TableField<TLessonSubjectRecord, Integer> FK_LESSON = createField(DSL.name("fk_lesson"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>public.t_lesson_subject.fk_subject</code>.
*/
public final TableField<TLessonSubjectRecord, Integer> FK_SUBJECT = createField(DSL.name("fk_subject"), SQLDataType.INTEGER.nullable(false), this, "");
private TLessonSubject(Name alias, Table<TLessonSubjectRecord> aliased) {
this(alias, aliased, null);
}
private TLessonSubject(Name alias, Table<TLessonSubjectRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>public.t_lesson_subject</code> table reference
*/
public TLessonSubject(String alias) {
this(DSL.name(alias), T_LESSON_SUBJECT);
}
/**
* Create an aliased <code>public.t_lesson_subject</code> table reference
*/
public TLessonSubject(Name alias) {
this(alias, T_LESSON_SUBJECT);
}
/**
* Create a <code>public.t_lesson_subject</code> table reference
*/
public TLessonSubject() {
this(DSL.name("t_lesson_subject"), null);
}
public <O extends Record> TLessonSubject(Table<O> child, ForeignKey<O, TLessonSubjectRecord> key) {
super(child, key, T_LESSON_SUBJECT);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TLessonSubjectRecord, Integer> getIdentity() {
return (Identity<TLessonSubjectRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TLessonSubjectRecord> getPrimaryKey() {
return Keys.T_LESSON_SUBJECT_PKEY;
}
@Override
public List<UniqueKey<TLessonSubjectRecord>> getUniqueKeys() {
return Arrays.asList(Keys.T_LESSON_SUBJECT_FK_LESSON_FK_SUBJECT_KEY);
}
@Override
public List<ForeignKey<TLessonSubjectRecord, ?>> getReferences() {
return Arrays.asList(Keys.T_LESSON_SUBJECT__T_LESSON_SUBJECT_FK_LESSON_FKEY, Keys.T_LESSON_SUBJECT__T_LESSON_SUBJECT_FK_SUBJECT_FKEY);
}
private transient TLesson _tLesson;
private transient TSubject _tSubject;
/**
* Get the implicit join path to the <code>public.t_lesson</code> table.
*/
public TLesson tLesson() {
if (_tLesson == null)
_tLesson = new TLesson(this, Keys.T_LESSON_SUBJECT__T_LESSON_SUBJECT_FK_LESSON_FKEY);
return _tLesson;
}
/**
* Get the implicit join path to the <code>public.t_subject</code> table.
*/
public TSubject tSubject() {
if (_tSubject == null)
_tSubject = new TSubject(this, Keys.T_LESSON_SUBJECT__T_LESSON_SUBJECT_FK_SUBJECT_FKEY);
return _tSubject;
}
@Override
public TLessonSubject as(String alias) {
return new TLessonSubject(DSL.name(alias), this);
}
@Override
public TLessonSubject as(Name alias) {
return new TLessonSubject(alias, this);
}
/**
* Rename this table
*/
@Override
public TLessonSubject rename(String name) {
return new TLessonSubject(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TLessonSubject rename(Name name) {
return new TLessonSubject(name, null);
}
}

View File

@ -1,148 +0,0 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Keys;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.TPersonRecord;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Schema;
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.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TPerson extends TableImpl<TPersonRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_person</code>
*/
public static final TPerson T_PERSON = new TPerson();
/**
* The class holding records for this type
*/
@Override
public Class<TPersonRecord> getRecordType() {
return TPersonRecord.class;
}
/**
* The column <code>public.t_person.pk_person</code>.
*/
public final TableField<TPersonRecord, Integer> PK_PERSON = createField(DSL.name("pk_person"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_person.forename</code>.
*/
public final TableField<TPersonRecord, String> FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column <code>public.t_person.surname</code>.
*/
public final TableField<TPersonRecord, String> SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column <code>public.t_person.abbreviation</code>.
*/
public final TableField<TPersonRecord, String> ABBREVIATION = createField(DSL.name("abbreviation"), SQLDataType.CLOB, this, "");
private TPerson(Name alias, Table<TPersonRecord> aliased) {
this(alias, aliased, null);
}
private TPerson(Name alias, Table<TPersonRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>public.t_person</code> table reference
*/
public TPerson(String alias) {
this(DSL.name(alias), T_PERSON);
}
/**
* Create an aliased <code>public.t_person</code> table reference
*/
public TPerson(Name alias) {
this(alias, T_PERSON);
}
/**
* Create a <code>public.t_person</code> table reference
*/
public TPerson() {
this(DSL.name("t_person"), null);
}
public <O extends Record> TPerson(Table<O> child, ForeignKey<O, TPersonRecord> key) {
super(child, key, T_PERSON);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TPersonRecord, Integer> getIdentity() {
return (Identity<TPersonRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TPersonRecord> getPrimaryKey() {
return Keys.T_PERSON_PKEY;
}
@Override
public List<UniqueKey<TPersonRecord>> getUniqueKeys() {
return Arrays.asList(Keys.T_PERSON_FORENAME_SURNAME_KEY, Keys.T_PERSON_ABBREVIATION_KEY);
}
@Override
public TPerson as(String alias) {
return new TPerson(DSL.name(alias), this);
}
@Override
public TPerson as(Name alias) {
return new TPerson(alias, this);
}
/**
* Rename this table
*/
@Override
public TPerson rename(String name) {
return new TPerson(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TPerson rename(Name name) {
return new TPerson(name, null);
}
}

View File

@ -1,144 +0,0 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Keys;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.TSlotRecord;
import java.time.LocalDate;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Schema;
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.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TSlot extends TableImpl<TSlotRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_slot</code>
*/
public static final TSlot T_SLOT = new TSlot();
/**
* The class holding records for this type
*/
@Override
public Class<TSlotRecord> getRecordType() {
return TSlotRecord.class;
}
/**
* The column <code>public.t_slot.pk_slot</code>.
*/
public final TableField<TSlotRecord, Integer> PK_SLOT = createField(DSL.name("pk_slot"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_slot.slot_day</code>.
*/
public final TableField<TSlotRecord, LocalDate> SLOT_DAY = createField(DSL.name("slot_day"), SQLDataType.LOCALDATE.nullable(false), this, "");
/**
* The column <code>public.t_slot.note</code>.
*/
public final TableField<TSlotRecord, String> NOTE = createField(DSL.name("note"), SQLDataType.CLOB, this, "");
private TSlot(Name alias, Table<TSlotRecord> aliased) {
this(alias, aliased, null);
}
private TSlot(Name alias, Table<TSlotRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>public.t_slot</code> table reference
*/
public TSlot(String alias) {
this(DSL.name(alias), T_SLOT);
}
/**
* Create an aliased <code>public.t_slot</code> table reference
*/
public TSlot(Name alias) {
this(alias, T_SLOT);
}
/**
* Create a <code>public.t_slot</code> table reference
*/
public TSlot() {
this(DSL.name("t_slot"), null);
}
public <O extends Record> TSlot(Table<O> child, ForeignKey<O, TSlotRecord> key) {
super(child, key, T_SLOT);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TSlotRecord, Integer> getIdentity() {
return (Identity<TSlotRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TSlotRecord> getPrimaryKey() {
return Keys.T_LESSONDAY_PKEY;
}
@Override
public List<UniqueKey<TSlotRecord>> getUniqueKeys() {
return Arrays.asList(Keys.T_LESSONDAY_LESSON_DAY_KEY);
}
@Override
public TSlot as(String alias) {
return new TSlot(DSL.name(alias), this);
}
@Override
public TSlot as(Name alias) {
return new TSlot(alias, this);
}
/**
* Rename this table
*/
@Override
public TSlot rename(String name) {
return new TSlot(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TSlot rename(Name name) {
return new TSlot(name, null);
}
}

View File

@ -1,138 +0,0 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Keys;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.TSourceRecord;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Schema;
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.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TSource extends TableImpl<TSourceRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_source</code>
*/
public static final TSource T_SOURCE = new TSource();
/**
* The class holding records for this type
*/
@Override
public Class<TSourceRecord> getRecordType() {
return TSourceRecord.class;
}
/**
* The column <code>public.t_source.pk_source</code>.
*/
public final TableField<TSourceRecord, Integer> PK_SOURCE = createField(DSL.name("pk_source"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_source.name</code>.
*/
public final TableField<TSourceRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "");
private TSource(Name alias, Table<TSourceRecord> aliased) {
this(alias, aliased, null);
}
private TSource(Name alias, Table<TSourceRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>public.t_source</code> table reference
*/
public TSource(String alias) {
this(DSL.name(alias), T_SOURCE);
}
/**
* Create an aliased <code>public.t_source</code> table reference
*/
public TSource(Name alias) {
this(alias, T_SOURCE);
}
/**
* Create a <code>public.t_source</code> table reference
*/
public TSource() {
this(DSL.name("t_source"), null);
}
public <O extends Record> TSource(Table<O> child, ForeignKey<O, TSourceRecord> key) {
super(child, key, T_SOURCE);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TSourceRecord, Integer> getIdentity() {
return (Identity<TSourceRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TSourceRecord> getPrimaryKey() {
return Keys.T_SOURCE_PKEY;
}
@Override
public List<UniqueKey<TSourceRecord>> getUniqueKeys() {
return Arrays.asList(Keys.T_SOURCE_NAME_KEY);
}
@Override
public TSource as(String alias) {
return new TSource(DSL.name(alias), this);
}
@Override
public TSource as(Name alias) {
return new TSource(alias, this);
}
/**
* Rename this table
*/
@Override
public TSource rename(String name) {
return new TSource(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TSource rename(Name name) {
return new TSource(name, null);
}
}

View File

@ -1,185 +0,0 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Keys;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.TSubjectRecord;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Schema;
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.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class TSubject extends TableImpl<TSubjectRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.t_subject</code>
*/
public static final TSubject T_SUBJECT = new TSubject();
/**
* The class holding records for this type
*/
@Override
public Class<TSubjectRecord> getRecordType() {
return TSubjectRecord.class;
}
/**
* The column <code>public.t_subject.pk_subject</code>.
*/
public final TableField<TSubjectRecord, Integer> PK_SUBJECT = createField(DSL.name("pk_subject"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
/**
* The column <code>public.t_subject.fk_source</code>.
*/
public final TableField<TSubjectRecord, Integer> FK_SOURCE = createField(DSL.name("fk_source"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>public.t_subject.theme</code>.
*/
public final TableField<TSubjectRecord, String> THEME = createField(DSL.name("theme"), SQLDataType.CLOB.nullable(false), this, "");
/**
* The column <code>public.t_subject.subtheme</code>.
*/
public final TableField<TSubjectRecord, String> SUBTHEME = createField(DSL.name("subtheme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.t_subject.book_pages</code>.
*/
public final TableField<TSubjectRecord, String> BOOK_PAGES = createField(DSL.name("book_pages"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.t_subject.worksheets</code>.
*/
public final TableField<TSubjectRecord, String> WORKSHEETS = createField(DSL.name("worksheets"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.t_subject.bibleverse</code>.
*/
public final TableField<TSubjectRecord, String> BIBLEVERSE = createField(DSL.name("bibleverse"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.t_subject.notes</code>.
*/
public final TableField<TSubjectRecord, String> NOTES = createField(DSL.name("notes"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.t_subject.order_nr</code>.
*/
public final TableField<TSubjectRecord, Integer> ORDER_NR = createField(DSL.name("order_nr"), SQLDataType.INTEGER, this, "");
private TSubject(Name alias, Table<TSubjectRecord> aliased) {
this(alias, aliased, null);
}
private TSubject(Name alias, Table<TSubjectRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
}
/**
* Create an aliased <code>public.t_subject</code> table reference
*/
public TSubject(String alias) {
this(DSL.name(alias), T_SUBJECT);
}
/**
* Create an aliased <code>public.t_subject</code> table reference
*/
public TSubject(Name alias) {
this(alias, T_SUBJECT);
}
/**
* Create a <code>public.t_subject</code> table reference
*/
public TSubject() {
this(DSL.name("t_subject"), null);
}
public <O extends Record> TSubject(Table<O> child, ForeignKey<O, TSubjectRecord> key) {
super(child, key, T_SUBJECT);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<TSubjectRecord, Integer> getIdentity() {
return (Identity<TSubjectRecord, Integer>) super.getIdentity();
}
@Override
public UniqueKey<TSubjectRecord> getPrimaryKey() {
return Keys.T_SUBJECT_PKEY;
}
@Override
public List<ForeignKey<TSubjectRecord, ?>> getReferences() {
return Arrays.asList(Keys.T_SUBJECT__T_SUBJECT_FK_SOURCE_FKEY);
}
private transient TSource _tSource;
/**
* Get the implicit join path to the <code>public.t_source</code> table.
*/
public TSource tSource() {
if (_tSource == null)
_tSource = new TSource(this, Keys.T_SUBJECT__T_SUBJECT_FK_SOURCE_FKEY);
return _tSource;
}
@Override
public TSubject as(String alias) {
return new TSubject(DSL.name(alias), this);
}
@Override
public TSubject as(Name alias) {
return new TSubject(alias, this);
}
/**
* Rename this table
*/
@Override
public TSubject rename(String name) {
return new TSubject(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public TSubject rename(Name name) {
return new TSubject(name, null);
}
}

View File

@ -1,139 +0,0 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.VLessonRecord;
import java.time.LocalDate;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class VLesson extends TableImpl<VLessonRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.v_lesson</code>
*/
public static final VLesson V_LESSON = new VLesson();
/**
* The class holding records for this type
*/
@Override
public Class<VLessonRecord> getRecordType() {
return VLessonRecord.class;
}
/**
* The column <code>public.v_lesson.pk_subject</code>.
*/
public final TableField<VLessonRecord, Integer> PK_SUBJECT = createField(DSL.name("pk_subject"), SQLDataType.INTEGER, this, "");
/**
* The column <code>public.v_lesson.source_name</code>.
*/
public final TableField<VLessonRecord, String> SOURCE_NAME = createField(DSL.name("source_name"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson.theme</code>.
*/
public final TableField<VLessonRecord, String> THEME = createField(DSL.name("theme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson.subtheme</code>.
*/
public final TableField<VLessonRecord, String> SUBTHEME = createField(DSL.name("subtheme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson.slots</code>.
*/
public final TableField<VLessonRecord, LocalDate[]> SLOTS = createField(DSL.name("slots"), SQLDataType.LOCALDATE.getArrayDataType(), this, "");
/**
* The column <code>public.v_lesson.order_nr</code>.
*/
public final TableField<VLessonRecord, Integer> ORDER_NR = createField(DSL.name("order_nr"), SQLDataType.INTEGER, this, "");
private VLesson(Name alias, Table<VLessonRecord> aliased) {
this(alias, aliased, null);
}
private VLesson(Name alias, Table<VLessonRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view());
}
/**
* Create an aliased <code>public.v_lesson</code> table reference
*/
public VLesson(String alias) {
this(DSL.name(alias), V_LESSON);
}
/**
* Create an aliased <code>public.v_lesson</code> table reference
*/
public VLesson(Name alias) {
this(alias, V_LESSON);
}
/**
* Create a <code>public.v_lesson</code> table reference
*/
public VLesson() {
this(DSL.name("v_lesson"), null);
}
public <O extends Record> VLesson(Table<O> child, ForeignKey<O, VLessonRecord> key) {
super(child, key, V_LESSON);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public VLesson as(String alias) {
return new VLesson(DSL.name(alias), this);
}
@Override
public VLesson as(Name alias) {
return new VLesson(alias, this);
}
/**
* Rename this table
*/
@Override
public VLesson rename(String name) {
return new VLesson(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public VLesson rename(Name name) {
return new VLesson(name, null);
}
}

View File

@ -1,127 +0,0 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.VLessonMissingRecord;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class VLessonMissing extends TableImpl<VLessonMissingRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.v_lesson_missing</code>
*/
public static final VLessonMissing V_LESSON_MISSING = new VLessonMissing();
/**
* The class holding records for this type
*/
@Override
public Class<VLessonMissingRecord> getRecordType() {
return VLessonMissingRecord.class;
}
/**
* The column <code>public.v_lesson_missing.source_name</code>.
*/
public final TableField<VLessonMissingRecord, String> SOURCE_NAME = createField(DSL.name("source_name"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson_missing.theme</code>.
*/
public final TableField<VLessonMissingRecord, String> THEME = createField(DSL.name("theme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson_missing.subtheme</code>.
*/
public final TableField<VLessonMissingRecord, String> SUBTHEME = createField(DSL.name("subtheme"), SQLDataType.CLOB, this, "");
/**
* The column <code>public.v_lesson_missing.order_nr</code>.
*/
public final TableField<VLessonMissingRecord, Integer> ORDER_NR = createField(DSL.name("order_nr"), SQLDataType.INTEGER, this, "");
private VLessonMissing(Name alias, Table<VLessonMissingRecord> aliased) {
this(alias, aliased, null);
}
private VLessonMissing(Name alias, Table<VLessonMissingRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view());
}
/**
* Create an aliased <code>public.v_lesson_missing</code> table reference
*/
public VLessonMissing(String alias) {
this(DSL.name(alias), V_LESSON_MISSING);
}
/**
* Create an aliased <code>public.v_lesson_missing</code> table reference
*/
public VLessonMissing(Name alias) {
this(alias, V_LESSON_MISSING);
}
/**
* Create a <code>public.v_lesson_missing</code> table reference
*/
public VLessonMissing() {
this(DSL.name("v_lesson_missing"), null);
}
public <O extends Record> VLessonMissing(Table<O> child, ForeignKey<O, VLessonMissingRecord> key) {
super(child, key, V_LESSON_MISSING);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public VLessonMissing as(String alias) {
return new VLessonMissing(DSL.name(alias), this);
}
@Override
public VLessonMissing as(Name alias) {
return new VLessonMissing(alias, this);
}
/**
* Rename this table
*/
@Override
public VLessonMissing rename(String name) {
return new VLessonMissing(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public VLessonMissing rename(Name name) {
return new VLessonMissing(name, null);
}
}

View File

@ -1,112 +0,0 @@
/*
* This file is generated by jOOQ.
*/
package de.jottyfan.bico.db.tables;
import de.jottyfan.bico.db.Public;
import de.jottyfan.bico.db.tables.records.VVersionRecord;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class VVersion extends TableImpl<VVersionRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.v_version</code>
*/
public static final VVersion V_VERSION = new VVersion();
/**
* The class holding records for this type
*/
@Override
public Class<VVersionRecord> getRecordType() {
return VVersionRecord.class;
}
/**
* The column <code>public.v_version.version</code>.
*/
public final TableField<VVersionRecord, Integer> VERSION = createField(DSL.name("version"), SQLDataType.INTEGER, this, "");
private VVersion(Name alias, Table<VVersionRecord> aliased) {
this(alias, aliased, null);
}
private VVersion(Name alias, Table<VVersionRecord> aliased, Field<?>[] parameters) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view());
}
/**
* Create an aliased <code>public.v_version</code> table reference
*/
public VVersion(String alias) {
this(DSL.name(alias), V_VERSION);
}
/**
* Create an aliased <code>public.v_version</code> table reference
*/
public VVersion(Name alias) {
this(alias, V_VERSION);
}
/**
* Create a <code>public.v_version</code> table reference
*/
public VVersion() {
this(DSL.name("v_version"), null);
}
public <O extends Record> VVersion(Table<O> child, ForeignKey<O, VVersionRecord> key) {
super(child, key, V_VERSION);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public VVersion as(String alias) {
return new VVersion(DSL.name(alias), this);
}
@Override
public VVersion as(Name alias) {
return new VVersion(alias, this);
}
/**
* Rename this table
*/
@Override
public VVersion rename(String name) {
return new VVersion(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public VVersion rename(Name name) {
return new VVersion(name, null);
}
}

22
src/main/resources/v5.sql Normal file
View File

@ -0,0 +1,22 @@
create schema camp;
create type camp.enum_camp as enum ('Gemeindefreizeit 2025');
create type camp.enum_sex as enum ('männlich', 'weiblich');
create table camp.t_registration(
created timestamp without time zone default current_timestamp,
pk_registration int not null primary key generated always as identity,
registrator text not null,
camp camp.enum_camp not null,
forename text not null,
surname text not null,
sex camp.enum_sex not null
);
create view camp.v_participant as
select sum(case when sex = 'männlich' then 1 else 0 end) as males,
sum(case when sex = 'weiblich' then 1 else 0 end) as females
from camp.t_registration;
create or replace view v_version as
select 5 as version;