diff --git a/.classpath b/.classpath index e16509f..bb5e6bd 100644 --- a/.classpath +++ b/.classpath @@ -6,7 +6,13 @@ - + + + + + + + diff --git a/.settings/org.eclipse.buildship.core.prefs b/.settings/org.eclipse.buildship.core.prefs index e889521..e479558 100644 --- a/.settings/org.eclipse.buildship.core.prefs +++ b/.settings/org.eclipse.buildship.core.prefs @@ -1,2 +1,13 @@ +arguments= +auto.sync=false +build.scans.enabled=false +connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER) connection.project.dir= eclipse.preferences.version=1 +gradle.user.home= +java.home= +jvm.arguments= +offline.mode=false +override.workspace.settings=false +show.console.view=false +show.executions.view=false diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs index 18ad895..626e0e1 100644 --- a/.settings/org.eclipse.jdt.core.prefs +++ b/.settings/org.eclipse.jdt.core.prefs @@ -1,4 +1,4 @@ eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 -org.eclipse.jdt.core.compiler.compliance=11 -org.eclipse.jdt.core.compiler.source=11 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 +org.eclipse.jdt.core.compiler.compliance=17 +org.eclipse.jdt.core.compiler.source=17 diff --git a/build.gradle b/build.gradle index 3f15656..deacb7d 100644 --- a/build.gradle +++ b/build.gradle @@ -22,7 +22,7 @@ apply plugin: 'java' apply plugin: 'maven-publish' group = 'de.jottyfan' -version = '2023.12.1' +version = '2024.02.22' description = """COJooq""" @@ -56,7 +56,7 @@ jooq { logging = Logging.WARN jdbc { driver = 'org.postgresql.Driver' - url = 'jdbc:postgresql://localhost:5432/testcamporganizer' + url = 'jdbc:postgresql://localhost:5432/camporganizer' user = 'jooq' password = 'jooq' properties { @@ -70,7 +70,7 @@ jooq { name = 'org.jooq.codegen.DefaultGenerator' database { name = 'org.jooq.meta.postgres.PostgresDatabase' - inputSchema = 'camp' + inputSchema = 'public' } generate { deprecated = false diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/DefaultCatalog.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/DefaultCatalog.java index 253db3c..9a2605a 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/DefaultCatalog.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/DefaultCatalog.java @@ -26,9 +26,9 @@ public class DefaultCatalog extends CatalogImpl { public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog(); /** - * The schema camp. + * The schema public. */ - public final Camp CAMP = Camp.CAMP; + public final Public PUBLIC = Public.PUBLIC; /** * No further instances allowed @@ -40,7 +40,7 @@ public class DefaultCatalog extends CatalogImpl { @Override public final List getSchemas() { return Arrays.asList( - Camp.CAMP + Public.PUBLIC ); } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/Keys.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/Keys.java index 8039e1a..1855e74 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/Keys.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/Keys.java @@ -42,7 +42,7 @@ import org.jooq.impl.Internal; /** * A class modelling foreign key relationships and constraints of tables in - * camp. + * public. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Keys { @@ -52,8 +52,8 @@ public class Keys { // ------------------------------------------------------------------------- public static final UniqueKey T_CAMP_PKEY = Internal.createUniqueKey(TCamp.T_CAMP, DSL.name("t_camp_pkey"), new TableField[] { TCamp.T_CAMP.PK }, true); + public static final UniqueKey T_CAMPDOCUMENT_FK_CAMP_FK_DOCUMENT_KEY = Internal.createUniqueKey(TCampdocument.T_CAMPDOCUMENT, DSL.name("t_campdocument_fk_camp_fk_document_key"), new TableField[] { TCampdocument.T_CAMPDOCUMENT.FK_CAMP, TCampdocument.T_CAMPDOCUMENT.FK_DOCUMENT }, true); public static final UniqueKey T_CAMPDOCUMENT_PKEY = Internal.createUniqueKey(TCampdocument.T_CAMPDOCUMENT, DSL.name("t_campdocument_pkey"), new TableField[] { TCampdocument.T_CAMPDOCUMENT.PK }, true); - public static final UniqueKey UK_CAMPDOCUMENT = Internal.createUniqueKey(TCampdocument.T_CAMPDOCUMENT, DSL.name("uk_campdocument"), new TableField[] { TCampdocument.T_CAMPDOCUMENT.FK_CAMP, TCampdocument.T_CAMPDOCUMENT.FK_DOCUMENT }, true); public static final UniqueKey T_CAMPPROFILE_FK_PROFILE_FK_CAMP_MODULE_KEY = Internal.createUniqueKey(TCampprofile.T_CAMPPROFILE, DSL.name("t_campprofile_fk_profile_fk_camp_module_key"), new TableField[] { TCampprofile.T_CAMPPROFILE.FK_PROFILE, TCampprofile.T_CAMPPROFILE.FK_CAMP, TCampprofile.T_CAMPPROFILE.MODULE }, true); public static final UniqueKey T_CAMPPROFILE_PKEY = Internal.createUniqueKey(TCampprofile.T_CAMPPROFILE, DSL.name("t_campprofile_pkey"), new TableField[] { TCampprofile.T_CAMPPROFILE.PK }, true); public static final UniqueKey T_DOCUMENT_NAME_KEY = Internal.createUniqueKey(TDocument.T_DOCUMENT, DSL.name("t_document_name_key"), new TableField[] { TDocument.T_DOCUMENT.NAME }, true); @@ -61,8 +61,8 @@ public class Keys { public static final UniqueKey T_DOCUMENTROLE_FK_DOCUMENT_CAMPROLE_KEY = Internal.createUniqueKey(TDocumentrole.T_DOCUMENTROLE, DSL.name("t_documentrole_fk_document_camprole_key"), new TableField[] { TDocumentrole.T_DOCUMENTROLE.FK_DOCUMENT, TDocumentrole.T_DOCUMENTROLE.CAMPROLE }, true); public static final UniqueKey T_DOCUMENTROLE_PKEY = Internal.createUniqueKey(TDocumentrole.T_DOCUMENTROLE, DSL.name("t_documentrole_pkey"), new TableField[] { TDocumentrole.T_DOCUMENTROLE.PK }, true); public static final UniqueKey T_LOCATION_PKEY = Internal.createUniqueKey(TLocation.T_LOCATION, DSL.name("t_location_pkey"), new TableField[] { TLocation.T_LOCATION.PK }, true); + public static final UniqueKey T_PERSON_FORENAME_SURNAME_BIRTHDATE_FK_CAMP_KEY = Internal.createUniqueKey(TPerson.T_PERSON, DSL.name("t_person_forename_surname_birthdate_fk_camp_key"), new TableField[] { TPerson.T_PERSON.FORENAME, TPerson.T_PERSON.SURNAME, TPerson.T_PERSON.BIRTHDATE, TPerson.T_PERSON.FK_CAMP }, true); public static final UniqueKey T_PERSON_PKEY = Internal.createUniqueKey(TPerson.T_PERSON, DSL.name("t_person_pkey"), new TableField[] { TPerson.T_PERSON.PK }, true); - public static final UniqueKey UK_PERSON = Internal.createUniqueKey(TPerson.T_PERSON, DSL.name("uk_person"), new TableField[] { TPerson.T_PERSON.FORENAME, TPerson.T_PERSON.SURNAME, TPerson.T_PERSON.BIRTHDATE, TPerson.T_PERSON.FK_CAMP }, true); public static final UniqueKey T_PERSONDOCUMENT_FK_PERSON_NAME_KEY = Internal.createUniqueKey(TPersondocument.T_PERSONDOCUMENT, DSL.name("t_persondocument_fk_person_name_key"), new TableField[] { TPersondocument.T_PERSONDOCUMENT.FK_PERSON, TPersondocument.T_PERSONDOCUMENT.NAME }, true); public static final UniqueKey T_PERSONDOCUMENT_PKEY = Internal.createUniqueKey(TPersondocument.T_PERSONDOCUMENT, DSL.name("t_persondocument_pkey"), new TableField[] { TPersondocument.T_PERSONDOCUMENT.PK }, true); public static final UniqueKey T_PROFILE_PKEY = Internal.createUniqueKey(TProfile.T_PROFILE, DSL.name("t_profile_pkey"), new TableField[] { TProfile.T_PROFILE.PK }, true); @@ -93,4 +93,6 @@ public class Keys { public static final ForeignKey T_PERSONDOCUMENT__T_PERSONDOCUMENT_FK_PERSON_FKEY = Internal.createForeignKey(TPersondocument.T_PERSONDOCUMENT, DSL.name("t_persondocument_fk_person_fkey"), new TableField[] { TPersondocument.T_PERSONDOCUMENT.FK_PERSON }, Keys.T_PERSON_PKEY, new TableField[] { TPerson.T_PERSON.PK }, true); public static final ForeignKey T_PROFILEROLE__T_PROFILEROLE_FK_PROFILE_FKEY = Internal.createForeignKey(TProfilerole.T_PROFILEROLE, DSL.name("t_profilerole_fk_profile_fkey"), new TableField[] { TProfilerole.T_PROFILEROLE.FK_PROFILE }, Keys.T_PROFILE_PKEY, new TableField[] { TProfile.T_PROFILE.PK }, true); public static final ForeignKey T_SALES__T_SALES_FK_CAMP_FKEY = Internal.createForeignKey(TSales.T_SALES, DSL.name("t_sales_fk_camp_fkey"), new TableField[] { TSales.T_SALES.FK_CAMP }, Keys.T_CAMP_PKEY, new TableField[] { TCamp.T_CAMP.PK }, true); + public static final ForeignKey T_SALESCONTENT__T_SALESCONTENT_FK_SALES_FKEY = Internal.createForeignKey(TSalescontent.T_SALESCONTENT, DSL.name("t_salescontent_fk_sales_fkey"), new TableField[] { TSalescontent.T_SALESCONTENT.FK_SALES }, Keys.T_SALES_PKEY, new TableField[] { TSales.T_SALES.PK }, true); + public static final ForeignKey T_SALESCONTENT__T_SALESCONTENT_FK_SALESCONTENTTYPE_FKEY = Internal.createForeignKey(TSalescontent.T_SALESCONTENT, DSL.name("t_salescontent_fk_salescontenttype_fkey"), new TableField[] { TSalescontent.T_SALESCONTENT.FK_SALESCONTENTTYPE }, Keys.T_SALESCONTENTTYPE_PKEY, new TableField[] { TSalescontenttype.T_SALESCONTENTTYPE.NAME }, true); } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/Camp.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/Public.java similarity index 70% rename from src/main/java/de/jottyfan/camporganizer/db/jooq/Camp.java rename to src/main/java/de/jottyfan/camporganizer/db/jooq/Public.java index 184a28c..2f4e67f 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/Camp.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/Public.java @@ -18,6 +18,7 @@ import de.jottyfan.camporganizer.db.jooq.tables.TRss; import de.jottyfan.camporganizer.db.jooq.tables.TSales; import de.jottyfan.camporganizer.db.jooq.tables.TSalescontent; import de.jottyfan.camporganizer.db.jooq.tables.TSalescontenttype; +import de.jottyfan.camporganizer.db.jooq.tables.VAdult; import de.jottyfan.camporganizer.db.jooq.tables.VBudget; import de.jottyfan.camporganizer.db.jooq.tables.VCamp; import de.jottyfan.camporganizer.db.jooq.tables.VCampBudget; @@ -25,6 +26,8 @@ import de.jottyfan.camporganizer.db.jooq.tables.VCampBudgetYear; import de.jottyfan.camporganizer.db.jooq.tables.VCampdocument; import de.jottyfan.camporganizer.db.jooq.tables.VCamprole; import de.jottyfan.camporganizer.db.jooq.tables.VDocument; +import de.jottyfan.camporganizer.db.jooq.tables.VDsgvoDeleteCandidate; +import de.jottyfan.camporganizer.db.jooq.tables.VFeeder; import de.jottyfan.camporganizer.db.jooq.tables.VProfile; import de.jottyfan.camporganizer.db.jooq.tables.VRegistration; import de.jottyfan.camporganizer.db.jooq.tables.VRole; @@ -43,150 +46,165 @@ import org.jooq.impl.SchemaImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class Camp extends SchemaImpl { +public class Public extends SchemaImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp + * The reference instance of public */ - public static final Camp CAMP = new Camp(); + public static final Public PUBLIC = new Public(); /** - * The table camp.t_camp. + * The table public.t_camp. */ public final TCamp T_CAMP = TCamp.T_CAMP; /** - * The table camp.t_campdocument. + * The table public.t_campdocument. */ public final TCampdocument T_CAMPDOCUMENT = TCampdocument.T_CAMPDOCUMENT; /** - * The table camp.t_campprofile. + * The table public.t_campprofile. */ public final TCampprofile T_CAMPPROFILE = TCampprofile.T_CAMPPROFILE; /** - * The table camp.t_document. + * The table public.t_document. */ public final TDocument T_DOCUMENT = TDocument.T_DOCUMENT; /** - * The table camp.t_documentrole. + * The table public.t_documentrole. */ public final TDocumentrole T_DOCUMENTROLE = TDocumentrole.T_DOCUMENTROLE; /** - * The table camp.t_location. + * The table public.t_location. */ public final TLocation T_LOCATION = TLocation.T_LOCATION; /** - * The table camp.t_person. + * The table public.t_person. */ public final TPerson T_PERSON = TPerson.T_PERSON; /** - * The table camp.t_persondocument. + * The table public.t_persondocument. */ public final TPersondocument T_PERSONDOCUMENT = TPersondocument.T_PERSONDOCUMENT; /** - * The table camp.t_profile. + * The table public.t_profile. */ public final TProfile T_PROFILE = TProfile.T_PROFILE; /** - * The table camp.t_profilerole. + * The table public.t_profilerole. */ public final TProfilerole T_PROFILEROLE = TProfilerole.T_PROFILEROLE; /** - * The table camp.t_rss. + * The table public.t_rss. */ public final TRss T_RSS = TRss.T_RSS; /** - * The table camp.t_sales. + * The table public.t_sales. */ public final TSales T_SALES = TSales.T_SALES; /** - * The table camp.t_salescontent. + * The table public.t_salescontent. */ public final TSalescontent T_SALESCONTENT = TSalescontent.T_SALESCONTENT; /** - * The table camp.t_salescontenttype. + * The table public.t_salescontenttype. */ public final TSalescontenttype T_SALESCONTENTTYPE = TSalescontenttype.T_SALESCONTENTTYPE; /** - * The table camp.v_budget. + * The table public.v_adult. + */ + public final VAdult V_ADULT = VAdult.V_ADULT; + + /** + * The table public.v_budget. */ public final VBudget V_BUDGET = VBudget.V_BUDGET; /** - * The table camp.v_camp. + * The table public.v_camp. */ public final VCamp V_CAMP = VCamp.V_CAMP; /** - * The table camp.v_camp_budget. + * The table public.v_camp_budget. */ public final VCampBudget V_CAMP_BUDGET = VCampBudget.V_CAMP_BUDGET; /** - * The table camp.v_camp_budget_year. + * The table public.v_camp_budget_year. */ public final VCampBudgetYear V_CAMP_BUDGET_YEAR = VCampBudgetYear.V_CAMP_BUDGET_YEAR; /** - * The table camp.v_campdocument. + * The table public.v_campdocument. */ public final VCampdocument V_CAMPDOCUMENT = VCampdocument.V_CAMPDOCUMENT; /** - * The table camp.v_camprole. + * The table public.v_camprole. */ public final VCamprole V_CAMPROLE = VCamprole.V_CAMPROLE; /** - * The table camp.v_document. + * The table public.v_document. */ public final VDocument V_DOCUMENT = VDocument.V_DOCUMENT; /** - * The table camp.v_profile. + * The table public.v_dsgvo_delete_candidate. + */ + public final VDsgvoDeleteCandidate V_DSGVO_DELETE_CANDIDATE = VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE; + + /** + * The table public.v_feeder. + */ + public final VFeeder V_FEEDER = VFeeder.V_FEEDER; + + /** + * The table public.v_profile. */ public final VProfile V_PROFILE = VProfile.V_PROFILE; /** - * The table camp.v_registration. + * The table public.v_registration. */ public final VRegistration V_REGISTRATION = VRegistration.V_REGISTRATION; /** - * The table camp.v_role. + * The table public.v_role. */ public final VRole V_ROLE = VRole.V_ROLE; /** - * The table camp.v_sales. + * The table public.v_sales. */ public final VSales V_SALES = VSales.V_SALES; /** - * The table camp.v_version. + * The table public.v_version. */ public final VVersion V_VERSION = VVersion.V_VERSION; /** * No further instances allowed */ - private Camp() { - super("camp", null); + private Public() { + super("public", null); } @@ -212,6 +230,7 @@ public class Camp extends SchemaImpl { TSales.T_SALES, TSalescontent.T_SALESCONTENT, TSalescontenttype.T_SALESCONTENTTYPE, + VAdult.V_ADULT, VBudget.V_BUDGET, VCamp.V_CAMP, VCampBudget.V_CAMP_BUDGET, @@ -219,6 +238,8 @@ public class Camp extends SchemaImpl { VCampdocument.V_CAMPDOCUMENT, VCamprole.V_CAMPROLE, VDocument.V_DOCUMENT, + VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE, + VFeeder.V_FEEDER, VProfile.V_PROFILE, VRegistration.V_REGISTRATION, VRole.V_ROLE, diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/Tables.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/Tables.java index 811f8a0..2a115ac 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/Tables.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/Tables.java @@ -18,6 +18,7 @@ import de.jottyfan.camporganizer.db.jooq.tables.TRss; import de.jottyfan.camporganizer.db.jooq.tables.TSales; import de.jottyfan.camporganizer.db.jooq.tables.TSalescontent; import de.jottyfan.camporganizer.db.jooq.tables.TSalescontenttype; +import de.jottyfan.camporganizer.db.jooq.tables.VAdult; import de.jottyfan.camporganizer.db.jooq.tables.VBudget; import de.jottyfan.camporganizer.db.jooq.tables.VCamp; import de.jottyfan.camporganizer.db.jooq.tables.VCampBudget; @@ -25,6 +26,8 @@ import de.jottyfan.camporganizer.db.jooq.tables.VCampBudgetYear; import de.jottyfan.camporganizer.db.jooq.tables.VCampdocument; import de.jottyfan.camporganizer.db.jooq.tables.VCamprole; import de.jottyfan.camporganizer.db.jooq.tables.VDocument; +import de.jottyfan.camporganizer.db.jooq.tables.VDsgvoDeleteCandidate; +import de.jottyfan.camporganizer.db.jooq.tables.VFeeder; import de.jottyfan.camporganizer.db.jooq.tables.VProfile; import de.jottyfan.camporganizer.db.jooq.tables.VRegistration; import de.jottyfan.camporganizer.db.jooq.tables.VRole; @@ -33,138 +36,153 @@ import de.jottyfan.camporganizer.db.jooq.tables.VVersion; /** - * Convenience access to all tables in camp. + * Convenience access to all tables in public. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Tables { /** - * The table camp.t_camp. + * The table public.t_camp. */ public static final TCamp T_CAMP = TCamp.T_CAMP; /** - * The table camp.t_campdocument. + * The table public.t_campdocument. */ public static final TCampdocument T_CAMPDOCUMENT = TCampdocument.T_CAMPDOCUMENT; /** - * The table camp.t_campprofile. + * The table public.t_campprofile. */ public static final TCampprofile T_CAMPPROFILE = TCampprofile.T_CAMPPROFILE; /** - * The table camp.t_document. + * The table public.t_document. */ public static final TDocument T_DOCUMENT = TDocument.T_DOCUMENT; /** - * The table camp.t_documentrole. + * The table public.t_documentrole. */ public static final TDocumentrole T_DOCUMENTROLE = TDocumentrole.T_DOCUMENTROLE; /** - * The table camp.t_location. + * The table public.t_location. */ public static final TLocation T_LOCATION = TLocation.T_LOCATION; /** - * The table camp.t_person. + * The table public.t_person. */ public static final TPerson T_PERSON = TPerson.T_PERSON; /** - * The table camp.t_persondocument. + * The table public.t_persondocument. */ public static final TPersondocument T_PERSONDOCUMENT = TPersondocument.T_PERSONDOCUMENT; /** - * The table camp.t_profile. + * The table public.t_profile. */ public static final TProfile T_PROFILE = TProfile.T_PROFILE; /** - * The table camp.t_profilerole. + * The table public.t_profilerole. */ public static final TProfilerole T_PROFILEROLE = TProfilerole.T_PROFILEROLE; /** - * The table camp.t_rss. + * The table public.t_rss. */ public static final TRss T_RSS = TRss.T_RSS; /** - * The table camp.t_sales. + * The table public.t_sales. */ public static final TSales T_SALES = TSales.T_SALES; /** - * The table camp.t_salescontent. + * The table public.t_salescontent. */ public static final TSalescontent T_SALESCONTENT = TSalescontent.T_SALESCONTENT; /** - * The table camp.t_salescontenttype. + * The table public.t_salescontenttype. */ public static final TSalescontenttype T_SALESCONTENTTYPE = TSalescontenttype.T_SALESCONTENTTYPE; /** - * The table camp.v_budget. + * The table public.v_adult. + */ + public static final VAdult V_ADULT = VAdult.V_ADULT; + + /** + * The table public.v_budget. */ public static final VBudget V_BUDGET = VBudget.V_BUDGET; /** - * The table camp.v_camp. + * The table public.v_camp. */ public static final VCamp V_CAMP = VCamp.V_CAMP; /** - * The table camp.v_camp_budget. + * The table public.v_camp_budget. */ public static final VCampBudget V_CAMP_BUDGET = VCampBudget.V_CAMP_BUDGET; /** - * The table camp.v_camp_budget_year. + * The table public.v_camp_budget_year. */ public static final VCampBudgetYear V_CAMP_BUDGET_YEAR = VCampBudgetYear.V_CAMP_BUDGET_YEAR; /** - * The table camp.v_campdocument. + * The table public.v_campdocument. */ public static final VCampdocument V_CAMPDOCUMENT = VCampdocument.V_CAMPDOCUMENT; /** - * The table camp.v_camprole. + * The table public.v_camprole. */ public static final VCamprole V_CAMPROLE = VCamprole.V_CAMPROLE; /** - * The table camp.v_document. + * The table public.v_document. */ public static final VDocument V_DOCUMENT = VDocument.V_DOCUMENT; /** - * The table camp.v_profile. + * The table public.v_dsgvo_delete_candidate. + */ + public static final VDsgvoDeleteCandidate V_DSGVO_DELETE_CANDIDATE = VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE; + + /** + * The table public.v_feeder. + */ + public static final VFeeder V_FEEDER = VFeeder.V_FEEDER; + + /** + * The table public.v_profile. */ public static final VProfile V_PROFILE = VProfile.V_PROFILE; /** - * The table camp.v_registration. + * The table public.v_registration. */ public static final VRegistration V_REGISTRATION = VRegistration.V_REGISTRATION; /** - * The table camp.v_role. + * The table public.v_role. */ public static final VRole V_ROLE = VRole.V_ROLE; /** - * The table camp.v_sales. + * The table public.v_sales. */ public static final VSales V_SALES = VSales.V_SALES; /** - * The table camp.v_version. + * The table public.v_version. */ public static final VVersion V_VERSION = VVersion.V_VERSION; } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumCamprole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumCamprole.java index 9ed193d..58ffb96 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumCamprole.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumCamprole.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.enums; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import org.jooq.Catalog; import org.jooq.EnumType; @@ -40,7 +40,7 @@ public enum EnumCamprole implements EnumType { @Override public Schema getSchema() { - return Camp.CAMP; + return Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumDocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumDocument.java index c121b66..44af647 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumDocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumDocument.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.enums; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import org.jooq.Catalog; import org.jooq.EnumType; @@ -36,7 +36,7 @@ public enum EnumDocument implements EnumType { @Override public Schema getSchema() { - return Camp.CAMP; + return Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumFiletype.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumFiletype.java index a987120..c4101e5 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumFiletype.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumFiletype.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.enums; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import org.jooq.Catalog; import org.jooq.EnumType; @@ -36,7 +36,7 @@ public enum EnumFiletype implements EnumType { @Override public Schema getSchema() { - return Camp.CAMP; + return Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumModule.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumModule.java index 3c0ae9b..d99c9c2 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumModule.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumModule.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.enums; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import org.jooq.Catalog; import org.jooq.EnumType; @@ -34,7 +34,7 @@ public enum EnumModule implements EnumType { @Override public Schema getSchema() { - return Camp.CAMP; + return Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumRole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumRole.java index 74eafbc..4c19535 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumRole.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumRole.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.enums; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import org.jooq.Catalog; import org.jooq.EnumType; @@ -42,7 +42,7 @@ public enum EnumRole implements EnumType { @Override public Schema getSchema() { - return Camp.CAMP; + return Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumSex.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumSex.java index 3bbec97..d3770f3 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumSex.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumSex.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.enums; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import org.jooq.Catalog; import org.jooq.EnumType; @@ -34,7 +34,7 @@ public enum EnumSex implements EnumType { @Override public Schema getSchema() { - return Camp.CAMP; + return Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCamp.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCamp.java index bb03940..ae69609 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCamp.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCamp.java @@ -4,8 +4,8 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.tables.TCampdocument.TCampdocumentPath; import de.jottyfan.camporganizer.db.jooq.tables.TCampprofile.TCampprofilePath; import de.jottyfan.camporganizer.db.jooq.tables.TDocument.TDocumentPath; @@ -52,7 +52,7 @@ public class TCamp extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.t_camp + * The reference instance of public.t_camp */ public static final TCamp T_CAMP = new TCamp(); @@ -65,65 +65,85 @@ public class TCamp extends TableImpl { } /** - * The column camp.t_camp.pk. + * The column public.t_camp.pk. */ public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** - * The column camp.t_camp.name. + * The column public.t_camp.name. */ public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, ""); /** - * The column camp.t_camp.arrive. + * The column public.t_camp.arrive. */ public final TableField ARRIVE = createField(DSL.name("arrive"), SQLDataType.LOCALDATETIME(6).nullable(false), this, ""); /** - * The column camp.t_camp.depart. + * The column public.t_camp.depart. */ public final TableField DEPART = createField(DSL.name("depart"), SQLDataType.LOCALDATETIME(6).nullable(false), this, ""); /** - * The column camp.t_camp.fk_location. + * The column public.t_camp.fk_location. */ public final TableField FK_LOCATION = createField(DSL.name("fk_location"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column camp.t_camp.min_age. + * The column public.t_camp.min_age. */ public final TableField MIN_AGE = createField(DSL.name("min_age"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column camp.t_camp.max_age. + * The column public.t_camp.max_age. */ public final TableField MAX_AGE = createField(DSL.name("max_age"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column camp.t_camp.price. + * The column public.t_camp.price. */ public final TableField PRICE = createField(DSL.name("price"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_camp.countries. + * The column public.t_camp.countries. */ public final TableField COUNTRIES = createField(DSL.name("countries"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_camp.fk_document. + * The column public.t_camp.fk_document. */ public final TableField FK_DOCUMENT = createField(DSL.name("fk_document"), SQLDataType.INTEGER, this, ""); /** - * The column camp.t_camp.lock_sales. + * The column public.t_camp.lock_sales. */ public final TableField LOCK_SALES = createField(DSL.name("lock_sales"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); /** - * The column camp.t_camp.fk_profile. + * The column public.t_camp.fk_profile. */ public final TableField FK_PROFILE = createField(DSL.name("fk_profile"), SQLDataType.INTEGER.nullable(false), this, ""); + /** + * The column public.t_camp.beds_male. + */ + public final TableField BEDS_MALE = createField(DSL.name("beds_male"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.t_camp.beds_female. + */ + public final TableField BEDS_FEMALE = createField(DSL.name("beds_female"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.t_camp.blocked_beds_male. + */ + public final TableField BLOCKED_BEDS_MALE = createField(DSL.name("blocked_beds_male"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.t_camp.blocked_beds_female. + */ + public final TableField BLOCKED_BEDS_FEMALE = createField(DSL.name("blocked_beds_female"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + private TCamp(Name alias, Table aliased) { this(alias, aliased, (Field[]) null, null); } @@ -133,21 +153,21 @@ public class TCamp extends TableImpl { } /** - * Create an aliased camp.t_camp table reference + * Create an aliased public.t_camp table reference */ public TCamp(String alias) { this(DSL.name(alias), T_CAMP); } /** - * Create an aliased camp.t_camp table reference + * Create an aliased public.t_camp table reference */ public TCamp(Name alias) { this(alias, T_CAMP); } /** - * Create a camp.t_camp table reference + * Create a public.t_camp table reference */ public TCamp() { this(DSL.name("t_camp"), null); @@ -186,7 +206,7 @@ public class TCamp extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override @@ -207,7 +227,7 @@ public class TCamp extends TableImpl { private transient TLocationPath _tLocation; /** - * Get the implicit join path to the camp.t_location table. + * Get the implicit join path to the public.t_location table. */ public TLocationPath tLocation() { if (_tLocation == null) @@ -219,7 +239,7 @@ public class TCamp extends TableImpl { private transient TDocumentPath _tDocument; /** - * Get the implicit join path to the camp.t_document table. + * Get the implicit join path to the public.t_document table. */ public TDocumentPath tDocument() { if (_tDocument == null) @@ -231,7 +251,7 @@ public class TCamp extends TableImpl { private transient TProfilePath _tProfile; /** - * Get the implicit join path to the camp.t_profile table. + * Get the implicit join path to the public.t_profile table. */ public TProfilePath tProfile() { if (_tProfile == null) @@ -244,7 +264,7 @@ public class TCamp extends TableImpl { /** * Get the implicit to-many join path to the - * camp.t_campdocument table + * public.t_campdocument table */ public TCampdocumentPath tCampdocument() { if (_tCampdocument == null) @@ -256,8 +276,8 @@ public class TCamp extends TableImpl { private transient TCampprofilePath _tCampprofile; /** - * Get the implicit to-many join path to the camp.t_campprofile - * table + * Get the implicit to-many join path to the + * public.t_campprofile table */ public TCampprofilePath tCampprofile() { if (_tCampprofile == null) @@ -269,7 +289,7 @@ public class TCamp extends TableImpl { private transient TPersonPath _tPerson; /** - * Get the implicit to-many join path to the camp.t_person + * Get the implicit to-many join path to the public.t_person * table */ public TPersonPath tPerson() { @@ -282,7 +302,8 @@ public class TCamp extends TableImpl { private transient TSalesPath _tSales; /** - * Get the implicit to-many join path to the camp.t_sales table + * Get the implicit to-many join path to the public.t_sales + * table */ public TSalesPath tSales() { if (_tSales == null) diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCampdocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCampdocument.java index 219cce5..cca3da8 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCampdocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCampdocument.java @@ -4,8 +4,8 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.tables.TCamp.TCampPath; import de.jottyfan.camporganizer.db.jooq.tables.TDocument.TDocumentPath; import de.jottyfan.camporganizer.db.jooq.tables.records.TCampdocumentRecord; @@ -46,7 +46,7 @@ public class TCampdocument extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.t_campdocument + * The reference instance of public.t_campdocument */ public static final TCampdocument T_CAMPDOCUMENT = new TCampdocument(); @@ -59,17 +59,17 @@ public class TCampdocument extends TableImpl { } /** - * The column camp.t_campdocument.pk. + * The column public.t_campdocument.pk. */ public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** - * The column camp.t_campdocument.fk_camp. + * The column public.t_campdocument.fk_camp. */ public final TableField FK_CAMP = createField(DSL.name("fk_camp"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column camp.t_campdocument.fk_document. + * The column public.t_campdocument.fk_document. */ public final TableField FK_DOCUMENT = createField(DSL.name("fk_document"), SQLDataType.INTEGER.nullable(false), this, ""); @@ -82,21 +82,21 @@ public class TCampdocument extends TableImpl { } /** - * Create an aliased camp.t_campdocument table reference + * Create an aliased public.t_campdocument table reference */ public TCampdocument(String alias) { this(DSL.name(alias), T_CAMPDOCUMENT); } /** - * Create an aliased camp.t_campdocument table reference + * Create an aliased public.t_campdocument table reference */ public TCampdocument(Name alias) { this(alias, T_CAMPDOCUMENT); } /** - * Create a camp.t_campdocument table reference + * Create a public.t_campdocument table reference */ public TCampdocument() { this(DSL.name("t_campdocument"), null); @@ -135,7 +135,7 @@ public class TCampdocument extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override @@ -150,7 +150,7 @@ public class TCampdocument extends TableImpl { @Override public List> getUniqueKeys() { - return Arrays.asList(Keys.UK_CAMPDOCUMENT); + return Arrays.asList(Keys.T_CAMPDOCUMENT_FK_CAMP_FK_DOCUMENT_KEY); } @Override @@ -161,7 +161,7 @@ public class TCampdocument extends TableImpl { private transient TCampPath _tCamp; /** - * Get the implicit join path to the camp.t_camp table. + * Get the implicit join path to the public.t_camp table. */ public TCampPath tCamp() { if (_tCamp == null) @@ -173,7 +173,7 @@ public class TCampdocument extends TableImpl { private transient TDocumentPath _tDocument; /** - * Get the implicit join path to the camp.t_document table. + * Get the implicit join path to the public.t_document table. */ public TDocumentPath tDocument() { if (_tDocument == null) diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCampprofile.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCampprofile.java index 9748fa7..353d063 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCampprofile.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCampprofile.java @@ -4,8 +4,8 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.enums.EnumModule; import de.jottyfan.camporganizer.db.jooq.tables.TCamp.TCampPath; import de.jottyfan.camporganizer.db.jooq.tables.TProfile.TProfilePath; @@ -47,7 +47,7 @@ public class TCampprofile extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.t_campprofile + * The reference instance of public.t_campprofile */ public static final TCampprofile T_CAMPPROFILE = new TCampprofile(); @@ -60,22 +60,22 @@ public class TCampprofile extends TableImpl { } /** - * The column camp.t_campprofile.pk. + * The column public.t_campprofile.pk. */ public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** - * The column camp.t_campprofile.fk_profile. + * The column public.t_campprofile.fk_profile. */ public final TableField FK_PROFILE = createField(DSL.name("fk_profile"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column camp.t_campprofile.fk_camp. + * The column public.t_campprofile.fk_camp. */ public final TableField FK_CAMP = createField(DSL.name("fk_camp"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column camp.t_campprofile.module. + * The column public.t_campprofile.module. */ public final TableField MODULE = createField(DSL.name("module"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(EnumModule.class), this, ""); @@ -88,21 +88,21 @@ public class TCampprofile extends TableImpl { } /** - * Create an aliased camp.t_campprofile table reference + * Create an aliased public.t_campprofile table reference */ public TCampprofile(String alias) { this(DSL.name(alias), T_CAMPPROFILE); } /** - * Create an aliased camp.t_campprofile table reference + * Create an aliased public.t_campprofile table reference */ public TCampprofile(Name alias) { this(alias, T_CAMPPROFILE); } /** - * Create a camp.t_campprofile table reference + * Create a public.t_campprofile table reference */ public TCampprofile() { this(DSL.name("t_campprofile"), null); @@ -141,7 +141,7 @@ public class TCampprofile extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override @@ -167,7 +167,7 @@ public class TCampprofile extends TableImpl { private transient TProfilePath _tProfile; /** - * Get the implicit join path to the camp.t_profile table. + * Get the implicit join path to the public.t_profile table. */ public TProfilePath tProfile() { if (_tProfile == null) @@ -179,7 +179,7 @@ public class TCampprofile extends TableImpl { private transient TCampPath _tCamp; /** - * Get the implicit join path to the camp.t_camp table. + * Get the implicit join path to the public.t_camp table. */ public TCampPath tCamp() { if (_tCamp == null) diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TDocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TDocument.java index 0d30d39..cb4e01a 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TDocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TDocument.java @@ -4,8 +4,8 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.enums.EnumDocument; import de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype; import de.jottyfan.camporganizer.db.jooq.tables.TCamp.TCampPath; @@ -50,7 +50,7 @@ public class TDocument extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.t_document + * The reference instance of public.t_document */ public static final TDocument T_DOCUMENT = new TDocument(); @@ -63,27 +63,27 @@ public class TDocument extends TableImpl { } /** - * The column camp.t_document.pk. + * The column public.t_document.pk. */ public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** - * The column camp.t_document.doctype. + * The column public.t_document.doctype. */ public final TableField DOCTYPE = createField(DSL.name("doctype"), SQLDataType.VARCHAR.asEnumDataType(EnumDocument.class), this, ""); /** - * The column camp.t_document.name. + * The column public.t_document.name. */ public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_document.document. + * The column public.t_document.document. */ public final TableField DOCUMENT = createField(DSL.name("document"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_document.filetype. + * The column public.t_document.filetype. */ public final TableField FILETYPE = createField(DSL.name("filetype"), SQLDataType.VARCHAR.asEnumDataType(EnumFiletype.class), this, ""); @@ -96,21 +96,21 @@ public class TDocument extends TableImpl { } /** - * Create an aliased camp.t_document table reference + * Create an aliased public.t_document table reference */ public TDocument(String alias) { this(DSL.name(alias), T_DOCUMENT); } /** - * Create an aliased camp.t_document table reference + * Create an aliased public.t_document table reference */ public TDocument(Name alias) { this(alias, T_DOCUMENT); } /** - * Create a camp.t_document table reference + * Create a public.t_document table reference */ public TDocument() { this(DSL.name("t_document"), null); @@ -149,7 +149,7 @@ public class TDocument extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override @@ -170,7 +170,8 @@ public class TDocument extends TableImpl { private transient TCampPath _tCamp; /** - * Get the implicit to-many join path to the camp.t_camp table + * Get the implicit to-many join path to the public.t_camp + * table */ public TCampPath tCamp() { if (_tCamp == null) @@ -183,7 +184,7 @@ public class TDocument extends TableImpl { /** * Get the implicit to-many join path to the - * camp.t_campdocument table + * public.t_campdocument table */ public TCampdocumentPath tCampdocument() { if (_tCampdocument == null) @@ -196,7 +197,7 @@ public class TDocument extends TableImpl { /** * Get the implicit to-many join path to the - * camp.t_documentrole table + * public.t_documentrole table */ public TDocumentrolePath tDocumentrole() { if (_tDocumentrole == null) @@ -208,7 +209,7 @@ public class TDocument extends TableImpl { private transient TLocationPath _tLocation; /** - * Get the implicit to-many join path to the camp.t_location + * Get the implicit to-many join path to the public.t_location * table */ public TLocationPath tLocation() { diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TDocumentrole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TDocumentrole.java index 7723659..6270a9c 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TDocumentrole.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TDocumentrole.java @@ -4,8 +4,8 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; import de.jottyfan.camporganizer.db.jooq.tables.TDocument.TDocumentPath; import de.jottyfan.camporganizer.db.jooq.tables.records.TDocumentroleRecord; @@ -46,7 +46,7 @@ public class TDocumentrole extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.t_documentrole + * The reference instance of public.t_documentrole */ public static final TDocumentrole T_DOCUMENTROLE = new TDocumentrole(); @@ -59,17 +59,17 @@ public class TDocumentrole extends TableImpl { } /** - * The column camp.t_documentrole.pk. + * The column public.t_documentrole.pk. */ public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** - * The column camp.t_documentrole.fk_document. + * The column public.t_documentrole.fk_document. */ public final TableField FK_DOCUMENT = createField(DSL.name("fk_document"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column camp.t_documentrole.camprole. + * The column public.t_documentrole.camprole. */ public final TableField CAMPROLE = createField(DSL.name("camprole"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(EnumCamprole.class), this, ""); @@ -82,21 +82,21 @@ public class TDocumentrole extends TableImpl { } /** - * Create an aliased camp.t_documentrole table reference + * Create an aliased public.t_documentrole table reference */ public TDocumentrole(String alias) { this(DSL.name(alias), T_DOCUMENTROLE); } /** - * Create an aliased camp.t_documentrole table reference + * Create an aliased public.t_documentrole table reference */ public TDocumentrole(Name alias) { this(alias, T_DOCUMENTROLE); } /** - * Create a camp.t_documentrole table reference + * Create a public.t_documentrole table reference */ public TDocumentrole() { this(DSL.name("t_documentrole"), null); @@ -135,7 +135,7 @@ public class TDocumentrole extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override @@ -161,7 +161,7 @@ public class TDocumentrole extends TableImpl { private transient TDocumentPath _tDocument; /** - * Get the implicit join path to the camp.t_document table. + * Get the implicit join path to the public.t_document table. */ public TDocumentPath tDocument() { if (_tDocument == null) diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TLocation.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TLocation.java index 2a0aa61..c0f07e5 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TLocation.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TLocation.java @@ -4,8 +4,8 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.tables.TCamp.TCampPath; import de.jottyfan.camporganizer.db.jooq.tables.TDocument.TDocumentPath; import de.jottyfan.camporganizer.db.jooq.tables.records.TLocationRecord; @@ -46,7 +46,7 @@ public class TLocation extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.t_location + * The reference instance of public.t_location */ public static final TLocation T_LOCATION = new TLocation(); @@ -59,22 +59,22 @@ public class TLocation extends TableImpl { } /** - * The column camp.t_location.pk. + * The column public.t_location.pk. */ public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** - * The column camp.t_location.name. + * The column public.t_location.name. */ public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, ""); /** - * The column camp.t_location.url. + * The column public.t_location.url. */ public final TableField URL = createField(DSL.name("url"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_location.fk_document. + * The column public.t_location.fk_document. */ public final TableField FK_DOCUMENT = createField(DSL.name("fk_document"), SQLDataType.INTEGER, this, ""); @@ -87,21 +87,21 @@ public class TLocation extends TableImpl { } /** - * Create an aliased camp.t_location table reference + * Create an aliased public.t_location table reference */ public TLocation(String alias) { this(DSL.name(alias), T_LOCATION); } /** - * Create an aliased camp.t_location table reference + * Create an aliased public.t_location table reference */ public TLocation(Name alias) { this(alias, T_LOCATION); } /** - * Create a camp.t_location table reference + * Create a public.t_location table reference */ public TLocation() { this(DSL.name("t_location"), null); @@ -140,7 +140,7 @@ public class TLocation extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override @@ -161,7 +161,7 @@ public class TLocation extends TableImpl { private transient TDocumentPath _tDocument; /** - * Get the implicit join path to the camp.t_document table. + * Get the implicit join path to the public.t_document table. */ public TDocumentPath tDocument() { if (_tDocument == null) @@ -173,7 +173,8 @@ public class TLocation extends TableImpl { private transient TCampPath _tCamp; /** - * Get the implicit to-many join path to the camp.t_camp table + * Get the implicit to-many join path to the public.t_camp + * table */ public TCampPath tCamp() { if (_tCamp == null) diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPerson.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPerson.java index f10752d..8d9c079 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPerson.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPerson.java @@ -4,8 +4,8 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; import de.jottyfan.camporganizer.db.jooq.enums.EnumSex; import de.jottyfan.camporganizer.db.jooq.tables.TCamp.TCampPath; @@ -52,7 +52,7 @@ public class TPerson extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.t_person + * The reference instance of public.t_person */ public static final TPerson T_PERSON = new TPerson(); @@ -65,102 +65,102 @@ public class TPerson extends TableImpl { } /** - * The column camp.t_person.pk. + * The column public.t_person.pk. */ public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** - * The column camp.t_person.forename. + * The column public.t_person.forename. */ public final TableField FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_person.surname. + * The column public.t_person.surname. */ public final TableField SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_person.street. + * The column public.t_person.street. */ public final TableField STREET = createField(DSL.name("street"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_person.zip. + * The column public.t_person.zip. */ public final TableField ZIP = createField(DSL.name("zip"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_person.city. + * The column public.t_person.city. */ public final TableField CITY = createField(DSL.name("city"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_person.phone. + * The column public.t_person.phone. */ public final TableField PHONE = createField(DSL.name("phone"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_person.birthdate. + * The column public.t_person.birthdate. */ public final TableField BIRTHDATE = createField(DSL.name("birthdate"), SQLDataType.LOCALDATE, this, ""); /** - * The column camp.t_person.camprole. + * The column public.t_person.camprole. */ public final TableField CAMPROLE = createField(DSL.name("camprole"), SQLDataType.VARCHAR.asEnumDataType(EnumCamprole.class), this, ""); /** - * The column camp.t_person.email. + * The column public.t_person.email. */ public final TableField EMAIL = createField(DSL.name("email"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_person.fk_camp. + * The column public.t_person.fk_camp. */ public final TableField FK_CAMP = createField(DSL.name("fk_camp"), SQLDataType.INTEGER, this, ""); /** - * The column camp.t_person.fk_profile. + * The column public.t_person.fk_profile. */ public final TableField FK_PROFILE = createField(DSL.name("fk_profile"), SQLDataType.INTEGER, this, ""); /** - * The column camp.t_person.accept. + * The column public.t_person.accept. */ public final TableField ACCEPT = createField(DSL.name("accept"), SQLDataType.BOOLEAN, this, ""); /** - * The column camp.t_person.created. + * The column public.t_person.created. */ public final TableField CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); /** - * The column camp.t_person.sex. + * The column public.t_person.sex. */ public final TableField SEX = createField(DSL.name("sex"), SQLDataType.VARCHAR.asEnumDataType(EnumSex.class), this, ""); /** - * The column camp.t_person.fk_registrator. + * The column public.t_person.fk_registrator. */ public final TableField FK_REGISTRATOR = createField(DSL.name("fk_registrator"), SQLDataType.INTEGER, this, ""); /** - * The column camp.t_person.paid. + * The column public.t_person.paid. */ public final TableField PAID = createField(DSL.name("paid"), SQLDataType.NUMERIC(7, 2), this, ""); /** - * The column camp.t_person.comment. + * The column public.t_person.comment. */ public final TableField COMMENT = createField(DSL.name("comment"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_person.consent_catalog_photo. + * The column public.t_person.consent_catalog_photo. */ public final TableField CONSENT_CATALOG_PHOTO = createField(DSL.name("consent_catalog_photo"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); /** - * The column camp.t_person.required_price. + * The column public.t_person.required_price. */ public final TableField REQUIRED_PRICE = createField(DSL.name("required_price"), SQLDataType.NUMERIC(7, 2), this, ""); @@ -173,21 +173,21 @@ public class TPerson extends TableImpl { } /** - * Create an aliased camp.t_person table reference + * Create an aliased public.t_person table reference */ public TPerson(String alias) { this(DSL.name(alias), T_PERSON); } /** - * Create an aliased camp.t_person table reference + * Create an aliased public.t_person table reference */ public TPerson(Name alias) { this(alias, T_PERSON); } /** - * Create a camp.t_person table reference + * Create a public.t_person table reference */ public TPerson() { this(DSL.name("t_person"), null); @@ -226,7 +226,7 @@ public class TPerson extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override @@ -241,7 +241,7 @@ public class TPerson extends TableImpl { @Override public List> getUniqueKeys() { - return Arrays.asList(Keys.UK_PERSON); + return Arrays.asList(Keys.T_PERSON_FORENAME_SURNAME_BIRTHDATE_FK_CAMP_KEY); } @Override @@ -252,7 +252,7 @@ public class TPerson extends TableImpl { private transient TCampPath _tCamp; /** - * Get the implicit join path to the camp.t_camp table. + * Get the implicit join path to the public.t_camp table. */ public TCampPath tCamp() { if (_tCamp == null) @@ -264,8 +264,8 @@ public class TPerson extends TableImpl { private transient TProfilePath _tPersonFkProfileFkey; /** - * Get the implicit join path to the camp.t_profile table, via - * the t_person_fk_profile_fkey key. + * Get the implicit join path to the public.t_profile table, + * via the t_person_fk_profile_fkey key. */ public TProfilePath tPersonFkProfileFkey() { if (_tPersonFkProfileFkey == null) @@ -277,8 +277,8 @@ public class TPerson extends TableImpl { private transient TProfilePath _tPersonFkRegistratorFkey; /** - * Get the implicit join path to the camp.t_profile table, via - * the t_person_fk_registrator_fkey key. + * Get the implicit join path to the public.t_profile table, + * via the t_person_fk_registrator_fkey key. */ public TProfilePath tPersonFkRegistratorFkey() { if (_tPersonFkRegistratorFkey == null) @@ -291,7 +291,7 @@ public class TPerson extends TableImpl { /** * Get the implicit to-many join path to the - * camp.t_persondocument table + * public.t_persondocument table */ public TPersondocumentPath tPersondocument() { if (_tPersondocument == null) diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPersondocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPersondocument.java index 2d501b5..5530718 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPersondocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPersondocument.java @@ -4,8 +4,8 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype; import de.jottyfan.camporganizer.db.jooq.tables.TPerson.TPersonPath; import de.jottyfan.camporganizer.db.jooq.tables.records.TPersondocumentRecord; @@ -46,7 +46,7 @@ public class TPersondocument extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.t_persondocument + * The reference instance of public.t_persondocument */ public static final TPersondocument T_PERSONDOCUMENT = new TPersondocument(); @@ -59,27 +59,27 @@ public class TPersondocument extends TableImpl { } /** - * The column camp.t_persondocument.pk. + * The column public.t_persondocument.pk. */ public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** - * The column camp.t_persondocument.fk_person. + * The column public.t_persondocument.fk_person. */ public final TableField FK_PERSON = createField(DSL.name("fk_person"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column camp.t_persondocument.name. + * The column public.t_persondocument.name. */ public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_persondocument.document. + * The column public.t_persondocument.document. */ public final TableField DOCUMENT = createField(DSL.name("document"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_persondocument.filetype. + * The column public.t_persondocument.filetype. */ public final TableField FILETYPE = createField(DSL.name("filetype"), SQLDataType.VARCHAR.asEnumDataType(EnumFiletype.class), this, ""); @@ -92,21 +92,21 @@ public class TPersondocument extends TableImpl { } /** - * Create an aliased camp.t_persondocument table reference + * Create an aliased public.t_persondocument table reference */ public TPersondocument(String alias) { this(DSL.name(alias), T_PERSONDOCUMENT); } /** - * Create an aliased camp.t_persondocument table reference + * Create an aliased public.t_persondocument table reference */ public TPersondocument(Name alias) { this(alias, T_PERSONDOCUMENT); } /** - * Create a camp.t_persondocument table reference + * Create a public.t_persondocument table reference */ public TPersondocument() { this(DSL.name("t_persondocument"), null); @@ -145,7 +145,7 @@ public class TPersondocument extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override @@ -171,7 +171,7 @@ public class TPersondocument extends TableImpl { private transient TPersonPath _tPerson; /** - * Get the implicit join path to the camp.t_person table. + * Get the implicit join path to the public.t_person table. */ public TPersonPath tPerson() { if (_tPerson == null) diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TProfile.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TProfile.java index 59978f8..6028cbd 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TProfile.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TProfile.java @@ -4,8 +4,8 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.tables.TCamp.TCampPath; import de.jottyfan.camporganizer.db.jooq.tables.TCampprofile.TCampprofilePath; import de.jottyfan.camporganizer.db.jooq.tables.TPerson.TPersonPath; @@ -49,7 +49,7 @@ public class TProfile extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.t_profile + * The reference instance of public.t_profile */ public static final TProfile T_PROFILE = new TProfile(); @@ -62,37 +62,37 @@ public class TProfile extends TableImpl { } /** - * The column camp.t_profile.pk. + * The column public.t_profile.pk. */ public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** - * The column camp.t_profile.forename. + * The column public.t_profile.forename. */ public final TableField FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_profile.surname. + * The column public.t_profile.surname. */ public final TableField SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_profile.username. + * The column public.t_profile.username. */ public final TableField USERNAME = createField(DSL.name("username"), SQLDataType.CLOB.nullable(false), this, ""); /** - * The column camp.t_profile.password. + * The column public.t_profile.password. */ - public final TableField PASSWORD = createField(DSL.name("password"), SQLDataType.CLOB.nullable(false), this, ""); + public final TableField PASSWORD = createField(DSL.name("password"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_profile.duedate. + * The column public.t_profile.duedate. */ public final TableField DUEDATE = createField(DSL.name("duedate"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("(now() + '1 year'::interval)"), SQLDataType.LOCALDATETIME)), this, ""); /** - * The column camp.t_profile.uuid. + * The column public.t_profile.uuid. */ public final TableField UUID = createField(DSL.name("uuid"), SQLDataType.CLOB.nullable(false), this, ""); @@ -105,21 +105,21 @@ public class TProfile extends TableImpl { } /** - * Create an aliased camp.t_profile table reference + * Create an aliased public.t_profile table reference */ public TProfile(String alias) { this(DSL.name(alias), T_PROFILE); } /** - * Create an aliased camp.t_profile table reference + * Create an aliased public.t_profile table reference */ public TProfile(Name alias) { this(alias, T_PROFILE); } /** - * Create a camp.t_profile table reference + * Create a public.t_profile table reference */ public TProfile() { this(DSL.name("t_profile"), null); @@ -158,7 +158,7 @@ public class TProfile extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override @@ -179,7 +179,8 @@ public class TProfile extends TableImpl { private transient TCampPath _tCamp; /** - * Get the implicit to-many join path to the camp.t_camp table + * Get the implicit to-many join path to the public.t_camp + * table */ public TCampPath tCamp() { if (_tCamp == null) @@ -191,8 +192,8 @@ public class TProfile extends TableImpl { private transient TCampprofilePath _tCampprofile; /** - * Get the implicit to-many join path to the camp.t_campprofile - * table + * Get the implicit to-many join path to the + * public.t_campprofile table */ public TCampprofilePath tCampprofile() { if (_tCampprofile == null) @@ -204,7 +205,7 @@ public class TProfile extends TableImpl { private transient TPersonPath _tPersonFkProfileFkey; /** - * Get the implicit to-many join path to the camp.t_person + * Get the implicit to-many join path to the public.t_person * table, via the t_person_fk_profile_fkey key */ public TPersonPath tPersonFkProfileFkey() { @@ -217,7 +218,7 @@ public class TProfile extends TableImpl { private transient TPersonPath _tPersonFkRegistratorFkey; /** - * Get the implicit to-many join path to the camp.t_person + * Get the implicit to-many join path to the public.t_person * table, via the t_person_fk_registrator_fkey key */ public TPersonPath tPersonFkRegistratorFkey() { @@ -230,8 +231,8 @@ public class TProfile extends TableImpl { private transient TProfilerolePath _tProfilerole; /** - * Get the implicit to-many join path to the camp.t_profilerole - * table + * Get the implicit to-many join path to the + * public.t_profilerole table */ public TProfilerolePath tProfilerole() { if (_tProfilerole == null) diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TProfilerole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TProfilerole.java index d1ecfcf..f9d0d25 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TProfilerole.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TProfilerole.java @@ -4,8 +4,8 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.enums.EnumRole; import de.jottyfan.camporganizer.db.jooq.tables.TProfile.TProfilePath; import de.jottyfan.camporganizer.db.jooq.tables.records.TProfileroleRecord; @@ -45,7 +45,7 @@ public class TProfilerole extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.t_profilerole + * The reference instance of public.t_profilerole */ public static final TProfilerole T_PROFILEROLE = new TProfilerole(); @@ -58,12 +58,12 @@ public class TProfilerole extends TableImpl { } /** - * The column camp.t_profilerole.fk_profile. + * The column public.t_profilerole.fk_profile. */ public final TableField FK_PROFILE = createField(DSL.name("fk_profile"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column camp.t_profilerole.role. + * The column public.t_profilerole.role. */ public final TableField ROLE = createField(DSL.name("role"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(EnumRole.class), this, ""); @@ -76,21 +76,21 @@ public class TProfilerole extends TableImpl { } /** - * Create an aliased camp.t_profilerole table reference + * Create an aliased public.t_profilerole table reference */ public TProfilerole(String alias) { this(DSL.name(alias), T_PROFILEROLE); } /** - * Create an aliased camp.t_profilerole table reference + * Create an aliased public.t_profilerole table reference */ public TProfilerole(Name alias) { this(alias, T_PROFILEROLE); } /** - * Create a camp.t_profilerole table reference + * Create a public.t_profilerole table reference */ public TProfilerole() { this(DSL.name("t_profilerole"), null); @@ -129,7 +129,7 @@ public class TProfilerole extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override @@ -145,7 +145,7 @@ public class TProfilerole extends TableImpl { private transient TProfilePath _tProfile; /** - * Get the implicit join path to the camp.t_profile table. + * Get the implicit join path to the public.t_profile table. */ public TProfilePath tProfile() { if (_tProfile == null) diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TRss.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TRss.java index 184cd15..ed3c08f 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TRss.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TRss.java @@ -4,8 +4,8 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.tables.records.TRssRecord; import java.time.LocalDateTime; @@ -39,7 +39,7 @@ public class TRss extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.t_rss + * The reference instance of public.t_rss */ public static final TRss T_RSS = new TRss(); @@ -52,25 +52,25 @@ public class TRss extends TableImpl { } /** - * The column camp.t_rss.msg. + * The column public.t_rss.pk. + */ + public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column public.t_rss.msg. */ public final TableField MSG = createField(DSL.name("msg"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_rss.regdate. + * The column public.t_rss.regdate. */ public final TableField REGDATE = createField(DSL.name("regdate"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); /** - * The column camp.t_rss.recipient. + * The column public.t_rss.recipient. */ public final TableField RECIPIENT = createField(DSL.name("recipient"), SQLDataType.CLOB, this, ""); - /** - * The column camp.t_rss.pk. - */ - public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); - private TRss(Name alias, Table aliased) { this(alias, aliased, (Field[]) null, null); } @@ -80,21 +80,21 @@ public class TRss extends TableImpl { } /** - * Create an aliased camp.t_rss table reference + * Create an aliased public.t_rss table reference */ public TRss(String alias) { this(DSL.name(alias), T_RSS); } /** - * Create an aliased camp.t_rss table reference + * Create an aliased public.t_rss table reference */ public TRss(Name alias) { this(alias, T_RSS); } /** - * Create a camp.t_rss table reference + * Create a public.t_rss table reference */ public TRss() { this(DSL.name("t_rss"), null); @@ -102,7 +102,7 @@ public class TRss extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSales.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSales.java index a30051f..dc54b57 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSales.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSales.java @@ -4,9 +4,11 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.tables.TCamp.TCampPath; +import de.jottyfan.camporganizer.db.jooq.tables.TSalescontent.TSalescontentPath; +import de.jottyfan.camporganizer.db.jooq.tables.TSalescontenttype.TSalescontenttypePath; import de.jottyfan.camporganizer.db.jooq.tables.records.TSalesRecord; import java.math.BigDecimal; @@ -47,7 +49,7 @@ public class TSales extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.t_sales + * The reference instance of public.t_sales */ public static final TSales T_SALES = new TSales(); @@ -60,57 +62,57 @@ public class TSales extends TableImpl { } /** - * The column camp.t_sales.pk. + * The column public.t_sales.pk. */ public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** - * The column camp.t_sales.trader. + * The column public.t_sales.trader. */ public final TableField TRADER = createField(DSL.name("trader"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_sales.fk_camp. + * The column public.t_sales.fk_camp. */ public final TableField FK_CAMP = createField(DSL.name("fk_camp"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column camp.t_sales.provider. + * The column public.t_sales.provider. */ public final TableField PROVIDER = createField(DSL.name("provider"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_sales.cash. + * The column public.t_sales.cash. */ public final TableField CASH = createField(DSL.name("cash"), SQLDataType.NUMERIC(11, 2).nullable(false), this, ""); /** - * The column camp.t_sales.buydate. + * The column public.t_sales.buydate. */ public final TableField BUYDATE = createField(DSL.name("buydate"), SQLDataType.LOCALDATETIME(6), this, ""); /** - * The column camp.t_sales.recipenumber. + * The column public.t_sales.recipenumber. */ public final TableField RECIPENUMBER = createField(DSL.name("recipenumber"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_sales.recipeshot. + * The column public.t_sales.recipeshot. */ public final TableField RECIPESHOT = createField(DSL.name("recipeshot"), SQLDataType.BLOB, this, ""); /** - * The column camp.t_sales.recipenote. + * The column public.t_sales.recipenote. */ public final TableField RECIPENOTE = createField(DSL.name("recipenote"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_sales.incredients. + * The column public.t_sales.incredients. */ public final TableField INCREDIENTS = createField(DSL.name("incredients"), SQLDataType.CLOB, this, ""); /** - * The column camp.t_sales.recipefilename. + * The column public.t_sales.recipefilename. */ public final TableField RECIPEFILENAME = createField(DSL.name("recipefilename"), SQLDataType.CLOB, this, ""); @@ -123,21 +125,21 @@ public class TSales extends TableImpl { } /** - * Create an aliased camp.t_sales table reference + * Create an aliased public.t_sales table reference */ public TSales(String alias) { this(DSL.name(alias), T_SALES); } /** - * Create an aliased camp.t_sales table reference + * Create an aliased public.t_sales table reference */ public TSales(Name alias) { this(alias, T_SALES); } /** - * Create a camp.t_sales table reference + * Create a public.t_sales table reference */ public TSales() { this(DSL.name("t_sales"), null); @@ -176,7 +178,7 @@ public class TSales extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override @@ -197,7 +199,7 @@ public class TSales extends TableImpl { private transient TCampPath _tCamp; /** - * Get the implicit join path to the camp.t_camp table. + * Get the implicit join path to the public.t_camp table. */ public TCampPath tCamp() { if (_tCamp == null) @@ -206,6 +208,27 @@ public class TSales extends TableImpl { return _tCamp; } + private transient TSalescontentPath _tSalescontent; + + /** + * Get the implicit to-many join path to the + * public.t_salescontent table + */ + public TSalescontentPath tSalescontent() { + if (_tSalescontent == null) + _tSalescontent = new TSalescontentPath(this, null, Keys.T_SALESCONTENT__T_SALESCONTENT_FK_SALES_FKEY.getInverseKey()); + + return _tSalescontent; + } + + /** + * Get the implicit many-to-many join path to the + * public.t_salescontenttype table + */ + public TSalescontenttypePath tSalescontenttype() { + return tSalescontent().tSalescontenttype(); + } + @Override public TSales as(String alias) { return new TSales(DSL.name(alias), this); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalescontent.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalescontent.java index c215f2a..6327632 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalescontent.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalescontent.java @@ -4,8 +4,10 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; +import de.jottyfan.camporganizer.db.jooq.tables.TSales.TSalesPath; +import de.jottyfan.camporganizer.db.jooq.tables.TSalescontenttype.TSalescontenttypePath; import de.jottyfan.camporganizer.db.jooq.tables.records.TSalescontentRecord; import java.util.Arrays; @@ -14,9 +16,13 @@ import java.util.List; import org.jooq.Condition; import org.jooq.Field; +import org.jooq.ForeignKey; +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; @@ -39,7 +45,7 @@ public class TSalescontent extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.t_salescontent + * The reference instance of public.t_salescontent */ public static final TSalescontent T_SALESCONTENT = new TSalescontent(); @@ -52,12 +58,12 @@ public class TSalescontent extends TableImpl { } /** - * The column camp.t_salescontent.fk_sales. + * The column public.t_salescontent.fk_sales. */ public final TableField FK_SALES = createField(DSL.name("fk_sales"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column camp.t_salescontent.fk_salescontenttype. + * The column public.t_salescontent.fk_salescontenttype. */ public final TableField FK_SALESCONTENTTYPE = createField(DSL.name("fk_salescontenttype"), SQLDataType.CLOB.nullable(false), this, ""); @@ -70,29 +76,60 @@ public class TSalescontent extends TableImpl { } /** - * Create an aliased camp.t_salescontent table reference + * Create an aliased public.t_salescontent table reference */ public TSalescontent(String alias) { this(DSL.name(alias), T_SALESCONTENT); } /** - * Create an aliased camp.t_salescontent table reference + * Create an aliased public.t_salescontent table reference */ public TSalescontent(Name alias) { this(alias, T_SALESCONTENT); } /** - * Create a camp.t_salescontent table reference + * Create a public.t_salescontent table reference */ public TSalescontent() { this(DSL.name("t_salescontent"), null); } + public TSalescontent(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_SALESCONTENT); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TSalescontentPath extends TSalescontent implements Path { + public TSalescontentPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TSalescontentPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TSalescontentPath as(String alias) { + return new TSalescontentPath(DSL.name(alias), this); + } + + @Override + public TSalescontentPath as(Name alias) { + return new TSalescontentPath(alias, this); + } + + @Override + public TSalescontentPath as(Table alias) { + return new TSalescontentPath(alias.getQualifiedName(), this); + } + } + @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override @@ -100,6 +137,36 @@ public class TSalescontent extends TableImpl { return Arrays.asList(Keys.T_SALESCONTENT_FK_SALES_FK_SALESCONTENTTYPE_KEY); } + @Override + public List> getReferences() { + return Arrays.asList(Keys.T_SALESCONTENT__T_SALESCONTENT_FK_SALES_FKEY, Keys.T_SALESCONTENT__T_SALESCONTENT_FK_SALESCONTENTTYPE_FKEY); + } + + private transient TSalesPath _tSales; + + /** + * Get the implicit join path to the public.t_sales table. + */ + public TSalesPath tSales() { + if (_tSales == null) + _tSales = new TSalesPath(this, Keys.T_SALESCONTENT__T_SALESCONTENT_FK_SALES_FKEY, null); + + return _tSales; + } + + private transient TSalescontenttypePath _tSalescontenttype; + + /** + * Get the implicit join path to the public.t_salescontenttype + * table. + */ + public TSalescontenttypePath tSalescontenttype() { + if (_tSalescontenttype == null) + _tSalescontenttype = new TSalescontenttypePath(this, Keys.T_SALESCONTENT__T_SALESCONTENT_FK_SALESCONTENTTYPE_FKEY, null); + + return _tSalescontenttype; + } + @Override public TSalescontent as(String alias) { return new TSalescontent(DSL.name(alias), this); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalescontenttype.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalescontenttype.java index ed05e47..70c0dee 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalescontenttype.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalescontenttype.java @@ -4,17 +4,23 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; +import de.jottyfan.camporganizer.db.jooq.tables.TSales.TSalesPath; +import de.jottyfan.camporganizer.db.jooq.tables.TSalescontent.TSalescontentPath; import de.jottyfan.camporganizer.db.jooq.tables.records.TSalescontenttypeRecord; import java.util.Collection; import org.jooq.Condition; import org.jooq.Field; +import org.jooq.ForeignKey; +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; @@ -37,7 +43,7 @@ public class TSalescontenttype extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.t_salescontenttype + * The reference instance of public.t_salescontenttype */ public static final TSalescontenttype T_SALESCONTENTTYPE = new TSalescontenttype(); @@ -50,7 +56,7 @@ public class TSalescontenttype extends TableImpl { } /** - * The column camp.t_salescontenttype.name. + * The column public.t_salescontenttype.name. */ public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, ""); @@ -63,29 +69,60 @@ public class TSalescontenttype extends TableImpl { } /** - * Create an aliased camp.t_salescontenttype table reference + * Create an aliased public.t_salescontenttype table reference */ public TSalescontenttype(String alias) { this(DSL.name(alias), T_SALESCONTENTTYPE); } /** - * Create an aliased camp.t_salescontenttype table reference + * Create an aliased public.t_salescontenttype table reference */ public TSalescontenttype(Name alias) { this(alias, T_SALESCONTENTTYPE); } /** - * Create a camp.t_salescontenttype table reference + * Create a public.t_salescontenttype table reference */ public TSalescontenttype() { this(DSL.name("t_salescontenttype"), null); } + public TSalescontenttype(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_SALESCONTENTTYPE); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TSalescontenttypePath extends TSalescontenttype implements Path { + public TSalescontenttypePath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TSalescontenttypePath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TSalescontenttypePath as(String alias) { + return new TSalescontenttypePath(DSL.name(alias), this); + } + + @Override + public TSalescontenttypePath as(Name alias) { + return new TSalescontenttypePath(alias, this); + } + + @Override + public TSalescontenttypePath as(Table alias) { + return new TSalescontenttypePath(alias.getQualifiedName(), this); + } + } + @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override @@ -93,6 +130,27 @@ public class TSalescontenttype extends TableImpl { return Keys.T_SALESCONTENTTYPE_PKEY; } + private transient TSalescontentPath _tSalescontent; + + /** + * Get the implicit to-many join path to the + * public.t_salescontent table + */ + public TSalescontentPath tSalescontent() { + if (_tSalescontent == null) + _tSalescontent = new TSalescontentPath(this, null, Keys.T_SALESCONTENT__T_SALESCONTENT_FK_SALESCONTENTTYPE_FKEY.getInverseKey()); + + return _tSalescontent; + } + + /** + * Get the implicit many-to-many join path to the + * public.t_sales table + */ + public TSalesPath tSales() { + return tSalescontent().tSales(); + } + @Override public TSalescontenttype as(String alias) { return new TSalescontenttype(DSL.name(alias), this); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VAdult.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VAdult.java new file mode 100644 index 0000000..22051c2 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VAdult.java @@ -0,0 +1,240 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables; + + +import de.jottyfan.camporganizer.db.jooq.Public; +import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; +import de.jottyfan.camporganizer.db.jooq.tables.records.VAdultRecord; + +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; +import org.jooq.types.YearToSecond; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VAdult extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.v_adult + */ + public static final VAdult V_ADULT = new VAdult(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VAdultRecord.class; + } + + /** + * The column public.v_adult.age. + */ + public final TableField AGE = createField(DSL.name("age"), SQLDataType.INTERVAL, this, ""); + + /** + * The column public.v_adult.forename. + */ + public final TableField FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB, this, ""); + + /** + * The column public.v_adult.surname. + */ + public final TableField SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB, this, ""); + + /** + * The column public.v_adult.camprole. + */ + public final TableField CAMPROLE = createField(DSL.name("camprole"), SQLDataType.VARCHAR.asEnumDataType(EnumCamprole.class), this, ""); + + /** + * The column public.v_adult.adult. + */ + public final TableField ADULT = createField(DSL.name("adult"), SQLDataType.BOOLEAN, this, ""); + + private VAdult(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VAdult(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" + create view "v_adult" as SELECT age((birthdate)::timestamp with time zone) AS age, + forename, + surname, + camprole, + (age((birthdate)::timestamp with time zone) > '18 years'::interval) AS adult + FROM t_person; + """), where); + } + + /** + * Create an aliased public.v_adult table reference + */ + public VAdult(String alias) { + this(DSL.name(alias), V_ADULT); + } + + /** + * Create an aliased public.v_adult table reference + */ + public VAdult(Name alias) { + this(alias, V_ADULT); + } + + /** + * Create a public.v_adult table reference + */ + public VAdult() { + this(DSL.name("v_adult"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public VAdult as(String alias) { + return new VAdult(DSL.name(alias), this); + } + + @Override + public VAdult as(Name alias) { + return new VAdult(alias, this); + } + + @Override + public VAdult as(Table alias) { + return new VAdult(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public VAdult rename(String name) { + return new VAdult(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public VAdult rename(Name name) { + return new VAdult(name, null); + } + + /** + * Rename this table + */ + @Override + public VAdult rename(Table name) { + return new VAdult(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VAdult where(Condition condition) { + return new VAdult(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VAdult where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VAdult where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VAdult where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VAdult where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VAdult where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VAdult where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VAdult where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VAdult whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VAdult whereNotExists(Select select) { + return where(DSL.notExists(select)); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VBudget.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VBudget.java index 9a4da1f..48c90fc 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VBudget.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VBudget.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.tables.records.VBudgetRecord; import java.math.BigDecimal; @@ -36,7 +36,7 @@ public class VBudget extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.v_budget + * The reference instance of public.v_budget */ public static final VBudget V_BUDGET = new VBudget(); @@ -49,27 +49,27 @@ public class VBudget extends TableImpl { } /** - * The column camp.v_budget.budget. + * The column public.v_budget.budget. */ public final TableField BUDGET = createField(DSL.name("budget"), SQLDataType.NUMERIC, this, ""); /** - * The column camp.v_budget.fk_camp. + * The column public.v_budget.fk_camp. */ public final TableField FK_CAMP = createField(DSL.name("fk_camp"), SQLDataType.INTEGER, this, ""); /** - * The column camp.v_budget.name. + * The column public.v_budget.name. */ public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_budget.location. + * The column public.v_budget.location. */ public final TableField LOCATION = createField(DSL.name("location"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_budget.year. + * The column public.v_budget.year. */ public final TableField YEAR = createField(DSL.name("year"), SQLDataType.DOUBLE, this, ""); @@ -84,27 +84,27 @@ public class VBudget extends TableImpl { name, location, year - FROM camp.v_sales + FROM v_sales GROUP BY fk_camp, name, location, year; """), where); } /** - * Create an aliased camp.v_budget table reference + * Create an aliased public.v_budget table reference */ public VBudget(String alias) { this(DSL.name(alias), V_BUDGET); } /** - * Create an aliased camp.v_budget table reference + * Create an aliased public.v_budget table reference */ public VBudget(Name alias) { this(alias, V_BUDGET); } /** - * Create a camp.v_budget table reference + * Create a public.v_budget table reference */ public VBudget() { this(DSL.name("v_budget"), null); @@ -112,7 +112,7 @@ public class VBudget extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCamp.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCamp.java index b7617cb..3598c90 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCamp.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCamp.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.tables.records.VCampRecord; import java.time.LocalDateTime; @@ -36,7 +36,7 @@ public class VCamp extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.v_camp + * The reference instance of public.v_camp */ public static final VCamp V_CAMP = new VCamp(); @@ -49,67 +49,67 @@ public class VCamp extends TableImpl { } /** - * The column camp.v_camp.pk. + * The column public.v_camp.pk. */ public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER, this, ""); /** - * The column camp.v_camp.is_over. + * The column public.v_camp.is_over. */ public final TableField IS_OVER = createField(DSL.name("is_over"), SQLDataType.BOOLEAN, this, ""); /** - * The column camp.v_camp.name. + * The column public.v_camp.name. */ public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_camp.arrive. + * The column public.v_camp.arrive. */ public final TableField ARRIVE = createField(DSL.name("arrive"), SQLDataType.LOCALDATETIME(6), this, ""); /** - * The column camp.v_camp.depart. + * The column public.v_camp.depart. */ public final TableField DEPART = createField(DSL.name("depart"), SQLDataType.LOCALDATETIME(6), this, ""); /** - * The column camp.v_camp.year. + * The column public.v_camp.year. */ public final TableField YEAR = createField(DSL.name("year"), SQLDataType.DOUBLE, this, ""); /** - * The column camp.v_camp.location_name. + * The column public.v_camp.location_name. */ public final TableField LOCATION_NAME = createField(DSL.name("location_name"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_camp.min_age. + * The column public.v_camp.min_age. */ public final TableField MIN_AGE = createField(DSL.name("min_age"), SQLDataType.INTEGER, this, ""); /** - * The column camp.v_camp.max_age. + * The column public.v_camp.max_age. */ public final TableField MAX_AGE = createField(DSL.name("max_age"), SQLDataType.INTEGER, this, ""); /** - * The column camp.v_camp.url. + * The column public.v_camp.url. */ public final TableField URL = createField(DSL.name("url"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_camp.price. + * The column public.v_camp.price. */ public final TableField PRICE = createField(DSL.name("price"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_camp.countries. + * The column public.v_camp.countries. */ public final TableField COUNTRIES = createField(DSL.name("countries"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_camp.fk_document. + * The column public.v_camp.fk_document. */ public final TableField FK_DOCUMENT = createField(DSL.name("fk_document"), SQLDataType.INTEGER, this, ""); @@ -132,27 +132,27 @@ public class VCamp extends TableImpl { c.price, c.countries, c.fk_document - FROM (camp.t_camp c - LEFT JOIN camp.t_location l ON ((c.fk_location = l.pk))); + FROM (t_camp c + LEFT JOIN t_location l ON ((c.fk_location = l.pk))); """), where); } /** - * Create an aliased camp.v_camp table reference + * Create an aliased public.v_camp table reference */ public VCamp(String alias) { this(DSL.name(alias), V_CAMP); } /** - * Create an aliased camp.v_camp table reference + * Create an aliased public.v_camp table reference */ public VCamp(Name alias) { this(alias, V_CAMP); } /** - * Create a camp.v_camp table reference + * Create a public.v_camp table reference */ public VCamp() { this(DSL.name("v_camp"), null); @@ -160,7 +160,7 @@ public class VCamp extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampBudget.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampBudget.java index bd81040..3bcd653 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampBudget.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampBudget.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.tables.records.VCampBudgetRecord; import java.math.BigDecimal; @@ -36,7 +36,7 @@ public class VCampBudget extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.v_camp_budget + * The reference instance of public.v_camp_budget */ public static final VCampBudget V_CAMP_BUDGET = new VCampBudget(); @@ -49,22 +49,22 @@ public class VCampBudget extends TableImpl { } /** - * The column camp.v_camp_budget.budget. + * The column public.v_camp_budget.budget. */ public final TableField BUDGET = createField(DSL.name("budget"), SQLDataType.NUMERIC, this, ""); /** - * The column camp.v_camp_budget.fk_camp. + * The column public.v_camp_budget.fk_camp. */ public final TableField FK_CAMP = createField(DSL.name("fk_camp"), SQLDataType.INTEGER, this, ""); /** - * The column camp.v_camp_budget.camp_name. + * The column public.v_camp_budget.camp_name. */ public final TableField CAMP_NAME = createField(DSL.name("camp_name"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_camp_budget.year. + * The column public.v_camp_budget.year. */ public final TableField YEAR = createField(DSL.name("year"), SQLDataType.DOUBLE, this, ""); @@ -77,39 +77,39 @@ public class VCampBudget extends TableImpl { create view "v_camp_budget" as WITH x(money, camp) AS ( SELECT COALESCE(t_person.paid, 0.0) AS cash, t_person.fk_camp - FROM camp.t_person + FROM t_person UNION ALL SELECT (t_sales.cash * ('-1'::integer)::numeric), t_sales.fk_camp - FROM camp.t_sales + FROM t_sales ) SELECT sum(x.money) AS budget, c.pk AS fk_camp, c.name AS camp_name, date_part('year'::text, c.arrive) AS year FROM (x - LEFT JOIN camp.t_camp c ON ((c.pk = x.camp))) + LEFT JOIN t_camp c ON ((c.pk = x.camp))) GROUP BY c.pk, c.name, c.arrive ORDER BY c.arrive; """), where); } /** - * Create an aliased camp.v_camp_budget table reference + * Create an aliased public.v_camp_budget table reference */ public VCampBudget(String alias) { this(DSL.name(alias), V_CAMP_BUDGET); } /** - * Create an aliased camp.v_camp_budget table reference + * Create an aliased public.v_camp_budget table reference */ public VCampBudget(Name alias) { this(alias, V_CAMP_BUDGET); } /** - * Create a camp.v_camp_budget table reference + * Create a public.v_camp_budget table reference */ public VCampBudget() { this(DSL.name("v_camp_budget"), null); @@ -117,7 +117,7 @@ public class VCampBudget extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampBudgetYear.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampBudgetYear.java index 4038c66..1288a79 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampBudgetYear.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampBudgetYear.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.tables.records.VCampBudgetYearRecord; import java.math.BigDecimal; @@ -36,7 +36,7 @@ public class VCampBudgetYear extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.v_camp_budget_year + * The reference instance of public.v_camp_budget_year */ public static final VCampBudgetYear V_CAMP_BUDGET_YEAR = new VCampBudgetYear(); @@ -49,12 +49,12 @@ public class VCampBudgetYear extends TableImpl { } /** - * The column camp.v_camp_budget_year.sum. + * The column public.v_camp_budget_year.sum. */ public final TableField SUM = createField(DSL.name("sum"), SQLDataType.NUMERIC, this, ""); /** - * The column camp.v_camp_budget_year.year. + * The column public.v_camp_budget_year.year. */ public final TableField YEAR = createField(DSL.name("year"), SQLDataType.DOUBLE, this, ""); @@ -66,28 +66,28 @@ public class VCampBudgetYear extends TableImpl { super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" create view "v_camp_budget_year" as SELECT sum(budget) AS sum, year - FROM camp.v_camp_budget + FROM v_camp_budget GROUP BY year ORDER BY year; """), where); } /** - * Create an aliased camp.v_camp_budget_year table reference + * Create an aliased public.v_camp_budget_year table reference */ public VCampBudgetYear(String alias) { this(DSL.name(alias), V_CAMP_BUDGET_YEAR); } /** - * Create an aliased camp.v_camp_budget_year table reference + * Create an aliased public.v_camp_budget_year table reference */ public VCampBudgetYear(Name alias) { this(alias, V_CAMP_BUDGET_YEAR); } /** - * Create a camp.v_camp_budget_year table reference + * Create a public.v_camp_budget_year table reference */ public VCampBudgetYear() { this(DSL.name("v_camp_budget_year"), null); @@ -95,7 +95,7 @@ public class VCampBudgetYear extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampdocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampdocument.java index 30ae7a6..2ececd7 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampdocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampdocument.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.enums.EnumDocument; import de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype; import de.jottyfan.camporganizer.db.jooq.tables.records.VCampdocumentRecord; @@ -38,7 +38,7 @@ public class VCampdocument extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.v_campdocument + * The reference instance of public.v_campdocument */ public static final VCampdocument V_CAMPDOCUMENT = new VCampdocument(); @@ -51,42 +51,42 @@ public class VCampdocument extends TableImpl { } /** - * The column camp.v_campdocument.fk_camp. + * The column public.v_campdocument.fk_camp. */ public final TableField FK_CAMP = createField(DSL.name("fk_camp"), SQLDataType.INTEGER, this, ""); /** - * The column camp.v_campdocument.campname. + * The column public.v_campdocument.campname. */ public final TableField CAMPNAME = createField(DSL.name("campname"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_campdocument.arrive. + * The column public.v_campdocument.arrive. */ public final TableField ARRIVE = createField(DSL.name("arrive"), SQLDataType.LOCALDATETIME(6), this, ""); /** - * The column camp.v_campdocument.fk_document. + * The column public.v_campdocument.fk_document. */ public final TableField FK_DOCUMENT = createField(DSL.name("fk_document"), SQLDataType.INTEGER, this, ""); /** - * The column camp.v_campdocument.document. + * The column public.v_campdocument.document. */ public final TableField DOCUMENT = createField(DSL.name("document"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_campdocument.documentname. + * The column public.v_campdocument.documentname. */ public final TableField DOCUMENTNAME = createField(DSL.name("documentname"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_campdocument.doctype. + * The column public.v_campdocument.doctype. */ public final TableField DOCTYPE = createField(DSL.name("doctype"), SQLDataType.VARCHAR.asEnumDataType(EnumDocument.class), this, ""); /** - * The column camp.v_campdocument.filetype. + * The column public.v_campdocument.filetype. */ public final TableField FILETYPE = createField(DSL.name("filetype"), SQLDataType.VARCHAR.asEnumDataType(EnumFiletype.class), this, ""); @@ -104,28 +104,28 @@ public class VCampdocument extends TableImpl { d.name AS documentname, d.doctype, d.filetype - FROM ((camp.t_campdocument cd - LEFT JOIN camp.t_camp c ON ((c.pk = cd.fk_camp))) - LEFT JOIN camp.t_document d ON ((d.pk = cd.fk_document))); + FROM ((t_campdocument cd + LEFT JOIN t_camp c ON ((c.pk = cd.fk_camp))) + LEFT JOIN t_document d ON ((d.pk = cd.fk_document))); """), where); } /** - * Create an aliased camp.v_campdocument table reference + * Create an aliased public.v_campdocument table reference */ public VCampdocument(String alias) { this(DSL.name(alias), V_CAMPDOCUMENT); } /** - * Create an aliased camp.v_campdocument table reference + * Create an aliased public.v_campdocument table reference */ public VCampdocument(Name alias) { this(alias, V_CAMPDOCUMENT); } /** - * Create a camp.v_campdocument table reference + * Create a public.v_campdocument table reference */ public VCampdocument() { this(DSL.name("v_campdocument"), null); @@ -133,7 +133,7 @@ public class VCampdocument extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCamprole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCamprole.java index 10fe272..8c3d16d 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCamprole.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCamprole.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; import de.jottyfan.camporganizer.db.jooq.tables.records.VCamproleRecord; @@ -36,7 +36,7 @@ public class VCamprole extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.v_camprole + * The reference instance of public.v_camprole */ public static final VCamprole V_CAMPROLE = new VCamprole(); @@ -49,7 +49,7 @@ public class VCamprole extends TableImpl { } /** - * The column camp.v_camprole.name. + * The column public.v_camprole.name. */ public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR.asEnumDataType(EnumCamprole.class), this, ""); @@ -59,26 +59,26 @@ public class VCamprole extends TableImpl { private VCamprole(Name alias, Table aliased, Field[] parameters, Condition where) { super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" - create view "v_camprole" as SELECT unnest(enum_range(NULL::camp.enum_camprole)) AS name; + create view "v_camprole" as SELECT unnest(enum_range(NULL::enum_camprole)) AS name; """), where); } /** - * Create an aliased camp.v_camprole table reference + * Create an aliased public.v_camprole table reference */ public VCamprole(String alias) { this(DSL.name(alias), V_CAMPROLE); } /** - * Create an aliased camp.v_camprole table reference + * Create an aliased public.v_camprole table reference */ public VCamprole(Name alias) { this(alias, V_CAMPROLE); } /** - * Create a camp.v_camprole table reference + * Create a public.v_camprole table reference */ public VCamprole() { this(DSL.name("v_camprole"), null); @@ -86,7 +86,7 @@ public class VCamprole extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VDocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VDocument.java index 4c67505..520824d 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VDocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VDocument.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.enums.EnumDocument; import de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype; import de.jottyfan.camporganizer.db.jooq.tables.records.VDocumentRecord; @@ -37,7 +37,7 @@ public class VDocument extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.v_document + * The reference instance of public.v_document */ public static final VDocument V_DOCUMENT = new VDocument(); @@ -50,32 +50,32 @@ public class VDocument extends TableImpl { } /** - * The column camp.v_document.pk. + * The column public.v_document.pk. */ public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER, this, ""); /** - * The column camp.v_document.doctype. + * The column public.v_document.doctype. */ public final TableField DOCTYPE = createField(DSL.name("doctype"), SQLDataType.VARCHAR.asEnumDataType(EnumDocument.class), this, ""); /** - * The column camp.v_document.name. + * The column public.v_document.name. */ public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_document.document. + * The column public.v_document.document. */ public final TableField DOCUMENT = createField(DSL.name("document"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_document.filetype. + * The column public.v_document.filetype. */ public final TableField FILETYPE = createField(DSL.name("filetype"), SQLDataType.VARCHAR.asEnumDataType(EnumFiletype.class), this, ""); /** - * The column camp.v_document.roles. + * The column public.v_document.roles. */ public final TableField ROLES = createField(DSL.name("roles"), SQLDataType.CLOB, this, ""); @@ -91,28 +91,28 @@ public class VDocument extends TableImpl { d.document, d.filetype, string_agg((r.camprole)::text, ','::text) AS roles - FROM (camp.t_document d - LEFT JOIN camp.t_documentrole r ON ((r.fk_document = d.pk))) + FROM (t_document d + LEFT JOIN t_documentrole r ON ((r.fk_document = d.pk))) GROUP BY d.pk, d.doctype, d.name, d.document, d.filetype; """), where); } /** - * Create an aliased camp.v_document table reference + * Create an aliased public.v_document table reference */ public VDocument(String alias) { this(DSL.name(alias), V_DOCUMENT); } /** - * Create an aliased camp.v_document table reference + * Create an aliased public.v_document table reference */ public VDocument(Name alias) { this(alias, V_DOCUMENT); } /** - * Create a camp.v_document table reference + * Create a public.v_document table reference */ public VDocument() { this(DSL.name("v_document"), null); @@ -120,7 +120,7 @@ public class VDocument extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VDsgvoDeleteCandidate.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VDsgvoDeleteCandidate.java new file mode 100644 index 0000000..f2cf758 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VDsgvoDeleteCandidate.java @@ -0,0 +1,268 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables; + + +import de.jottyfan.camporganizer.db.jooq.Public; +import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; +import de.jottyfan.camporganizer.db.jooq.tables.records.VDsgvoDeleteCandidateRecord; + +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; +import org.jooq.types.YearToSecond; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VDsgvoDeleteCandidate extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.v_dsgvo_delete_candidate + */ + public static final VDsgvoDeleteCandidate V_DSGVO_DELETE_CANDIDATE = new VDsgvoDeleteCandidate(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VDsgvoDeleteCandidateRecord.class; + } + + /** + * The column public.v_dsgvo_delete_candidate.fk_person. + */ + public final TableField FK_PERSON = createField(DSL.name("fk_person"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.v_dsgvo_delete_candidate.forename. + */ + public final TableField FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB, this, ""); + + /** + * The column public.v_dsgvo_delete_candidate.surname. + */ + public final TableField SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB, this, ""); + + /** + * The column public.v_dsgvo_delete_candidate.fk_camp. + */ + public final TableField FK_CAMP = createField(DSL.name("fk_camp"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.v_dsgvo_delete_candidate.age. + */ + public final TableField AGE = createField(DSL.name("age"), SQLDataType.INTERVAL, this, ""); + + /** + * The column public.v_dsgvo_delete_candidate.camprole. + */ + public final TableField CAMPROLE = createField(DSL.name("camprole"), SQLDataType.VARCHAR.asEnumDataType(EnumCamprole.class), this, ""); + + /** + * The column public.v_dsgvo_delete_candidate.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); + + /** + * The column public.v_dsgvo_delete_candidate.year. + */ + public final TableField YEAR = createField(DSL.name("year"), SQLDataType.DOUBLE, this, ""); + + /** + * The column public.v_dsgvo_delete_candidate.is_over. + */ + public final TableField IS_OVER = createField(DSL.name("is_over"), SQLDataType.BOOLEAN, this, ""); + + private VDsgvoDeleteCandidate(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VDsgvoDeleteCandidate(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" + create view "v_dsgvo_delete_candidate" as SELECT p.pk AS fk_person, + p.forename, + p.surname, + p.fk_camp, + age((p.birthdate)::timestamp with time zone) AS age, + p.camprole, + c.name, + c.year, + c.is_over + FROM (t_person p + LEFT JOIN v_camp c ON ((c.pk = p.fk_camp))) + WHERE (age((p.birthdate)::timestamp with time zone) > '21 years'::interval); + """), where); + } + + /** + * Create an aliased public.v_dsgvo_delete_candidate table + * reference + */ + public VDsgvoDeleteCandidate(String alias) { + this(DSL.name(alias), V_DSGVO_DELETE_CANDIDATE); + } + + /** + * Create an aliased public.v_dsgvo_delete_candidate table + * reference + */ + public VDsgvoDeleteCandidate(Name alias) { + this(alias, V_DSGVO_DELETE_CANDIDATE); + } + + /** + * Create a public.v_dsgvo_delete_candidate table reference + */ + public VDsgvoDeleteCandidate() { + this(DSL.name("v_dsgvo_delete_candidate"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public VDsgvoDeleteCandidate as(String alias) { + return new VDsgvoDeleteCandidate(DSL.name(alias), this); + } + + @Override + public VDsgvoDeleteCandidate as(Name alias) { + return new VDsgvoDeleteCandidate(alias, this); + } + + @Override + public VDsgvoDeleteCandidate as(Table alias) { + return new VDsgvoDeleteCandidate(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public VDsgvoDeleteCandidate rename(String name) { + return new VDsgvoDeleteCandidate(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public VDsgvoDeleteCandidate rename(Name name) { + return new VDsgvoDeleteCandidate(name, null); + } + + /** + * Rename this table + */ + @Override + public VDsgvoDeleteCandidate rename(Table name) { + return new VDsgvoDeleteCandidate(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VDsgvoDeleteCandidate where(Condition condition) { + return new VDsgvoDeleteCandidate(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VDsgvoDeleteCandidate where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VDsgvoDeleteCandidate where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VDsgvoDeleteCandidate where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VDsgvoDeleteCandidate where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VDsgvoDeleteCandidate where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VDsgvoDeleteCandidate where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VDsgvoDeleteCandidate where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VDsgvoDeleteCandidate whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VDsgvoDeleteCandidate whereNotExists(Select select) { + return where(DSL.notExists(select)); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VFeeder.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VFeeder.java new file mode 100644 index 0000000..ad81122 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VFeeder.java @@ -0,0 +1,278 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables; + + +import de.jottyfan.camporganizer.db.jooq.Public; +import de.jottyfan.camporganizer.db.jooq.enums.EnumSex; +import de.jottyfan.camporganizer.db.jooq.tables.records.VFeederRecord; + +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; +import org.jooq.types.YearToSecond; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VFeeder extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.v_feeder + */ + public static final VFeeder V_FEEDER = new VFeeder(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return VFeederRecord.class; + } + + /** + * The column public.v_feeder.forename. + */ + public final TableField FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB, this, ""); + + /** + * The column public.v_feeder.surname. + */ + public final TableField SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB, this, ""); + + /** + * The column public.v_feeder.street. + */ + public final TableField STREET = createField(DSL.name("street"), SQLDataType.CLOB, this, ""); + + /** + * The column public.v_feeder.zip. + */ + public final TableField ZIP = createField(DSL.name("zip"), SQLDataType.CLOB, this, ""); + + /** + * The column public.v_feeder.city. + */ + public final TableField CITY = createField(DSL.name("city"), SQLDataType.CLOB, this, ""); + + /** + * The column public.v_feeder.phone. + */ + public final TableField PHONE = createField(DSL.name("phone"), SQLDataType.CLOB, this, ""); + + /** + * The column public.v_feeder.age. + */ + public final TableField AGE = createField(DSL.name("age"), SQLDataType.INTERVAL, this, ""); + + /** + * The column public.v_feeder.email. + */ + public final TableField EMAIL = createField(DSL.name("email"), SQLDataType.CLOB, this, ""); + + /** + * The column public.v_feeder.sex. + */ + public final TableField SEX = createField(DSL.name("sex"), SQLDataType.VARCHAR.asEnumDataType(EnumSex.class), this, ""); + + /** + * The column public.v_feeder.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); + + /** + * The column public.v_feeder.year. + */ + public final TableField YEAR = createField(DSL.name("year"), SQLDataType.DOUBLE, this, ""); + + private VFeeder(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private VFeeder(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" + create view "v_feeder" as SELECT t_person.forename, + t_person.surname, + t_person.street, + t_person.zip, + t_person.city, + t_person.phone, + age(c.arrive, (t_person.birthdate)::timestamp without time zone) AS age, + t_person.email, + t_person.sex, + c.name, + date_part('year'::text, c.arrive) AS year + FROM (t_person + LEFT JOIN t_camp c ON ((c.pk = t_person.fk_camp))) + WHERE (t_person.camprole = 'feeder'::enum_camprole); + """), where); + } + + /** + * Create an aliased public.v_feeder table reference + */ + public VFeeder(String alias) { + this(DSL.name(alias), V_FEEDER); + } + + /** + * Create an aliased public.v_feeder table reference + */ + public VFeeder(Name alias) { + this(alias, V_FEEDER); + } + + /** + * Create a public.v_feeder table reference + */ + public VFeeder() { + this(DSL.name("v_feeder"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public VFeeder as(String alias) { + return new VFeeder(DSL.name(alias), this); + } + + @Override + public VFeeder as(Name alias) { + return new VFeeder(alias, this); + } + + @Override + public VFeeder as(Table alias) { + return new VFeeder(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public VFeeder rename(String name) { + return new VFeeder(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public VFeeder rename(Name name) { + return new VFeeder(name, null); + } + + /** + * Rename this table + */ + @Override + public VFeeder rename(Table name) { + return new VFeeder(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VFeeder where(Condition condition) { + return new VFeeder(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VFeeder where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VFeeder where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VFeeder where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VFeeder where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VFeeder where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VFeeder where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VFeeder where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VFeeder whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VFeeder whereNotExists(Select select) { + return where(DSL.notExists(select)); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VProfile.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VProfile.java index 456f99f..a961e60 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VProfile.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VProfile.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.enums.EnumRole; import de.jottyfan.camporganizer.db.jooq.tables.records.VProfileRecord; @@ -36,7 +36,7 @@ public class VProfile extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.v_profile + * The reference instance of public.v_profile */ public static final VProfile V_PROFILE = new VProfile(); @@ -49,37 +49,37 @@ public class VProfile extends TableImpl { } /** - * The column camp.v_profile.pk. + * The column public.v_profile.pk. */ public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER, this, ""); /** - * The column camp.v_profile.forename. + * The column public.v_profile.forename. */ public final TableField FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_profile.surname. + * The column public.v_profile.surname. */ public final TableField SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_profile.username. + * The column public.v_profile.username. */ public final TableField USERNAME = createField(DSL.name("username"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_profile.password. + * The column public.v_profile.password. */ public final TableField PASSWORD = createField(DSL.name("password"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_profile.uuid. + * The column public.v_profile.uuid. */ public final TableField UUID = createField(DSL.name("uuid"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_profile.roles. + * The column public.v_profile.roles. */ public final TableField ROLES = createField(DSL.name("roles"), SQLDataType.VARCHAR.asEnumDataType(EnumRole.class).array(), this, ""); @@ -96,29 +96,29 @@ public class VProfile extends TableImpl { t_profile.password, t_profile.uuid, array_agg(t_profilerole.role) AS roles - FROM (camp.t_profile - LEFT JOIN camp.t_profilerole ON ((t_profilerole.fk_profile = t_profile.pk))) + FROM (t_profile + LEFT JOIN t_profilerole ON ((t_profilerole.fk_profile = t_profile.pk))) WHERE (t_profile.duedate > now()) GROUP BY t_profile.pk, t_profile.forename, t_profile.surname, t_profile.username, t_profile.password; """), where); } /** - * Create an aliased camp.v_profile table reference + * Create an aliased public.v_profile table reference */ public VProfile(String alias) { this(DSL.name(alias), V_PROFILE); } /** - * Create an aliased camp.v_profile table reference + * Create an aliased public.v_profile table reference */ public VProfile(Name alias) { this(alias, V_PROFILE); } /** - * Create a camp.v_profile table reference + * Create a public.v_profile table reference */ public VProfile() { this(DSL.name("v_profile"), null); @@ -126,7 +126,7 @@ public class VProfile extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VRegistration.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VRegistration.java index 8b1cd88..996c61c 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VRegistration.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VRegistration.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; import de.jottyfan.camporganizer.db.jooq.tables.records.VRegistrationRecord; @@ -37,7 +37,7 @@ public class VRegistration extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.v_registration + * The reference instance of public.v_registration */ public static final VRegistration V_REGISTRATION = new VRegistration(); @@ -50,57 +50,57 @@ public class VRegistration extends TableImpl { } /** - * The column camp.v_registration.pk. + * The column public.v_registration.pk. */ public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER, this, ""); /** - * The column camp.v_registration.forename. + * The column public.v_registration.forename. */ public final TableField FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_registration.surname. + * The column public.v_registration.surname. */ public final TableField SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_registration.street. + * The column public.v_registration.street. */ public final TableField STREET = createField(DSL.name("street"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_registration.zip. + * The column public.v_registration.zip. */ public final TableField ZIP = createField(DSL.name("zip"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_registration.city. + * The column public.v_registration.city. */ public final TableField CITY = createField(DSL.name("city"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_registration.phone. + * The column public.v_registration.phone. */ public final TableField PHONE = createField(DSL.name("phone"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_registration.birthdate. + * The column public.v_registration.birthdate. */ public final TableField BIRTHDATE = createField(DSL.name("birthdate"), SQLDataType.LOCALDATE, this, ""); /** - * The column camp.v_registration.camprole. + * The column public.v_registration.camprole. */ public final TableField CAMPROLE = createField(DSL.name("camprole"), SQLDataType.VARCHAR.asEnumDataType(EnumCamprole.class), this, ""); /** - * The column camp.v_registration.email. + * The column public.v_registration.email. */ public final TableField EMAIL = createField(DSL.name("email"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_registration.campname. + * The column public.v_registration.campname. */ public final TableField CAMPNAME = createField(DSL.name("campname"), SQLDataType.CLOB, this, ""); @@ -110,38 +110,38 @@ public class VRegistration extends TableImpl { private VRegistration(Name alias, Table aliased, Field[] parameters, Condition where) { super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" - create view "v_registration" as SELECT t_person.pk, - t_person.forename, - t_person.surname, - t_person.street, - t_person.zip, - t_person.city, - t_person.phone, - t_person.birthdate, - t_person.camprole, - t_person.email, - (t_camp.name || date_part('isoyear'::text, t_camp.arrive)) AS campname - FROM (camp.t_person - LEFT JOIN camp.t_camp ON ((t_camp.pk = t_person.fk_camp))); + create view "v_registration" as SELECT p.pk, + p.forename, + p.surname, + p.street, + p.zip, + p.city, + p.phone, + p.birthdate, + p.camprole, + p.email, + (c.name || date_part('isoyear'::text, c.arrive)) AS campname + FROM (t_person p + LEFT JOIN t_camp c ON ((c.pk = p.fk_camp))); """), where); } /** - * Create an aliased camp.v_registration table reference + * Create an aliased public.v_registration table reference */ public VRegistration(String alias) { this(DSL.name(alias), V_REGISTRATION); } /** - * Create an aliased camp.v_registration table reference + * Create an aliased public.v_registration table reference */ public VRegistration(Name alias) { this(alias, V_REGISTRATION); } /** - * Create a camp.v_registration table reference + * Create a public.v_registration table reference */ public VRegistration() { this(DSL.name("v_registration"), null); @@ -149,7 +149,7 @@ public class VRegistration extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VRole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VRole.java index cd5cf08..7a8e8fe 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VRole.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VRole.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.enums.EnumRole; import de.jottyfan.camporganizer.db.jooq.tables.records.VRoleRecord; @@ -36,7 +36,7 @@ public class VRole extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.v_role + * The reference instance of public.v_role */ public static final VRole V_ROLE = new VRole(); @@ -49,7 +49,7 @@ public class VRole extends TableImpl { } /** - * The column camp.v_role.unnest. + * The column public.v_role.unnest. */ public final TableField UNNEST = createField(DSL.name("unnest"), SQLDataType.VARCHAR.asEnumDataType(EnumRole.class), this, ""); @@ -59,26 +59,26 @@ public class VRole extends TableImpl { private VRole(Name alias, Table aliased, Field[] parameters, Condition where) { super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" - create view "v_role" as SELECT unnest(enum_range(NULL::camp.enum_role)) AS unnest; + create view "v_role" as SELECT unnest(enum_range(NULL::enum_role)) AS unnest; """), where); } /** - * Create an aliased camp.v_role table reference + * Create an aliased public.v_role table reference */ public VRole(String alias) { this(DSL.name(alias), V_ROLE); } /** - * Create an aliased camp.v_role table reference + * Create an aliased public.v_role table reference */ public VRole(Name alias) { this(alias, V_ROLE); } /** - * Create a camp.v_role table reference + * Create a public.v_role table reference */ public VRole() { this(DSL.name("v_role"), null); @@ -86,7 +86,7 @@ public class VRole extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VSales.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VSales.java index 28ffa29..082600e 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VSales.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VSales.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.tables.records.VSalesRecord; import java.math.BigDecimal; @@ -37,7 +37,7 @@ public class VSales extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.v_sales + * The reference instance of public.v_sales */ public static final VSales V_SALES = new VSales(); @@ -50,82 +50,82 @@ public class VSales extends TableImpl { } /** - * The column camp.v_sales.pk. + * The column public.v_sales.pk. */ public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER, this, ""); /** - * The column camp.v_sales.trader. + * The column public.v_sales.trader. */ public final TableField TRADER = createField(DSL.name("trader"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_sales.fk_camp. + * The column public.v_sales.fk_camp. */ public final TableField FK_CAMP = createField(DSL.name("fk_camp"), SQLDataType.INTEGER, this, ""); /** - * The column camp.v_sales.name. + * The column public.v_sales.name. */ public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_sales.fk_location. + * The column public.v_sales.fk_location. */ public final TableField FK_LOCATION = createField(DSL.name("fk_location"), SQLDataType.INTEGER, this, ""); /** - * The column camp.v_sales.location. + * The column public.v_sales.location. */ public final TableField LOCATION = createField(DSL.name("location"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_sales.incredients. + * The column public.v_sales.incredients. */ public final TableField INCREDIENTS = createField(DSL.name("incredients"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_sales.year. + * The column public.v_sales.year. */ public final TableField YEAR = createField(DSL.name("year"), SQLDataType.DOUBLE, this, ""); /** - * The column camp.v_sales.fk_sales. + * The column public.v_sales.fk_sales. */ public final TableField FK_SALES = createField(DSL.name("fk_sales"), SQLDataType.INTEGER, this, ""); /** - * The column camp.v_sales.provider. + * The column public.v_sales.provider. */ public final TableField PROVIDER = createField(DSL.name("provider"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_sales.cash. + * The column public.v_sales.cash. */ public final TableField CASH = createField(DSL.name("cash"), SQLDataType.NUMERIC(11, 2), this, ""); /** - * The column camp.v_sales.buydate. + * The column public.v_sales.buydate. */ public final TableField BUYDATE = createField(DSL.name("buydate"), SQLDataType.LOCALDATETIME(6), this, ""); /** - * The column camp.v_sales.recipenumber. + * The column public.v_sales.recipenumber. */ public final TableField RECIPENUMBER = createField(DSL.name("recipenumber"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_sales.recipeshot. + * The column public.v_sales.recipeshot. */ public final TableField RECIPESHOT = createField(DSL.name("recipeshot"), SQLDataType.BLOB, this, ""); /** - * The column camp.v_sales.recipenote. + * The column public.v_sales.recipenote. */ public final TableField RECIPENOTE = createField(DSL.name("recipenote"), SQLDataType.CLOB, this, ""); /** - * The column camp.v_sales.content. + * The column public.v_sales.content. */ public final TableField CONTENT = createField(DSL.name("content"), SQLDataType.CLOB.array(), this, ""); @@ -151,30 +151,30 @@ public class VSales extends TableImpl { s.recipeshot, s.recipenote, array_agg(t.fk_salescontenttype) AS content - FROM (((camp.t_sales s - LEFT JOIN camp.t_camp c ON ((c.pk = s.fk_camp))) - LEFT JOIN camp.t_location l ON ((l.pk = c.fk_location))) - LEFT JOIN camp.t_salescontent t ON ((t.fk_sales = s.pk))) + FROM (((t_sales s + LEFT JOIN t_camp c ON ((c.pk = s.fk_camp))) + LEFT JOIN t_location l ON ((l.pk = c.fk_location))) + LEFT JOIN t_salescontent t ON ((t.fk_sales = s.pk))) GROUP BY s.pk, s.trader, c.pk, c.name, l.pk, l.name, s.incredients, (date_part('isoyear'::text, c.arrive)), s.provider, s.cash, s.buydate, s.recipenumber, s.recipeshot; """), where); } /** - * Create an aliased camp.v_sales table reference + * Create an aliased public.v_sales table reference */ public VSales(String alias) { this(DSL.name(alias), V_SALES); } /** - * Create an aliased camp.v_sales table reference + * Create an aliased public.v_sales table reference */ public VSales(Name alias) { this(alias, V_SALES); } /** - * Create a camp.v_sales table reference + * Create a public.v_sales table reference */ public VSales() { this(DSL.name("v_sales"), null); @@ -182,7 +182,7 @@ public class VSales extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VVersion.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VVersion.java index b3566db..b18b246 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VVersion.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VVersion.java @@ -4,7 +4,7 @@ package de.jottyfan.camporganizer.db.jooq.tables; -import de.jottyfan.camporganizer.db.jooq.Camp; +import de.jottyfan.camporganizer.db.jooq.Public; import de.jottyfan.camporganizer.db.jooq.tables.records.VVersionRecord; import java.util.Collection; @@ -35,7 +35,7 @@ public class VVersion extends TableImpl { private static final long serialVersionUID = 1L; /** - * The reference instance of camp.v_version + * The reference instance of public.v_version */ public static final VVersion V_VERSION = new VVersion(); @@ -48,7 +48,7 @@ public class VVersion extends TableImpl { } /** - * The column camp.v_version.version. + * The column public.v_version.version. */ public final TableField VERSION = createField(DSL.name("version"), SQLDataType.CLOB, this, ""); @@ -58,26 +58,26 @@ public class VVersion extends TableImpl { private VVersion(Name alias, Table aliased, Field[] parameters, Condition where) { super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" - create view "v_version" as SELECT '2023.03'::text AS version; + create view "v_version" as SELECT '2024.02'::text AS version; """), where); } /** - * Create an aliased camp.v_version table reference + * Create an aliased public.v_version table reference */ public VVersion(String alias) { this(DSL.name(alias), V_VERSION); } /** - * Create an aliased camp.v_version table reference + * Create an aliased public.v_version table reference */ public VVersion(Name alias) { this(alias, V_VERSION); } /** - * Create a camp.v_version table reference + * Create a public.v_version table reference */ public VVersion() { this(DSL.name("v_version"), null); @@ -85,7 +85,7 @@ public class VVersion extends TableImpl { @Override public Schema getSchema() { - return aliased() ? null : Camp.CAMP; + return aliased() ? null : Public.PUBLIC; } @Override diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCamp.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCamp.java index 683483f..36f9df3 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCamp.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCamp.java @@ -28,6 +28,10 @@ public class TCamp implements Serializable { private final Integer fkDocument; private final Boolean lockSales; private final Integer fkProfile; + private final Integer bedsMale; + private final Integer bedsFemale; + private final Integer blockedBedsMale; + private final Integer blockedBedsFemale; public TCamp(TCamp value) { this.pk = value.pk; @@ -42,6 +46,10 @@ public class TCamp implements Serializable { this.fkDocument = value.fkDocument; this.lockSales = value.lockSales; this.fkProfile = value.fkProfile; + this.bedsMale = value.bedsMale; + this.bedsFemale = value.bedsFemale; + this.blockedBedsMale = value.blockedBedsMale; + this.blockedBedsFemale = value.blockedBedsFemale; } public TCamp( @@ -56,7 +64,11 @@ public class TCamp implements Serializable { String countries, Integer fkDocument, Boolean lockSales, - Integer fkProfile + Integer fkProfile, + Integer bedsMale, + Integer bedsFemale, + Integer blockedBedsMale, + Integer blockedBedsFemale ) { this.pk = pk; this.name = name; @@ -70,92 +82,124 @@ public class TCamp implements Serializable { this.fkDocument = fkDocument; this.lockSales = lockSales; this.fkProfile = fkProfile; + this.bedsMale = bedsMale; + this.bedsFemale = bedsFemale; + this.blockedBedsMale = blockedBedsMale; + this.blockedBedsFemale = blockedBedsFemale; } /** - * Getter for camp.t_camp.pk. + * Getter for public.t_camp.pk. */ public Integer getPk() { return this.pk; } /** - * Getter for camp.t_camp.name. + * Getter for public.t_camp.name. */ public String getName() { return this.name; } /** - * Getter for camp.t_camp.arrive. + * Getter for public.t_camp.arrive. */ public LocalDateTime getArrive() { return this.arrive; } /** - * Getter for camp.t_camp.depart. + * Getter for public.t_camp.depart. */ public LocalDateTime getDepart() { return this.depart; } /** - * Getter for camp.t_camp.fk_location. + * Getter for public.t_camp.fk_location. */ public Integer getFkLocation() { return this.fkLocation; } /** - * Getter for camp.t_camp.min_age. + * Getter for public.t_camp.min_age. */ public Integer getMinAge() { return this.minAge; } /** - * Getter for camp.t_camp.max_age. + * Getter for public.t_camp.max_age. */ public Integer getMaxAge() { return this.maxAge; } /** - * Getter for camp.t_camp.price. + * Getter for public.t_camp.price. */ public String getPrice() { return this.price; } /** - * Getter for camp.t_camp.countries. + * Getter for public.t_camp.countries. */ public String getCountries() { return this.countries; } /** - * Getter for camp.t_camp.fk_document. + * Getter for public.t_camp.fk_document. */ public Integer getFkDocument() { return this.fkDocument; } /** - * Getter for camp.t_camp.lock_sales. + * Getter for public.t_camp.lock_sales. */ public Boolean getLockSales() { return this.lockSales; } /** - * Getter for camp.t_camp.fk_profile. + * Getter for public.t_camp.fk_profile. */ public Integer getFkProfile() { return this.fkProfile; } + /** + * Getter for public.t_camp.beds_male. + */ + public Integer getBedsMale() { + return this.bedsMale; + } + + /** + * Getter for public.t_camp.beds_female. + */ + public Integer getBedsFemale() { + return this.bedsFemale; + } + + /** + * Getter for public.t_camp.blocked_beds_male. + */ + public Integer getBlockedBedsMale() { + return this.blockedBedsMale; + } + + /** + * Getter for public.t_camp.blocked_beds_female. + */ + public Integer getBlockedBedsFemale() { + return this.blockedBedsFemale; + } + @Override public boolean equals(Object obj) { if (this == obj) @@ -237,6 +281,30 @@ public class TCamp implements Serializable { } else if (!this.fkProfile.equals(other.fkProfile)) return false; + if (this.bedsMale == null) { + if (other.bedsMale != null) + return false; + } + else if (!this.bedsMale.equals(other.bedsMale)) + return false; + if (this.bedsFemale == null) { + if (other.bedsFemale != null) + return false; + } + else if (!this.bedsFemale.equals(other.bedsFemale)) + return false; + if (this.blockedBedsMale == null) { + if (other.blockedBedsMale != null) + return false; + } + else if (!this.blockedBedsMale.equals(other.blockedBedsMale)) + return false; + if (this.blockedBedsFemale == null) { + if (other.blockedBedsFemale != null) + return false; + } + else if (!this.blockedBedsFemale.equals(other.blockedBedsFemale)) + return false; return true; } @@ -256,6 +324,10 @@ public class TCamp implements Serializable { result = prime * result + ((this.fkDocument == null) ? 0 : this.fkDocument.hashCode()); result = prime * result + ((this.lockSales == null) ? 0 : this.lockSales.hashCode()); result = prime * result + ((this.fkProfile == null) ? 0 : this.fkProfile.hashCode()); + result = prime * result + ((this.bedsMale == null) ? 0 : this.bedsMale.hashCode()); + result = prime * result + ((this.bedsFemale == null) ? 0 : this.bedsFemale.hashCode()); + result = prime * result + ((this.blockedBedsMale == null) ? 0 : this.blockedBedsMale.hashCode()); + result = prime * result + ((this.blockedBedsFemale == null) ? 0 : this.blockedBedsFemale.hashCode()); return result; } @@ -275,6 +347,10 @@ public class TCamp implements Serializable { sb.append(", ").append(fkDocument); sb.append(", ").append(lockSales); sb.append(", ").append(fkProfile); + sb.append(", ").append(bedsMale); + sb.append(", ").append(bedsFemale); + sb.append(", ").append(blockedBedsMale); + sb.append(", ").append(blockedBedsFemale); sb.append(")"); return sb.toString(); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampdocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampdocument.java index 21b2d74..caad4ad 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampdocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampdocument.java @@ -36,21 +36,21 @@ public class TCampdocument implements Serializable { } /** - * Getter for camp.t_campdocument.pk. + * Getter for public.t_campdocument.pk. */ public Integer getPk() { return this.pk; } /** - * Getter for camp.t_campdocument.fk_camp. + * Getter for public.t_campdocument.fk_camp. */ public Integer getFkCamp() { return this.fkCamp; } /** - * Getter for camp.t_campdocument.fk_document. + * Getter for public.t_campdocument.fk_document. */ public Integer getFkDocument() { return this.fkDocument; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampprofile.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampprofile.java index 0f59bf7..316fffb 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampprofile.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampprofile.java @@ -42,28 +42,28 @@ public class TCampprofile implements Serializable { } /** - * Getter for camp.t_campprofile.pk. + * Getter for public.t_campprofile.pk. */ public Integer getPk() { return this.pk; } /** - * Getter for camp.t_campprofile.fk_profile. + * Getter for public.t_campprofile.fk_profile. */ public Integer getFkProfile() { return this.fkProfile; } /** - * Getter for camp.t_campprofile.fk_camp. + * Getter for public.t_campprofile.fk_camp. */ public Integer getFkCamp() { return this.fkCamp; } /** - * Getter for camp.t_campprofile.module. + * Getter for public.t_campprofile.module. */ public EnumModule getModule() { return this.module; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocument.java index 8bc032d..13b077e 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocument.java @@ -47,35 +47,35 @@ public class TDocument implements Serializable { } /** - * Getter for camp.t_document.pk. + * Getter for public.t_document.pk. */ public Integer getPk() { return this.pk; } /** - * Getter for camp.t_document.doctype. + * Getter for public.t_document.doctype. */ public EnumDocument getDoctype() { return this.doctype; } /** - * Getter for camp.t_document.name. + * Getter for public.t_document.name. */ public String getName() { return this.name; } /** - * Getter for camp.t_document.document. + * Getter for public.t_document.document. */ public String getDocument() { return this.document; } /** - * Getter for camp.t_document.filetype. + * Getter for public.t_document.filetype. */ public EnumFiletype getFiletype() { return this.filetype; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocumentrole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocumentrole.java index 9aa8c74..039582c 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocumentrole.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocumentrole.java @@ -38,21 +38,21 @@ public class TDocumentrole implements Serializable { } /** - * Getter for camp.t_documentrole.pk. + * Getter for public.t_documentrole.pk. */ public Integer getPk() { return this.pk; } /** - * Getter for camp.t_documentrole.fk_document. + * Getter for public.t_documentrole.fk_document. */ public Integer getFkDocument() { return this.fkDocument; } /** - * Getter for camp.t_documentrole.camprole. + * Getter for public.t_documentrole.camprole. */ public EnumCamprole getCamprole() { return this.camprole; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TLocation.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TLocation.java index e5c86c8..aaaf0c3 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TLocation.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TLocation.java @@ -40,28 +40,28 @@ public class TLocation implements Serializable { } /** - * Getter for camp.t_location.pk. + * Getter for public.t_location.pk. */ public Integer getPk() { return this.pk; } /** - * Getter for camp.t_location.name. + * Getter for public.t_location.name. */ public String getName() { return this.name; } /** - * Getter for camp.t_location.url. + * Getter for public.t_location.url. */ public String getUrl() { return this.url; } /** - * Getter for camp.t_location.fk_document. + * Getter for public.t_location.fk_document. */ public Integer getFkDocument() { return this.fkDocument; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPerson.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPerson.java index 2e86dcf..0c04cc8 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPerson.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPerson.java @@ -110,140 +110,140 @@ public class TPerson implements Serializable { } /** - * Getter for camp.t_person.pk. + * Getter for public.t_person.pk. */ public Integer getPk() { return this.pk; } /** - * Getter for camp.t_person.forename. + * Getter for public.t_person.forename. */ public String getForename() { return this.forename; } /** - * Getter for camp.t_person.surname. + * Getter for public.t_person.surname. */ public String getSurname() { return this.surname; } /** - * Getter for camp.t_person.street. + * Getter for public.t_person.street. */ public String getStreet() { return this.street; } /** - * Getter for camp.t_person.zip. + * Getter for public.t_person.zip. */ public String getZip() { return this.zip; } /** - * Getter for camp.t_person.city. + * Getter for public.t_person.city. */ public String getCity() { return this.city; } /** - * Getter for camp.t_person.phone. + * Getter for public.t_person.phone. */ public String getPhone() { return this.phone; } /** - * Getter for camp.t_person.birthdate. + * Getter for public.t_person.birthdate. */ public LocalDate getBirthdate() { return this.birthdate; } /** - * Getter for camp.t_person.camprole. + * Getter for public.t_person.camprole. */ public EnumCamprole getCamprole() { return this.camprole; } /** - * Getter for camp.t_person.email. + * Getter for public.t_person.email. */ public String getEmail() { return this.email; } /** - * Getter for camp.t_person.fk_camp. + * Getter for public.t_person.fk_camp. */ public Integer getFkCamp() { return this.fkCamp; } /** - * Getter for camp.t_person.fk_profile. + * Getter for public.t_person.fk_profile. */ public Integer getFkProfile() { return this.fkProfile; } /** - * Getter for camp.t_person.accept. + * Getter for public.t_person.accept. */ public Boolean getAccept() { return this.accept; } /** - * Getter for camp.t_person.created. + * Getter for public.t_person.created. */ public LocalDateTime getCreated() { return this.created; } /** - * Getter for camp.t_person.sex. + * Getter for public.t_person.sex. */ public EnumSex getSex() { return this.sex; } /** - * Getter for camp.t_person.fk_registrator. + * Getter for public.t_person.fk_registrator. */ public Integer getFkRegistrator() { return this.fkRegistrator; } /** - * Getter for camp.t_person.paid. + * Getter for public.t_person.paid. */ public BigDecimal getPaid() { return this.paid; } /** - * Getter for camp.t_person.comment. + * Getter for public.t_person.comment. */ public String getComment() { return this.comment; } /** - * Getter for camp.t_person.consent_catalog_photo. + * Getter for public.t_person.consent_catalog_photo. */ public Boolean getConsentCatalogPhoto() { return this.consentCatalogPhoto; } /** - * Getter for camp.t_person.required_price. + * Getter for public.t_person.required_price. */ public BigDecimal getRequiredPrice() { return this.requiredPrice; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPersondocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPersondocument.java index 30359c0..e2ce822 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPersondocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPersondocument.java @@ -46,35 +46,35 @@ public class TPersondocument implements Serializable { } /** - * Getter for camp.t_persondocument.pk. + * Getter for public.t_persondocument.pk. */ public Integer getPk() { return this.pk; } /** - * Getter for camp.t_persondocument.fk_person. + * Getter for public.t_persondocument.fk_person. */ public Integer getFkPerson() { return this.fkPerson; } /** - * Getter for camp.t_persondocument.name. + * Getter for public.t_persondocument.name. */ public String getName() { return this.name; } /** - * Getter for camp.t_persondocument.document. + * Getter for public.t_persondocument.document. */ public String getDocument() { return this.document; } /** - * Getter for camp.t_persondocument.filetype. + * Getter for public.t_persondocument.filetype. */ public EnumFiletype getFiletype() { return this.filetype; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfile.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfile.java index 2ee60b2..35851ea 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfile.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfile.java @@ -53,49 +53,49 @@ public class TProfile implements Serializable { } /** - * Getter for camp.t_profile.pk. + * Getter for public.t_profile.pk. */ public Integer getPk() { return this.pk; } /** - * Getter for camp.t_profile.forename. + * Getter for public.t_profile.forename. */ public String getForename() { return this.forename; } /** - * Getter for camp.t_profile.surname. + * Getter for public.t_profile.surname. */ public String getSurname() { return this.surname; } /** - * Getter for camp.t_profile.username. + * Getter for public.t_profile.username. */ public String getUsername() { return this.username; } /** - * Getter for camp.t_profile.password. + * Getter for public.t_profile.password. */ public String getPassword() { return this.password; } /** - * Getter for camp.t_profile.duedate. + * Getter for public.t_profile.duedate. */ public LocalDateTime getDuedate() { return this.duedate; } /** - * Getter for camp.t_profile.uuid. + * Getter for public.t_profile.uuid. */ public String getUuid() { return this.uuid; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfilerole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfilerole.java index 41b838e..8e7f76c 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfilerole.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfilerole.java @@ -34,14 +34,14 @@ public class TProfilerole implements Serializable { } /** - * Getter for camp.t_profilerole.fk_profile. + * Getter for public.t_profilerole.fk_profile. */ public Integer getFkProfile() { return this.fkProfile; } /** - * Getter for camp.t_profilerole.role. + * Getter for public.t_profilerole.role. */ public EnumRole getRole() { return this.role; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TRss.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TRss.java index 94597e2..28b8c46 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TRss.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TRss.java @@ -16,58 +16,58 @@ public class TRss implements Serializable { private static final long serialVersionUID = 1L; + private final Integer pk; private final String msg; private final LocalDateTime regdate; private final String recipient; - private final Integer pk; public TRss(TRss value) { + this.pk = value.pk; this.msg = value.msg; this.regdate = value.regdate; this.recipient = value.recipient; - this.pk = value.pk; } public TRss( + Integer pk, String msg, LocalDateTime regdate, - String recipient, - Integer pk + String recipient ) { + this.pk = pk; this.msg = msg; this.regdate = regdate; this.recipient = recipient; - this.pk = pk; } /** - * Getter for camp.t_rss.msg. + * Getter for public.t_rss.pk. + */ + public Integer getPk() { + return this.pk; + } + + /** + * Getter for public.t_rss.msg. */ public String getMsg() { return this.msg; } /** - * Getter for camp.t_rss.regdate. + * Getter for public.t_rss.regdate. */ public LocalDateTime getRegdate() { return this.regdate; } /** - * Getter for camp.t_rss.recipient. + * Getter for public.t_rss.recipient. */ public String getRecipient() { return this.recipient; } - /** - * Getter for camp.t_rss.pk. - */ - public Integer getPk() { - return this.pk; - } - @Override public boolean equals(Object obj) { if (this == obj) @@ -77,6 +77,12 @@ public class TRss implements Serializable { if (getClass() != obj.getClass()) return false; final TRss other = (TRss) obj; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; if (this.msg == null) { if (other.msg != null) return false; @@ -95,12 +101,6 @@ public class TRss implements Serializable { } else if (!this.recipient.equals(other.recipient)) return false; - if (this.pk == null) { - if (other.pk != null) - return false; - } - else if (!this.pk.equals(other.pk)) - return false; return true; } @@ -108,10 +108,10 @@ public class TRss implements Serializable { public int hashCode() { final int prime = 31; int result = 1; + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); result = prime * result + ((this.msg == null) ? 0 : this.msg.hashCode()); result = prime * result + ((this.regdate == null) ? 0 : this.regdate.hashCode()); result = prime * result + ((this.recipient == null) ? 0 : this.recipient.hashCode()); - result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); return result; } @@ -119,10 +119,10 @@ public class TRss implements Serializable { public String toString() { StringBuilder sb = new StringBuilder("TRss ("); - sb.append(msg); + sb.append(pk); + sb.append(", ").append(msg); sb.append(", ").append(regdate); sb.append(", ").append(recipient); - sb.append(", ").append(pk); sb.append(")"); return sb.toString(); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSales.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSales.java index 815811b..97f8480 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSales.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSales.java @@ -71,77 +71,77 @@ public class TSales implements Serializable { } /** - * Getter for camp.t_sales.pk. + * Getter for public.t_sales.pk. */ public Integer getPk() { return this.pk; } /** - * Getter for camp.t_sales.trader. + * Getter for public.t_sales.trader. */ public String getTrader() { return this.trader; } /** - * Getter for camp.t_sales.fk_camp. + * Getter for public.t_sales.fk_camp. */ public Integer getFkCamp() { return this.fkCamp; } /** - * Getter for camp.t_sales.provider. + * Getter for public.t_sales.provider. */ public String getProvider() { return this.provider; } /** - * Getter for camp.t_sales.cash. + * Getter for public.t_sales.cash. */ public BigDecimal getCash() { return this.cash; } /** - * Getter for camp.t_sales.buydate. + * Getter for public.t_sales.buydate. */ public LocalDateTime getBuydate() { return this.buydate; } /** - * Getter for camp.t_sales.recipenumber. + * Getter for public.t_sales.recipenumber. */ public String getRecipenumber() { return this.recipenumber; } /** - * Getter for camp.t_sales.recipeshot. + * Getter for public.t_sales.recipeshot. */ public byte[] getRecipeshot() { return this.recipeshot; } /** - * Getter for camp.t_sales.recipenote. + * Getter for public.t_sales.recipenote. */ public String getRecipenote() { return this.recipenote; } /** - * Getter for camp.t_sales.incredients. + * Getter for public.t_sales.incredients. */ public String getIncredients() { return this.incredients; } /** - * Getter for camp.t_sales.recipefilename. + * Getter for public.t_sales.recipefilename. */ public String getRecipefilename() { return this.recipefilename; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontent.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontent.java index b5ac606..f97f48d 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontent.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontent.java @@ -32,14 +32,14 @@ public class TSalescontent implements Serializable { } /** - * Getter for camp.t_salescontent.fk_sales. + * Getter for public.t_salescontent.fk_sales. */ public Integer getFkSales() { return this.fkSales; } /** - * Getter for camp.t_salescontent.fk_salescontenttype. + * Getter for public.t_salescontent.fk_salescontenttype. */ public String getFkSalescontenttype() { return this.fkSalescontenttype; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontenttype.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontenttype.java index 736ddb9..4adb2bb 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontenttype.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontenttype.java @@ -28,7 +28,7 @@ public class TSalescontenttype implements Serializable { } /** - * Getter for camp.t_salescontenttype.name. + * Getter for public.t_salescontenttype.name. */ public String getName() { return this.name; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VAdult.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VAdult.java new file mode 100644 index 0000000..bc8bceb --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VAdult.java @@ -0,0 +1,152 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; + +import java.io.Serializable; + +import org.jooq.types.YearToSecond; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VAdult implements Serializable { + + private static final long serialVersionUID = 1L; + + private final YearToSecond age; + private final String forename; + private final String surname; + private final EnumCamprole camprole; + private final Boolean adult; + + public VAdult(VAdult value) { + this.age = value.age; + this.forename = value.forename; + this.surname = value.surname; + this.camprole = value.camprole; + this.adult = value.adult; + } + + public VAdult( + YearToSecond age, + String forename, + String surname, + EnumCamprole camprole, + Boolean adult + ) { + this.age = age; + this.forename = forename; + this.surname = surname; + this.camprole = camprole; + this.adult = adult; + } + + /** + * Getter for public.v_adult.age. + */ + public YearToSecond getAge() { + return this.age; + } + + /** + * Getter for public.v_adult.forename. + */ + public String getForename() { + return this.forename; + } + + /** + * Getter for public.v_adult.surname. + */ + public String getSurname() { + return this.surname; + } + + /** + * Getter for public.v_adult.camprole. + */ + public EnumCamprole getCamprole() { + return this.camprole; + } + + /** + * Getter for public.v_adult.adult. + */ + public Boolean getAdult() { + return this.adult; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final VAdult other = (VAdult) obj; + if (this.age == null) { + if (other.age != null) + return false; + } + else if (!this.age.equals(other.age)) + 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.camprole == null) { + if (other.camprole != null) + return false; + } + else if (!this.camprole.equals(other.camprole)) + return false; + if (this.adult == null) { + if (other.adult != null) + return false; + } + else if (!this.adult.equals(other.adult)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.age == null) ? 0 : this.age.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.camprole == null) ? 0 : this.camprole.hashCode()); + result = prime * result + ((this.adult == null) ? 0 : this.adult.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("VAdult ("); + + sb.append(age); + sb.append(", ").append(forename); + sb.append(", ").append(surname); + sb.append(", ").append(camprole); + sb.append(", ").append(adult); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VBudget.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VBudget.java index 43023d6..a04a599 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VBudget.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VBudget.java @@ -45,35 +45,35 @@ public class VBudget implements Serializable { } /** - * Getter for camp.v_budget.budget. + * Getter for public.v_budget.budget. */ public BigDecimal getBudget() { return this.budget; } /** - * Getter for camp.v_budget.fk_camp. + * Getter for public.v_budget.fk_camp. */ public Integer getFkCamp() { return this.fkCamp; } /** - * Getter for camp.v_budget.name. + * Getter for public.v_budget.name. */ public String getName() { return this.name; } /** - * Getter for camp.v_budget.location. + * Getter for public.v_budget.location. */ public String getLocation() { return this.location; } /** - * Getter for camp.v_budget.year. + * Getter for public.v_budget.year. */ public Double getYear() { return this.year; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamp.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamp.java index e1c2123..37c55c9 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamp.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamp.java @@ -77,91 +77,91 @@ public class VCamp implements Serializable { } /** - * Getter for camp.v_camp.pk. + * Getter for public.v_camp.pk. */ public Integer getPk() { return this.pk; } /** - * Getter for camp.v_camp.is_over. + * Getter for public.v_camp.is_over. */ public Boolean getIsOver() { return this.isOver; } /** - * Getter for camp.v_camp.name. + * Getter for public.v_camp.name. */ public String getName() { return this.name; } /** - * Getter for camp.v_camp.arrive. + * Getter for public.v_camp.arrive. */ public LocalDateTime getArrive() { return this.arrive; } /** - * Getter for camp.v_camp.depart. + * Getter for public.v_camp.depart. */ public LocalDateTime getDepart() { return this.depart; } /** - * Getter for camp.v_camp.year. + * Getter for public.v_camp.year. */ public Double getYear() { return this.year; } /** - * Getter for camp.v_camp.location_name. + * Getter for public.v_camp.location_name. */ public String getLocationName() { return this.locationName; } /** - * Getter for camp.v_camp.min_age. + * Getter for public.v_camp.min_age. */ public Integer getMinAge() { return this.minAge; } /** - * Getter for camp.v_camp.max_age. + * Getter for public.v_camp.max_age. */ public Integer getMaxAge() { return this.maxAge; } /** - * Getter for camp.v_camp.url. + * Getter for public.v_camp.url. */ public String getUrl() { return this.url; } /** - * Getter for camp.v_camp.price. + * Getter for public.v_camp.price. */ public String getPrice() { return this.price; } /** - * Getter for camp.v_camp.countries. + * Getter for public.v_camp.countries. */ public String getCountries() { return this.countries; } /** - * Getter for camp.v_camp.fk_document. + * Getter for public.v_camp.fk_document. */ public Integer getFkDocument() { return this.fkDocument; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudget.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudget.java index 997b9fb..807d8e9 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudget.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudget.java @@ -41,28 +41,28 @@ public class VCampBudget implements Serializable { } /** - * Getter for camp.v_camp_budget.budget. + * Getter for public.v_camp_budget.budget. */ public BigDecimal getBudget() { return this.budget; } /** - * Getter for camp.v_camp_budget.fk_camp. + * Getter for public.v_camp_budget.fk_camp. */ public Integer getFkCamp() { return this.fkCamp; } /** - * Getter for camp.v_camp_budget.camp_name. + * Getter for public.v_camp_budget.camp_name. */ public String getCampName() { return this.campName; } /** - * Getter for camp.v_camp_budget.year. + * Getter for public.v_camp_budget.year. */ public Double getYear() { return this.year; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudgetYear.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudgetYear.java index 5729cfa..2e99f4b 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudgetYear.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudgetYear.java @@ -33,14 +33,14 @@ public class VCampBudgetYear implements Serializable { } /** - * Getter for camp.v_camp_budget_year.sum. + * Getter for public.v_camp_budget_year.sum. */ public BigDecimal getSum() { return this.sum; } /** - * Getter for camp.v_camp_budget_year.year. + * Getter for public.v_camp_budget_year.year. */ public Double getYear() { return this.year; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampdocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampdocument.java index 2b1192a..82b0e83 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampdocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampdocument.java @@ -60,56 +60,56 @@ public class VCampdocument implements Serializable { } /** - * Getter for camp.v_campdocument.fk_camp. + * Getter for public.v_campdocument.fk_camp. */ public Integer getFkCamp() { return this.fkCamp; } /** - * Getter for camp.v_campdocument.campname. + * Getter for public.v_campdocument.campname. */ public String getCampname() { return this.campname; } /** - * Getter for camp.v_campdocument.arrive. + * Getter for public.v_campdocument.arrive. */ public LocalDateTime getArrive() { return this.arrive; } /** - * Getter for camp.v_campdocument.fk_document. + * Getter for public.v_campdocument.fk_document. */ public Integer getFkDocument() { return this.fkDocument; } /** - * Getter for camp.v_campdocument.document. + * Getter for public.v_campdocument.document. */ public String getDocument() { return this.document; } /** - * Getter for camp.v_campdocument.documentname. + * Getter for public.v_campdocument.documentname. */ public String getDocumentname() { return this.documentname; } /** - * Getter for camp.v_campdocument.doctype. + * Getter for public.v_campdocument.doctype. */ public EnumDocument getDoctype() { return this.doctype; } /** - * Getter for camp.v_campdocument.filetype. + * Getter for public.v_campdocument.filetype. */ public EnumFiletype getFiletype() { return this.filetype; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamprole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamprole.java index e76e9e3..a10aab7 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamprole.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamprole.java @@ -30,7 +30,7 @@ public class VCamprole implements Serializable { } /** - * Getter for camp.v_camprole.name. + * Getter for public.v_camprole.name. */ public EnumCamprole getName() { return this.name; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VDocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VDocument.java index 6cfb795..200ea8d 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VDocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VDocument.java @@ -51,42 +51,42 @@ public class VDocument implements Serializable { } /** - * Getter for camp.v_document.pk. + * Getter for public.v_document.pk. */ public Integer getPk() { return this.pk; } /** - * Getter for camp.v_document.doctype. + * Getter for public.v_document.doctype. */ public EnumDocument getDoctype() { return this.doctype; } /** - * Getter for camp.v_document.name. + * Getter for public.v_document.name. */ public String getName() { return this.name; } /** - * Getter for camp.v_document.document. + * Getter for public.v_document.document. */ public String getDocument() { return this.document; } /** - * Getter for camp.v_document.filetype. + * Getter for public.v_document.filetype. */ public EnumFiletype getFiletype() { return this.filetype; } /** - * Getter for camp.v_document.roles. + * Getter for public.v_document.roles. */ public String getRoles() { return this.roles; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VDsgvoDeleteCandidate.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VDsgvoDeleteCandidate.java new file mode 100644 index 0000000..6d7e75f --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VDsgvoDeleteCandidate.java @@ -0,0 +1,228 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; + +import java.io.Serializable; + +import org.jooq.types.YearToSecond; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VDsgvoDeleteCandidate implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer fkPerson; + private final String forename; + private final String surname; + private final Integer fkCamp; + private final YearToSecond age; + private final EnumCamprole camprole; + private final String name; + private final Double year; + private final Boolean isOver; + + public VDsgvoDeleteCandidate(VDsgvoDeleteCandidate value) { + this.fkPerson = value.fkPerson; + this.forename = value.forename; + this.surname = value.surname; + this.fkCamp = value.fkCamp; + this.age = value.age; + this.camprole = value.camprole; + this.name = value.name; + this.year = value.year; + this.isOver = value.isOver; + } + + public VDsgvoDeleteCandidate( + Integer fkPerson, + String forename, + String surname, + Integer fkCamp, + YearToSecond age, + EnumCamprole camprole, + String name, + Double year, + Boolean isOver + ) { + this.fkPerson = fkPerson; + this.forename = forename; + this.surname = surname; + this.fkCamp = fkCamp; + this.age = age; + this.camprole = camprole; + this.name = name; + this.year = year; + this.isOver = isOver; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.fk_person. + */ + public Integer getFkPerson() { + return this.fkPerson; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.forename. + */ + public String getForename() { + return this.forename; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.surname. + */ + public String getSurname() { + return this.surname; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.fk_camp. + */ + public Integer getFkCamp() { + return this.fkCamp; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.age. + */ + public YearToSecond getAge() { + return this.age; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.camprole. + */ + public EnumCamprole getCamprole() { + return this.camprole; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.name. + */ + public String getName() { + return this.name; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.year. + */ + public Double getYear() { + return this.year; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.is_over. + */ + public Boolean getIsOver() { + return this.isOver; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final VDsgvoDeleteCandidate other = (VDsgvoDeleteCandidate) obj; + if (this.fkPerson == null) { + if (other.fkPerson != null) + return false; + } + else if (!this.fkPerson.equals(other.fkPerson)) + 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.fkCamp == null) { + if (other.fkCamp != null) + return false; + } + else if (!this.fkCamp.equals(other.fkCamp)) + return false; + if (this.age == null) { + if (other.age != null) + return false; + } + else if (!this.age.equals(other.age)) + return false; + if (this.camprole == null) { + if (other.camprole != null) + return false; + } + else if (!this.camprole.equals(other.camprole)) + return false; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + if (this.year == null) { + if (other.year != null) + return false; + } + else if (!this.year.equals(other.year)) + return false; + if (this.isOver == null) { + if (other.isOver != null) + return false; + } + else if (!this.isOver.equals(other.isOver)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.fkPerson == null) ? 0 : this.fkPerson.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.fkCamp == null) ? 0 : this.fkCamp.hashCode()); + result = prime * result + ((this.age == null) ? 0 : this.age.hashCode()); + result = prime * result + ((this.camprole == null) ? 0 : this.camprole.hashCode()); + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + result = prime * result + ((this.year == null) ? 0 : this.year.hashCode()); + result = prime * result + ((this.isOver == null) ? 0 : this.isOver.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("VDsgvoDeleteCandidate ("); + + sb.append(fkPerson); + sb.append(", ").append(forename); + sb.append(", ").append(surname); + sb.append(", ").append(fkCamp); + sb.append(", ").append(age); + sb.append(", ").append(camprole); + sb.append(", ").append(name); + sb.append(", ").append(year); + sb.append(", ").append(isOver); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VFeeder.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VFeeder.java new file mode 100644 index 0000000..9522225 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VFeeder.java @@ -0,0 +1,266 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumSex; + +import java.io.Serializable; + +import org.jooq.types.YearToSecond; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VFeeder implements Serializable { + + private static final long serialVersionUID = 1L; + + private final String forename; + private final String surname; + private final String street; + private final String zip; + private final String city; + private final String phone; + private final YearToSecond age; + private final String email; + private final EnumSex sex; + private final String name; + private final Double year; + + public VFeeder(VFeeder value) { + this.forename = value.forename; + this.surname = value.surname; + this.street = value.street; + this.zip = value.zip; + this.city = value.city; + this.phone = value.phone; + this.age = value.age; + this.email = value.email; + this.sex = value.sex; + this.name = value.name; + this.year = value.year; + } + + public VFeeder( + String forename, + String surname, + String street, + String zip, + String city, + String phone, + YearToSecond age, + String email, + EnumSex sex, + String name, + Double year + ) { + this.forename = forename; + this.surname = surname; + this.street = street; + this.zip = zip; + this.city = city; + this.phone = phone; + this.age = age; + this.email = email; + this.sex = sex; + this.name = name; + this.year = year; + } + + /** + * Getter for public.v_feeder.forename. + */ + public String getForename() { + return this.forename; + } + + /** + * Getter for public.v_feeder.surname. + */ + public String getSurname() { + return this.surname; + } + + /** + * Getter for public.v_feeder.street. + */ + public String getStreet() { + return this.street; + } + + /** + * Getter for public.v_feeder.zip. + */ + public String getZip() { + return this.zip; + } + + /** + * Getter for public.v_feeder.city. + */ + public String getCity() { + return this.city; + } + + /** + * Getter for public.v_feeder.phone. + */ + public String getPhone() { + return this.phone; + } + + /** + * Getter for public.v_feeder.age. + */ + public YearToSecond getAge() { + return this.age; + } + + /** + * Getter for public.v_feeder.email. + */ + public String getEmail() { + return this.email; + } + + /** + * Getter for public.v_feeder.sex. + */ + public EnumSex getSex() { + return this.sex; + } + + /** + * Getter for public.v_feeder.name. + */ + public String getName() { + return this.name; + } + + /** + * Getter for public.v_feeder.year. + */ + public Double getYear() { + return this.year; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final VFeeder other = (VFeeder) obj; + 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.street == null) { + if (other.street != null) + return false; + } + else if (!this.street.equals(other.street)) + return false; + if (this.zip == null) { + if (other.zip != null) + return false; + } + else if (!this.zip.equals(other.zip)) + return false; + if (this.city == null) { + if (other.city != null) + return false; + } + else if (!this.city.equals(other.city)) + return false; + if (this.phone == null) { + if (other.phone != null) + return false; + } + else if (!this.phone.equals(other.phone)) + return false; + if (this.age == null) { + if (other.age != null) + return false; + } + else if (!this.age.equals(other.age)) + return false; + if (this.email == null) { + if (other.email != null) + return false; + } + else if (!this.email.equals(other.email)) + return false; + if (this.sex == null) { + if (other.sex != null) + return false; + } + else if (!this.sex.equals(other.sex)) + return false; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + if (this.year == null) { + if (other.year != null) + return false; + } + else if (!this.year.equals(other.year)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.forename == null) ? 0 : this.forename.hashCode()); + result = prime * result + ((this.surname == null) ? 0 : this.surname.hashCode()); + result = prime * result + ((this.street == null) ? 0 : this.street.hashCode()); + result = prime * result + ((this.zip == null) ? 0 : this.zip.hashCode()); + result = prime * result + ((this.city == null) ? 0 : this.city.hashCode()); + result = prime * result + ((this.phone == null) ? 0 : this.phone.hashCode()); + result = prime * result + ((this.age == null) ? 0 : this.age.hashCode()); + result = prime * result + ((this.email == null) ? 0 : this.email.hashCode()); + result = prime * result + ((this.sex == null) ? 0 : this.sex.hashCode()); + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + result = prime * result + ((this.year == null) ? 0 : this.year.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("VFeeder ("); + + sb.append(forename); + sb.append(", ").append(surname); + sb.append(", ").append(street); + sb.append(", ").append(zip); + sb.append(", ").append(city); + sb.append(", ").append(phone); + sb.append(", ").append(age); + sb.append(", ").append(email); + sb.append(", ").append(sex); + sb.append(", ").append(name); + sb.append(", ").append(year); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VProfile.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VProfile.java index 750cac9..1b4e016 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VProfile.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VProfile.java @@ -55,49 +55,49 @@ public class VProfile implements Serializable { } /** - * Getter for camp.v_profile.pk. + * Getter for public.v_profile.pk. */ public Integer getPk() { return this.pk; } /** - * Getter for camp.v_profile.forename. + * Getter for public.v_profile.forename. */ public String getForename() { return this.forename; } /** - * Getter for camp.v_profile.surname. + * Getter for public.v_profile.surname. */ public String getSurname() { return this.surname; } /** - * Getter for camp.v_profile.username. + * Getter for public.v_profile.username. */ public String getUsername() { return this.username; } /** - * Getter for camp.v_profile.password. + * Getter for public.v_profile.password. */ public String getPassword() { return this.password; } /** - * Getter for camp.v_profile.uuid. + * Getter for public.v_profile.uuid. */ public String getUuid() { return this.uuid; } /** - * Getter for camp.v_profile.roles. + * Getter for public.v_profile.roles. */ public EnumRole[] getRoles() { return this.roles; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRegistration.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRegistration.java index 471e8e5..16e671d 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRegistration.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRegistration.java @@ -71,77 +71,77 @@ public class VRegistration implements Serializable { } /** - * Getter for camp.v_registration.pk. + * Getter for public.v_registration.pk. */ public Integer getPk() { return this.pk; } /** - * Getter for camp.v_registration.forename. + * Getter for public.v_registration.forename. */ public String getForename() { return this.forename; } /** - * Getter for camp.v_registration.surname. + * Getter for public.v_registration.surname. */ public String getSurname() { return this.surname; } /** - * Getter for camp.v_registration.street. + * Getter for public.v_registration.street. */ public String getStreet() { return this.street; } /** - * Getter for camp.v_registration.zip. + * Getter for public.v_registration.zip. */ public String getZip() { return this.zip; } /** - * Getter for camp.v_registration.city. + * Getter for public.v_registration.city. */ public String getCity() { return this.city; } /** - * Getter for camp.v_registration.phone. + * Getter for public.v_registration.phone. */ public String getPhone() { return this.phone; } /** - * Getter for camp.v_registration.birthdate. + * Getter for public.v_registration.birthdate. */ public LocalDate getBirthdate() { return this.birthdate; } /** - * Getter for camp.v_registration.camprole. + * Getter for public.v_registration.camprole. */ public EnumCamprole getCamprole() { return this.camprole; } /** - * Getter for camp.v_registration.email. + * Getter for public.v_registration.email. */ public String getEmail() { return this.email; } /** - * Getter for camp.v_registration.campname. + * Getter for public.v_registration.campname. */ public String getCampname() { return this.campname; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRole.java index 1d49a11..7774af6 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRole.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRole.java @@ -30,7 +30,7 @@ public class VRole implements Serializable { } /** - * Getter for camp.v_role.unnest. + * Getter for public.v_role.unnest. */ public EnumRole getUnnest() { return this.unnest; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VSales.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VSales.java index 3d41cc2..9c3d0ee 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VSales.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VSales.java @@ -91,112 +91,112 @@ public class VSales implements Serializable { } /** - * Getter for camp.v_sales.pk. + * Getter for public.v_sales.pk. */ public Integer getPk() { return this.pk; } /** - * Getter for camp.v_sales.trader. + * Getter for public.v_sales.trader. */ public String getTrader() { return this.trader; } /** - * Getter for camp.v_sales.fk_camp. + * Getter for public.v_sales.fk_camp. */ public Integer getFkCamp() { return this.fkCamp; } /** - * Getter for camp.v_sales.name. + * Getter for public.v_sales.name. */ public String getName() { return this.name; } /** - * Getter for camp.v_sales.fk_location. + * Getter for public.v_sales.fk_location. */ public Integer getFkLocation() { return this.fkLocation; } /** - * Getter for camp.v_sales.location. + * Getter for public.v_sales.location. */ public String getLocation() { return this.location; } /** - * Getter for camp.v_sales.incredients. + * Getter for public.v_sales.incredients. */ public String getIncredients() { return this.incredients; } /** - * Getter for camp.v_sales.year. + * Getter for public.v_sales.year. */ public Double getYear() { return this.year; } /** - * Getter for camp.v_sales.fk_sales. + * Getter for public.v_sales.fk_sales. */ public Integer getFkSales() { return this.fkSales; } /** - * Getter for camp.v_sales.provider. + * Getter for public.v_sales.provider. */ public String getProvider() { return this.provider; } /** - * Getter for camp.v_sales.cash. + * Getter for public.v_sales.cash. */ public BigDecimal getCash() { return this.cash; } /** - * Getter for camp.v_sales.buydate. + * Getter for public.v_sales.buydate. */ public LocalDateTime getBuydate() { return this.buydate; } /** - * Getter for camp.v_sales.recipenumber. + * Getter for public.v_sales.recipenumber. */ public String getRecipenumber() { return this.recipenumber; } /** - * Getter for camp.v_sales.recipeshot. + * Getter for public.v_sales.recipeshot. */ public byte[] getRecipeshot() { return this.recipeshot; } /** - * Getter for camp.v_sales.recipenote. + * Getter for public.v_sales.recipenote. */ public String getRecipenote() { return this.recipenote; } /** - * Getter for camp.v_sales.content. + * Getter for public.v_sales.content. */ public String[] getContent() { return this.content; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VVersion.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VVersion.java index 9a6545e..112ff6d 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VVersion.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VVersion.java @@ -28,7 +28,7 @@ public class VVersion implements Serializable { } /** - * Getter for camp.v_version.version. + * Getter for public.v_version.version. */ public String getVersion() { return this.version; diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TCampRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TCampRecord.java index 7f98096..691bf77 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TCampRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TCampRecord.java @@ -21,7 +21,7 @@ public class TCampRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.t_camp.pk. + * Setter for public.t_camp.pk. */ public TCampRecord setPk(Integer value) { set(0, value); @@ -29,14 +29,14 @@ public class TCampRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_camp.pk. + * Getter for public.t_camp.pk. */ public Integer getPk() { return (Integer) get(0); } /** - * Setter for camp.t_camp.name. + * Setter for public.t_camp.name. */ public TCampRecord setName(String value) { set(1, value); @@ -44,14 +44,14 @@ public class TCampRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_camp.name. + * Getter for public.t_camp.name. */ public String getName() { return (String) get(1); } /** - * Setter for camp.t_camp.arrive. + * Setter for public.t_camp.arrive. */ public TCampRecord setArrive(LocalDateTime value) { set(2, value); @@ -59,14 +59,14 @@ public class TCampRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_camp.arrive. + * Getter for public.t_camp.arrive. */ public LocalDateTime getArrive() { return (LocalDateTime) get(2); } /** - * Setter for camp.t_camp.depart. + * Setter for public.t_camp.depart. */ public TCampRecord setDepart(LocalDateTime value) { set(3, value); @@ -74,14 +74,14 @@ public class TCampRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_camp.depart. + * Getter for public.t_camp.depart. */ public LocalDateTime getDepart() { return (LocalDateTime) get(3); } /** - * Setter for camp.t_camp.fk_location. + * Setter for public.t_camp.fk_location. */ public TCampRecord setFkLocation(Integer value) { set(4, value); @@ -89,14 +89,14 @@ public class TCampRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_camp.fk_location. + * Getter for public.t_camp.fk_location. */ public Integer getFkLocation() { return (Integer) get(4); } /** - * Setter for camp.t_camp.min_age. + * Setter for public.t_camp.min_age. */ public TCampRecord setMinAge(Integer value) { set(5, value); @@ -104,14 +104,14 @@ public class TCampRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_camp.min_age. + * Getter for public.t_camp.min_age. */ public Integer getMinAge() { return (Integer) get(5); } /** - * Setter for camp.t_camp.max_age. + * Setter for public.t_camp.max_age. */ public TCampRecord setMaxAge(Integer value) { set(6, value); @@ -119,14 +119,14 @@ public class TCampRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_camp.max_age. + * Getter for public.t_camp.max_age. */ public Integer getMaxAge() { return (Integer) get(6); } /** - * Setter for camp.t_camp.price. + * Setter for public.t_camp.price. */ public TCampRecord setPrice(String value) { set(7, value); @@ -134,14 +134,14 @@ public class TCampRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_camp.price. + * Getter for public.t_camp.price. */ public String getPrice() { return (String) get(7); } /** - * Setter for camp.t_camp.countries. + * Setter for public.t_camp.countries. */ public TCampRecord setCountries(String value) { set(8, value); @@ -149,14 +149,14 @@ public class TCampRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_camp.countries. + * Getter for public.t_camp.countries. */ public String getCountries() { return (String) get(8); } /** - * Setter for camp.t_camp.fk_document. + * Setter for public.t_camp.fk_document. */ public TCampRecord setFkDocument(Integer value) { set(9, value); @@ -164,14 +164,14 @@ public class TCampRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_camp.fk_document. + * Getter for public.t_camp.fk_document. */ public Integer getFkDocument() { return (Integer) get(9); } /** - * Setter for camp.t_camp.lock_sales. + * Setter for public.t_camp.lock_sales. */ public TCampRecord setLockSales(Boolean value) { set(10, value); @@ -179,14 +179,14 @@ public class TCampRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_camp.lock_sales. + * Getter for public.t_camp.lock_sales. */ public Boolean getLockSales() { return (Boolean) get(10); } /** - * Setter for camp.t_camp.fk_profile. + * Setter for public.t_camp.fk_profile. */ public TCampRecord setFkProfile(Integer value) { set(11, value); @@ -194,12 +194,72 @@ public class TCampRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_camp.fk_profile. + * Getter for public.t_camp.fk_profile. */ public Integer getFkProfile() { return (Integer) get(11); } + /** + * Setter for public.t_camp.beds_male. + */ + public TCampRecord setBedsMale(Integer value) { + set(12, value); + return this; + } + + /** + * Getter for public.t_camp.beds_male. + */ + public Integer getBedsMale() { + return (Integer) get(12); + } + + /** + * Setter for public.t_camp.beds_female. + */ + public TCampRecord setBedsFemale(Integer value) { + set(13, value); + return this; + } + + /** + * Getter for public.t_camp.beds_female. + */ + public Integer getBedsFemale() { + return (Integer) get(13); + } + + /** + * Setter for public.t_camp.blocked_beds_male. + */ + public TCampRecord setBlockedBedsMale(Integer value) { + set(14, value); + return this; + } + + /** + * Getter for public.t_camp.blocked_beds_male. + */ + public Integer getBlockedBedsMale() { + return (Integer) get(14); + } + + /** + * Setter for public.t_camp.blocked_beds_female. + */ + public TCampRecord setBlockedBedsFemale(Integer value) { + set(15, value); + return this; + } + + /** + * Getter for public.t_camp.blocked_beds_female. + */ + public Integer getBlockedBedsFemale() { + return (Integer) get(15); + } + // ------------------------------------------------------------------------- // Primary key information // ------------------------------------------------------------------------- @@ -223,7 +283,7 @@ public class TCampRecord extends UpdatableRecordImpl { /** * Create a detached, initialised TCampRecord */ - public TCampRecord(Integer pk, String name, LocalDateTime arrive, LocalDateTime depart, Integer fkLocation, Integer minAge, Integer maxAge, String price, String countries, Integer fkDocument, Boolean lockSales, Integer fkProfile) { + public TCampRecord(Integer pk, String name, LocalDateTime arrive, LocalDateTime depart, Integer fkLocation, Integer minAge, Integer maxAge, String price, String countries, Integer fkDocument, Boolean lockSales, Integer fkProfile, Integer bedsMale, Integer bedsFemale, Integer blockedBedsMale, Integer blockedBedsFemale) { super(TCamp.T_CAMP); setPk(pk); @@ -238,6 +298,10 @@ public class TCampRecord extends UpdatableRecordImpl { setFkDocument(fkDocument); setLockSales(lockSales); setFkProfile(fkProfile); + setBedsMale(bedsMale); + setBedsFemale(bedsFemale); + setBlockedBedsMale(blockedBedsMale); + setBlockedBedsFemale(blockedBedsFemale); resetChangedOnNotNull(); } @@ -260,6 +324,10 @@ public class TCampRecord extends UpdatableRecordImpl { setFkDocument(value.getFkDocument()); setLockSales(value.getLockSales()); setFkProfile(value.getFkProfile()); + setBedsMale(value.getBedsMale()); + setBedsFemale(value.getBedsFemale()); + setBlockedBedsMale(value.getBlockedBedsMale()); + setBlockedBedsFemale(value.getBlockedBedsFemale()); resetChangedOnNotNull(); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TCampdocumentRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TCampdocumentRecord.java index 9a7509f..cc11640 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TCampdocumentRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TCampdocumentRecord.java @@ -19,7 +19,7 @@ public class TCampdocumentRecord extends UpdatableRecordImplcamp.t_campdocument.pk. + * Setter for public.t_campdocument.pk. */ public TCampdocumentRecord setPk(Integer value) { set(0, value); @@ -27,14 +27,14 @@ public class TCampdocumentRecord extends UpdatableRecordImplcamp.t_campdocument.pk. + * Getter for public.t_campdocument.pk. */ public Integer getPk() { return (Integer) get(0); } /** - * Setter for camp.t_campdocument.fk_camp. + * Setter for public.t_campdocument.fk_camp. */ public TCampdocumentRecord setFkCamp(Integer value) { set(1, value); @@ -42,14 +42,14 @@ public class TCampdocumentRecord extends UpdatableRecordImplcamp.t_campdocument.fk_camp. + * Getter for public.t_campdocument.fk_camp. */ public Integer getFkCamp() { return (Integer) get(1); } /** - * Setter for camp.t_campdocument.fk_document. + * Setter for public.t_campdocument.fk_document. */ public TCampdocumentRecord setFkDocument(Integer value) { set(2, value); @@ -57,7 +57,7 @@ public class TCampdocumentRecord extends UpdatableRecordImplcamp.t_campdocument.fk_document. + * Getter for public.t_campdocument.fk_document. */ public Integer getFkDocument() { return (Integer) get(2); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TCampprofileRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TCampprofileRecord.java index 3bfd23c..baaa5a2 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TCampprofileRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TCampprofileRecord.java @@ -20,7 +20,7 @@ public class TCampprofileRecord extends UpdatableRecordImpl private static final long serialVersionUID = 1L; /** - * Setter for camp.t_campprofile.pk. + * Setter for public.t_campprofile.pk. */ public TCampprofileRecord setPk(Integer value) { set(0, value); @@ -28,14 +28,14 @@ public class TCampprofileRecord extends UpdatableRecordImpl } /** - * Getter for camp.t_campprofile.pk. + * Getter for public.t_campprofile.pk. */ public Integer getPk() { return (Integer) get(0); } /** - * Setter for camp.t_campprofile.fk_profile. + * Setter for public.t_campprofile.fk_profile. */ public TCampprofileRecord setFkProfile(Integer value) { set(1, value); @@ -43,14 +43,14 @@ public class TCampprofileRecord extends UpdatableRecordImpl } /** - * Getter for camp.t_campprofile.fk_profile. + * Getter for public.t_campprofile.fk_profile. */ public Integer getFkProfile() { return (Integer) get(1); } /** - * Setter for camp.t_campprofile.fk_camp. + * Setter for public.t_campprofile.fk_camp. */ public TCampprofileRecord setFkCamp(Integer value) { set(2, value); @@ -58,14 +58,14 @@ public class TCampprofileRecord extends UpdatableRecordImpl } /** - * Getter for camp.t_campprofile.fk_camp. + * Getter for public.t_campprofile.fk_camp. */ public Integer getFkCamp() { return (Integer) get(2); } /** - * Setter for camp.t_campprofile.module. + * Setter for public.t_campprofile.module. */ public TCampprofileRecord setModule(EnumModule value) { set(3, value); @@ -73,7 +73,7 @@ public class TCampprofileRecord extends UpdatableRecordImpl } /** - * Getter for camp.t_campprofile.module. + * Getter for public.t_campprofile.module. */ public EnumModule getModule() { return (EnumModule) get(3); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TDocumentRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TDocumentRecord.java index 1531eee..3bc9288 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TDocumentRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TDocumentRecord.java @@ -21,7 +21,7 @@ public class TDocumentRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.t_document.pk. + * Setter for public.t_document.pk. */ public TDocumentRecord setPk(Integer value) { set(0, value); @@ -29,14 +29,14 @@ public class TDocumentRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_document.pk. + * Getter for public.t_document.pk. */ public Integer getPk() { return (Integer) get(0); } /** - * Setter for camp.t_document.doctype. + * Setter for public.t_document.doctype. */ public TDocumentRecord setDoctype(EnumDocument value) { set(1, value); @@ -44,14 +44,14 @@ public class TDocumentRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_document.doctype. + * Getter for public.t_document.doctype. */ public EnumDocument getDoctype() { return (EnumDocument) get(1); } /** - * Setter for camp.t_document.name. + * Setter for public.t_document.name. */ public TDocumentRecord setName(String value) { set(2, value); @@ -59,14 +59,14 @@ public class TDocumentRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_document.name. + * Getter for public.t_document.name. */ public String getName() { return (String) get(2); } /** - * Setter for camp.t_document.document. + * Setter for public.t_document.document. */ public TDocumentRecord setDocument(String value) { set(3, value); @@ -74,14 +74,14 @@ public class TDocumentRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_document.document. + * Getter for public.t_document.document. */ public String getDocument() { return (String) get(3); } /** - * Setter for camp.t_document.filetype. + * Setter for public.t_document.filetype. */ public TDocumentRecord setFiletype(EnumFiletype value) { set(4, value); @@ -89,7 +89,7 @@ public class TDocumentRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_document.filetype. + * Getter for public.t_document.filetype. */ public EnumFiletype getFiletype() { return (EnumFiletype) get(4); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TDocumentroleRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TDocumentroleRecord.java index 1a3a25f..2127996 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TDocumentroleRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TDocumentroleRecord.java @@ -20,7 +20,7 @@ public class TDocumentroleRecord extends UpdatableRecordImplcamp.t_documentrole.pk. + * Setter for public.t_documentrole.pk. */ public TDocumentroleRecord setPk(Integer value) { set(0, value); @@ -28,14 +28,14 @@ public class TDocumentroleRecord extends UpdatableRecordImplcamp.t_documentrole.pk. + * Getter for public.t_documentrole.pk. */ public Integer getPk() { return (Integer) get(0); } /** - * Setter for camp.t_documentrole.fk_document. + * Setter for public.t_documentrole.fk_document. */ public TDocumentroleRecord setFkDocument(Integer value) { set(1, value); @@ -43,14 +43,14 @@ public class TDocumentroleRecord extends UpdatableRecordImplcamp.t_documentrole.fk_document. + * Getter for public.t_documentrole.fk_document. */ public Integer getFkDocument() { return (Integer) get(1); } /** - * Setter for camp.t_documentrole.camprole. + * Setter for public.t_documentrole.camprole. */ public TDocumentroleRecord setCamprole(EnumCamprole value) { set(2, value); @@ -58,7 +58,7 @@ public class TDocumentroleRecord extends UpdatableRecordImplcamp.t_documentrole.camprole. + * Getter for public.t_documentrole.camprole. */ public EnumCamprole getCamprole() { return (EnumCamprole) get(2); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TLocationRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TLocationRecord.java index f5f7934..f555d87 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TLocationRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TLocationRecord.java @@ -19,7 +19,7 @@ public class TLocationRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.t_location.pk. + * Setter for public.t_location.pk. */ public TLocationRecord setPk(Integer value) { set(0, value); @@ -27,14 +27,14 @@ public class TLocationRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_location.pk. + * Getter for public.t_location.pk. */ public Integer getPk() { return (Integer) get(0); } /** - * Setter for camp.t_location.name. + * Setter for public.t_location.name. */ public TLocationRecord setName(String value) { set(1, value); @@ -42,14 +42,14 @@ public class TLocationRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_location.name. + * Getter for public.t_location.name. */ public String getName() { return (String) get(1); } /** - * Setter for camp.t_location.url. + * Setter for public.t_location.url. */ public TLocationRecord setUrl(String value) { set(2, value); @@ -57,14 +57,14 @@ public class TLocationRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_location.url. + * Getter for public.t_location.url. */ public String getUrl() { return (String) get(2); } /** - * Setter for camp.t_location.fk_document. + * Setter for public.t_location.fk_document. */ public TLocationRecord setFkDocument(Integer value) { set(3, value); @@ -72,7 +72,7 @@ public class TLocationRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_location.fk_document. + * Getter for public.t_location.fk_document. */ public Integer getFkDocument() { return (Integer) get(3); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TPersonRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TPersonRecord.java index edb5c1e..a3f92cc 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TPersonRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TPersonRecord.java @@ -25,7 +25,7 @@ public class TPersonRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.t_person.pk. + * Setter for public.t_person.pk. */ public TPersonRecord setPk(Integer value) { set(0, value); @@ -33,14 +33,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.pk. + * Getter for public.t_person.pk. */ public Integer getPk() { return (Integer) get(0); } /** - * Setter for camp.t_person.forename. + * Setter for public.t_person.forename. */ public TPersonRecord setForename(String value) { set(1, value); @@ -48,14 +48,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.forename. + * Getter for public.t_person.forename. */ public String getForename() { return (String) get(1); } /** - * Setter for camp.t_person.surname. + * Setter for public.t_person.surname. */ public TPersonRecord setSurname(String value) { set(2, value); @@ -63,14 +63,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.surname. + * Getter for public.t_person.surname. */ public String getSurname() { return (String) get(2); } /** - * Setter for camp.t_person.street. + * Setter for public.t_person.street. */ public TPersonRecord setStreet(String value) { set(3, value); @@ -78,14 +78,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.street. + * Getter for public.t_person.street. */ public String getStreet() { return (String) get(3); } /** - * Setter for camp.t_person.zip. + * Setter for public.t_person.zip. */ public TPersonRecord setZip(String value) { set(4, value); @@ -93,14 +93,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.zip. + * Getter for public.t_person.zip. */ public String getZip() { return (String) get(4); } /** - * Setter for camp.t_person.city. + * Setter for public.t_person.city. */ public TPersonRecord setCity(String value) { set(5, value); @@ -108,14 +108,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.city. + * Getter for public.t_person.city. */ public String getCity() { return (String) get(5); } /** - * Setter for camp.t_person.phone. + * Setter for public.t_person.phone. */ public TPersonRecord setPhone(String value) { set(6, value); @@ -123,14 +123,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.phone. + * Getter for public.t_person.phone. */ public String getPhone() { return (String) get(6); } /** - * Setter for camp.t_person.birthdate. + * Setter for public.t_person.birthdate. */ public TPersonRecord setBirthdate(LocalDate value) { set(7, value); @@ -138,14 +138,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.birthdate. + * Getter for public.t_person.birthdate. */ public LocalDate getBirthdate() { return (LocalDate) get(7); } /** - * Setter for camp.t_person.camprole. + * Setter for public.t_person.camprole. */ public TPersonRecord setCamprole(EnumCamprole value) { set(8, value); @@ -153,14 +153,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.camprole. + * Getter for public.t_person.camprole. */ public EnumCamprole getCamprole() { return (EnumCamprole) get(8); } /** - * Setter for camp.t_person.email. + * Setter for public.t_person.email. */ public TPersonRecord setEmail(String value) { set(9, value); @@ -168,14 +168,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.email. + * Getter for public.t_person.email. */ public String getEmail() { return (String) get(9); } /** - * Setter for camp.t_person.fk_camp. + * Setter for public.t_person.fk_camp. */ public TPersonRecord setFkCamp(Integer value) { set(10, value); @@ -183,14 +183,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.fk_camp. + * Getter for public.t_person.fk_camp. */ public Integer getFkCamp() { return (Integer) get(10); } /** - * Setter for camp.t_person.fk_profile. + * Setter for public.t_person.fk_profile. */ public TPersonRecord setFkProfile(Integer value) { set(11, value); @@ -198,14 +198,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.fk_profile. + * Getter for public.t_person.fk_profile. */ public Integer getFkProfile() { return (Integer) get(11); } /** - * Setter for camp.t_person.accept. + * Setter for public.t_person.accept. */ public TPersonRecord setAccept(Boolean value) { set(12, value); @@ -213,14 +213,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.accept. + * Getter for public.t_person.accept. */ public Boolean getAccept() { return (Boolean) get(12); } /** - * Setter for camp.t_person.created. + * Setter for public.t_person.created. */ public TPersonRecord setCreated(LocalDateTime value) { set(13, value); @@ -228,14 +228,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.created. + * Getter for public.t_person.created. */ public LocalDateTime getCreated() { return (LocalDateTime) get(13); } /** - * Setter for camp.t_person.sex. + * Setter for public.t_person.sex. */ public TPersonRecord setSex(EnumSex value) { set(14, value); @@ -243,14 +243,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.sex. + * Getter for public.t_person.sex. */ public EnumSex getSex() { return (EnumSex) get(14); } /** - * Setter for camp.t_person.fk_registrator. + * Setter for public.t_person.fk_registrator. */ public TPersonRecord setFkRegistrator(Integer value) { set(15, value); @@ -258,14 +258,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.fk_registrator. + * Getter for public.t_person.fk_registrator. */ public Integer getFkRegistrator() { return (Integer) get(15); } /** - * Setter for camp.t_person.paid. + * Setter for public.t_person.paid. */ public TPersonRecord setPaid(BigDecimal value) { set(16, value); @@ -273,14 +273,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.paid. + * Getter for public.t_person.paid. */ public BigDecimal getPaid() { return (BigDecimal) get(16); } /** - * Setter for camp.t_person.comment. + * Setter for public.t_person.comment. */ public TPersonRecord setComment(String value) { set(17, value); @@ -288,14 +288,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.comment. + * Getter for public.t_person.comment. */ public String getComment() { return (String) get(17); } /** - * Setter for camp.t_person.consent_catalog_photo. + * Setter for public.t_person.consent_catalog_photo. */ public TPersonRecord setConsentCatalogPhoto(Boolean value) { set(18, value); @@ -303,14 +303,14 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.consent_catalog_photo. + * Getter for public.t_person.consent_catalog_photo. */ public Boolean getConsentCatalogPhoto() { return (Boolean) get(18); } /** - * Setter for camp.t_person.required_price. + * Setter for public.t_person.required_price. */ public TPersonRecord setRequiredPrice(BigDecimal value) { set(19, value); @@ -318,7 +318,7 @@ public class TPersonRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_person.required_price. + * Getter for public.t_person.required_price. */ public BigDecimal getRequiredPrice() { return (BigDecimal) get(19); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TPersondocumentRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TPersondocumentRecord.java index a38ef30..4925e40 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TPersondocumentRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TPersondocumentRecord.java @@ -20,7 +20,7 @@ public class TPersondocumentRecord extends UpdatableRecordImplcamp.t_persondocument.pk. + * Setter for public.t_persondocument.pk. */ public TPersondocumentRecord setPk(Integer value) { set(0, value); @@ -28,14 +28,14 @@ public class TPersondocumentRecord extends UpdatableRecordImplcamp.t_persondocument.pk. + * Getter for public.t_persondocument.pk. */ public Integer getPk() { return (Integer) get(0); } /** - * Setter for camp.t_persondocument.fk_person. + * Setter for public.t_persondocument.fk_person. */ public TPersondocumentRecord setFkPerson(Integer value) { set(1, value); @@ -43,14 +43,14 @@ public class TPersondocumentRecord extends UpdatableRecordImplcamp.t_persondocument.fk_person. + * Getter for public.t_persondocument.fk_person. */ public Integer getFkPerson() { return (Integer) get(1); } /** - * Setter for camp.t_persondocument.name. + * Setter for public.t_persondocument.name. */ public TPersondocumentRecord setName(String value) { set(2, value); @@ -58,14 +58,14 @@ public class TPersondocumentRecord extends UpdatableRecordImplcamp.t_persondocument.name. + * Getter for public.t_persondocument.name. */ public String getName() { return (String) get(2); } /** - * Setter for camp.t_persondocument.document. + * Setter for public.t_persondocument.document. */ public TPersondocumentRecord setDocument(String value) { set(3, value); @@ -73,14 +73,14 @@ public class TPersondocumentRecord extends UpdatableRecordImplcamp.t_persondocument.document. + * Getter for public.t_persondocument.document. */ public String getDocument() { return (String) get(3); } /** - * Setter for camp.t_persondocument.filetype. + * Setter for public.t_persondocument.filetype. */ public TPersondocumentRecord setFiletype(EnumFiletype value) { set(4, value); @@ -88,7 +88,7 @@ public class TPersondocumentRecord extends UpdatableRecordImplcamp.t_persondocument.filetype. + * Getter for public.t_persondocument.filetype. */ public EnumFiletype getFiletype() { return (EnumFiletype) get(4); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TProfileRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TProfileRecord.java index f4de2da..1e13595 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TProfileRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TProfileRecord.java @@ -21,7 +21,7 @@ public class TProfileRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.t_profile.pk. + * Setter for public.t_profile.pk. */ public TProfileRecord setPk(Integer value) { set(0, value); @@ -29,14 +29,14 @@ public class TProfileRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_profile.pk. + * Getter for public.t_profile.pk. */ public Integer getPk() { return (Integer) get(0); } /** - * Setter for camp.t_profile.forename. + * Setter for public.t_profile.forename. */ public TProfileRecord setForename(String value) { set(1, value); @@ -44,14 +44,14 @@ public class TProfileRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_profile.forename. + * Getter for public.t_profile.forename. */ public String getForename() { return (String) get(1); } /** - * Setter for camp.t_profile.surname. + * Setter for public.t_profile.surname. */ public TProfileRecord setSurname(String value) { set(2, value); @@ -59,14 +59,14 @@ public class TProfileRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_profile.surname. + * Getter for public.t_profile.surname. */ public String getSurname() { return (String) get(2); } /** - * Setter for camp.t_profile.username. + * Setter for public.t_profile.username. */ public TProfileRecord setUsername(String value) { set(3, value); @@ -74,14 +74,14 @@ public class TProfileRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_profile.username. + * Getter for public.t_profile.username. */ public String getUsername() { return (String) get(3); } /** - * Setter for camp.t_profile.password. + * Setter for public.t_profile.password. */ public TProfileRecord setPassword(String value) { set(4, value); @@ -89,14 +89,14 @@ public class TProfileRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_profile.password. + * Getter for public.t_profile.password. */ public String getPassword() { return (String) get(4); } /** - * Setter for camp.t_profile.duedate. + * Setter for public.t_profile.duedate. */ public TProfileRecord setDuedate(LocalDateTime value) { set(5, value); @@ -104,14 +104,14 @@ public class TProfileRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_profile.duedate. + * Getter for public.t_profile.duedate. */ public LocalDateTime getDuedate() { return (LocalDateTime) get(5); } /** - * Setter for camp.t_profile.uuid. + * Setter for public.t_profile.uuid. */ public TProfileRecord setUuid(String value) { set(6, value); @@ -119,7 +119,7 @@ public class TProfileRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_profile.uuid. + * Getter for public.t_profile.uuid. */ public String getUuid() { return (String) get(6); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TProfileroleRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TProfileroleRecord.java index 987ae84..b0807cd 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TProfileroleRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TProfileroleRecord.java @@ -19,7 +19,7 @@ public class TProfileroleRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.t_profilerole.fk_profile. + * Setter for public.t_profilerole.fk_profile. */ public TProfileroleRecord setFkProfile(Integer value) { set(0, value); @@ -27,14 +27,14 @@ public class TProfileroleRecord extends TableRecordImpl { } /** - * Getter for camp.t_profilerole.fk_profile. + * Getter for public.t_profilerole.fk_profile. */ public Integer getFkProfile() { return (Integer) get(0); } /** - * Setter for camp.t_profilerole.role. + * Setter for public.t_profilerole.role. */ public TProfileroleRecord setRole(EnumRole value) { set(1, value); @@ -42,7 +42,7 @@ public class TProfileroleRecord extends TableRecordImpl { } /** - * Getter for camp.t_profilerole.role. + * Getter for public.t_profilerole.role. */ public EnumRole getRole() { return (EnumRole) get(1); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TRssRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TRssRecord.java index dead468..4b033e2 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TRssRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TRssRecord.java @@ -21,63 +21,63 @@ public class TRssRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.t_rss.msg. + * Setter for public.t_rss.pk. */ - public TRssRecord setMsg(String value) { + public TRssRecord setPk(Integer value) { set(0, value); return this; } /** - * Getter for camp.t_rss.msg. + * Getter for public.t_rss.pk. */ - public String getMsg() { - return (String) get(0); + public Integer getPk() { + return (Integer) get(0); } /** - * Setter for camp.t_rss.regdate. + * Setter for public.t_rss.msg. */ - public TRssRecord setRegdate(LocalDateTime value) { + public TRssRecord setMsg(String value) { set(1, value); return this; } /** - * Getter for camp.t_rss.regdate. + * Getter for public.t_rss.msg. */ - public LocalDateTime getRegdate() { - return (LocalDateTime) get(1); + public String getMsg() { + return (String) get(1); } /** - * Setter for camp.t_rss.recipient. + * Setter for public.t_rss.regdate. */ - public TRssRecord setRecipient(String value) { + public TRssRecord setRegdate(LocalDateTime value) { set(2, value); return this; } /** - * Getter for camp.t_rss.recipient. + * Getter for public.t_rss.regdate. */ - public String getRecipient() { - return (String) get(2); + public LocalDateTime getRegdate() { + return (LocalDateTime) get(2); } /** - * Setter for camp.t_rss.pk. + * Setter for public.t_rss.recipient. */ - public TRssRecord setPk(Integer value) { + public TRssRecord setRecipient(String value) { set(3, value); return this; } /** - * Getter for camp.t_rss.pk. + * Getter for public.t_rss.recipient. */ - public Integer getPk() { - return (Integer) get(3); + public String getRecipient() { + return (String) get(3); } // ------------------------------------------------------------------------- @@ -103,13 +103,13 @@ public class TRssRecord extends UpdatableRecordImpl { /** * Create a detached, initialised TRssRecord */ - public TRssRecord(String msg, LocalDateTime regdate, String recipient, Integer pk) { + public TRssRecord(Integer pk, String msg, LocalDateTime regdate, String recipient) { super(TRss.T_RSS); + setPk(pk); setMsg(msg); setRegdate(regdate); setRecipient(recipient); - setPk(pk); resetChangedOnNotNull(); } @@ -120,10 +120,10 @@ public class TRssRecord extends UpdatableRecordImpl { super(TRss.T_RSS); if (value != null) { + setPk(value.getPk()); setMsg(value.getMsg()); setRegdate(value.getRegdate()); setRecipient(value.getRecipient()); - setPk(value.getPk()); resetChangedOnNotNull(); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalesRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalesRecord.java index d8113e8..37e884e 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalesRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalesRecord.java @@ -22,7 +22,7 @@ public class TSalesRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.t_sales.pk. + * Setter for public.t_sales.pk. */ public TSalesRecord setPk(Integer value) { set(0, value); @@ -30,14 +30,14 @@ public class TSalesRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_sales.pk. + * Getter for public.t_sales.pk. */ public Integer getPk() { return (Integer) get(0); } /** - * Setter for camp.t_sales.trader. + * Setter for public.t_sales.trader. */ public TSalesRecord setTrader(String value) { set(1, value); @@ -45,14 +45,14 @@ public class TSalesRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_sales.trader. + * Getter for public.t_sales.trader. */ public String getTrader() { return (String) get(1); } /** - * Setter for camp.t_sales.fk_camp. + * Setter for public.t_sales.fk_camp. */ public TSalesRecord setFkCamp(Integer value) { set(2, value); @@ -60,14 +60,14 @@ public class TSalesRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_sales.fk_camp. + * Getter for public.t_sales.fk_camp. */ public Integer getFkCamp() { return (Integer) get(2); } /** - * Setter for camp.t_sales.provider. + * Setter for public.t_sales.provider. */ public TSalesRecord setProvider(String value) { set(3, value); @@ -75,14 +75,14 @@ public class TSalesRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_sales.provider. + * Getter for public.t_sales.provider. */ public String getProvider() { return (String) get(3); } /** - * Setter for camp.t_sales.cash. + * Setter for public.t_sales.cash. */ public TSalesRecord setCash(BigDecimal value) { set(4, value); @@ -90,14 +90,14 @@ public class TSalesRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_sales.cash. + * Getter for public.t_sales.cash. */ public BigDecimal getCash() { return (BigDecimal) get(4); } /** - * Setter for camp.t_sales.buydate. + * Setter for public.t_sales.buydate. */ public TSalesRecord setBuydate(LocalDateTime value) { set(5, value); @@ -105,14 +105,14 @@ public class TSalesRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_sales.buydate. + * Getter for public.t_sales.buydate. */ public LocalDateTime getBuydate() { return (LocalDateTime) get(5); } /** - * Setter for camp.t_sales.recipenumber. + * Setter for public.t_sales.recipenumber. */ public TSalesRecord setRecipenumber(String value) { set(6, value); @@ -120,14 +120,14 @@ public class TSalesRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_sales.recipenumber. + * Getter for public.t_sales.recipenumber. */ public String getRecipenumber() { return (String) get(6); } /** - * Setter for camp.t_sales.recipeshot. + * Setter for public.t_sales.recipeshot. */ public TSalesRecord setRecipeshot(byte[] value) { set(7, value); @@ -135,14 +135,14 @@ public class TSalesRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_sales.recipeshot. + * Getter for public.t_sales.recipeshot. */ public byte[] getRecipeshot() { return (byte[]) get(7); } /** - * Setter for camp.t_sales.recipenote. + * Setter for public.t_sales.recipenote. */ public TSalesRecord setRecipenote(String value) { set(8, value); @@ -150,14 +150,14 @@ public class TSalesRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_sales.recipenote. + * Getter for public.t_sales.recipenote. */ public String getRecipenote() { return (String) get(8); } /** - * Setter for camp.t_sales.incredients. + * Setter for public.t_sales.incredients. */ public TSalesRecord setIncredients(String value) { set(9, value); @@ -165,14 +165,14 @@ public class TSalesRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_sales.incredients. + * Getter for public.t_sales.incredients. */ public String getIncredients() { return (String) get(9); } /** - * Setter for camp.t_sales.recipefilename. + * Setter for public.t_sales.recipefilename. */ public TSalesRecord setRecipefilename(String value) { set(10, value); @@ -180,7 +180,7 @@ public class TSalesRecord extends UpdatableRecordImpl { } /** - * Getter for camp.t_sales.recipefilename. + * Getter for public.t_sales.recipefilename. */ public String getRecipefilename() { return (String) get(10); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalescontentRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalescontentRecord.java index 303c884..3505172 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalescontentRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalescontentRecord.java @@ -18,7 +18,7 @@ public class TSalescontentRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.t_salescontent.fk_sales. + * Setter for public.t_salescontent.fk_sales. */ public TSalescontentRecord setFkSales(Integer value) { set(0, value); @@ -26,14 +26,14 @@ public class TSalescontentRecord extends TableRecordImpl { } /** - * Getter for camp.t_salescontent.fk_sales. + * Getter for public.t_salescontent.fk_sales. */ public Integer getFkSales() { return (Integer) get(0); } /** - * Setter for camp.t_salescontent.fk_salescontenttype. + * Setter for public.t_salescontent.fk_salescontenttype. */ public TSalescontentRecord setFkSalescontenttype(String value) { set(1, value); @@ -41,7 +41,7 @@ public class TSalescontentRecord extends TableRecordImpl { } /** - * Getter for camp.t_salescontent.fk_salescontenttype. + * Getter for public.t_salescontent.fk_salescontenttype. */ public String getFkSalescontenttype() { return (String) get(1); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalescontenttypeRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalescontenttypeRecord.java index 89c5017..329fd3b 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalescontenttypeRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalescontenttypeRecord.java @@ -19,7 +19,7 @@ public class TSalescontenttypeRecord extends UpdatableRecordImplcamp.t_salescontenttype.name. + * Setter for public.t_salescontenttype.name. */ public TSalescontenttypeRecord setName(String value) { set(0, value); @@ -27,7 +27,7 @@ public class TSalescontenttypeRecord extends UpdatableRecordImplcamp.t_salescontenttype.name. + * Getter for public.t_salescontenttype.name. */ public String getName() { return (String) get(0); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VAdultRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VAdultRecord.java new file mode 100644 index 0000000..8b80a81 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VAdultRecord.java @@ -0,0 +1,137 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.records; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; +import de.jottyfan.camporganizer.db.jooq.tables.VAdult; + +import org.jooq.impl.TableRecordImpl; +import org.jooq.types.YearToSecond; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VAdultRecord extends TableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.v_adult.age. + */ + public VAdultRecord setAge(YearToSecond value) { + set(0, value); + return this; + } + + /** + * Getter for public.v_adult.age. + */ + public YearToSecond getAge() { + return (YearToSecond) get(0); + } + + /** + * Setter for public.v_adult.forename. + */ + public VAdultRecord setForename(String value) { + set(1, value); + return this; + } + + /** + * Getter for public.v_adult.forename. + */ + public String getForename() { + return (String) get(1); + } + + /** + * Setter for public.v_adult.surname. + */ + public VAdultRecord setSurname(String value) { + set(2, value); + return this; + } + + /** + * Getter for public.v_adult.surname. + */ + public String getSurname() { + return (String) get(2); + } + + /** + * Setter for public.v_adult.camprole. + */ + public VAdultRecord setCamprole(EnumCamprole value) { + set(3, value); + return this; + } + + /** + * Getter for public.v_adult.camprole. + */ + public EnumCamprole getCamprole() { + return (EnumCamprole) get(3); + } + + /** + * Setter for public.v_adult.adult. + */ + public VAdultRecord setAdult(Boolean value) { + set(4, value); + return this; + } + + /** + * Getter for public.v_adult.adult. + */ + public Boolean getAdult() { + return (Boolean) get(4); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached VAdultRecord + */ + public VAdultRecord() { + super(VAdult.V_ADULT); + } + + /** + * Create a detached, initialised VAdultRecord + */ + public VAdultRecord(YearToSecond age, String forename, String surname, EnumCamprole camprole, Boolean adult) { + super(VAdult.V_ADULT); + + setAge(age); + setForename(forename); + setSurname(surname); + setCamprole(camprole); + setAdult(adult); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised VAdultRecord + */ + public VAdultRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VAdult value) { + super(VAdult.V_ADULT); + + if (value != null) { + setAge(value.getAge()); + setForename(value.getForename()); + setSurname(value.getSurname()); + setCamprole(value.getCamprole()); + setAdult(value.getAdult()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VBudgetRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VBudgetRecord.java index 48cbeb9..10268a7 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VBudgetRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VBudgetRecord.java @@ -20,7 +20,7 @@ public class VBudgetRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.v_budget.budget. + * Setter for public.v_budget.budget. */ public VBudgetRecord setBudget(BigDecimal value) { set(0, value); @@ -28,14 +28,14 @@ public class VBudgetRecord extends TableRecordImpl { } /** - * Getter for camp.v_budget.budget. + * Getter for public.v_budget.budget. */ public BigDecimal getBudget() { return (BigDecimal) get(0); } /** - * Setter for camp.v_budget.fk_camp. + * Setter for public.v_budget.fk_camp. */ public VBudgetRecord setFkCamp(Integer value) { set(1, value); @@ -43,14 +43,14 @@ public class VBudgetRecord extends TableRecordImpl { } /** - * Getter for camp.v_budget.fk_camp. + * Getter for public.v_budget.fk_camp. */ public Integer getFkCamp() { return (Integer) get(1); } /** - * Setter for camp.v_budget.name. + * Setter for public.v_budget.name. */ public VBudgetRecord setName(String value) { set(2, value); @@ -58,14 +58,14 @@ public class VBudgetRecord extends TableRecordImpl { } /** - * Getter for camp.v_budget.name. + * Getter for public.v_budget.name. */ public String getName() { return (String) get(2); } /** - * Setter for camp.v_budget.location. + * Setter for public.v_budget.location. */ public VBudgetRecord setLocation(String value) { set(3, value); @@ -73,14 +73,14 @@ public class VBudgetRecord extends TableRecordImpl { } /** - * Getter for camp.v_budget.location. + * Getter for public.v_budget.location. */ public String getLocation() { return (String) get(3); } /** - * Setter for camp.v_budget.year. + * Setter for public.v_budget.year. */ public VBudgetRecord setYear(Double value) { set(4, value); @@ -88,7 +88,7 @@ public class VBudgetRecord extends TableRecordImpl { } /** - * Getter for camp.v_budget.year. + * Getter for public.v_budget.year. */ public Double getYear() { return (Double) get(4); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampBudgetRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampBudgetRecord.java index 9fadf7a..9510a43 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampBudgetRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampBudgetRecord.java @@ -20,7 +20,7 @@ public class VCampBudgetRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.v_camp_budget.budget. + * Setter for public.v_camp_budget.budget. */ public VCampBudgetRecord setBudget(BigDecimal value) { set(0, value); @@ -28,14 +28,14 @@ public class VCampBudgetRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp_budget.budget. + * Getter for public.v_camp_budget.budget. */ public BigDecimal getBudget() { return (BigDecimal) get(0); } /** - * Setter for camp.v_camp_budget.fk_camp. + * Setter for public.v_camp_budget.fk_camp. */ public VCampBudgetRecord setFkCamp(Integer value) { set(1, value); @@ -43,14 +43,14 @@ public class VCampBudgetRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp_budget.fk_camp. + * Getter for public.v_camp_budget.fk_camp. */ public Integer getFkCamp() { return (Integer) get(1); } /** - * Setter for camp.v_camp_budget.camp_name. + * Setter for public.v_camp_budget.camp_name. */ public VCampBudgetRecord setCampName(String value) { set(2, value); @@ -58,14 +58,14 @@ public class VCampBudgetRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp_budget.camp_name. + * Getter for public.v_camp_budget.camp_name. */ public String getCampName() { return (String) get(2); } /** - * Setter for camp.v_camp_budget.year. + * Setter for public.v_camp_budget.year. */ public VCampBudgetRecord setYear(Double value) { set(3, value); @@ -73,7 +73,7 @@ public class VCampBudgetRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp_budget.year. + * Getter for public.v_camp_budget.year. */ public Double getYear() { return (Double) get(3); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampBudgetYearRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampBudgetYearRecord.java index dd54bfc..72226bd 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampBudgetYearRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampBudgetYearRecord.java @@ -20,7 +20,7 @@ public class VCampBudgetYearRecord extends TableRecordImplcamp.v_camp_budget_year.sum. + * Setter for public.v_camp_budget_year.sum. */ public VCampBudgetYearRecord setSum(BigDecimal value) { set(0, value); @@ -28,14 +28,14 @@ public class VCampBudgetYearRecord extends TableRecordImplcamp.v_camp_budget_year.sum. + * Getter for public.v_camp_budget_year.sum. */ public BigDecimal getSum() { return (BigDecimal) get(0); } /** - * Setter for camp.v_camp_budget_year.year. + * Setter for public.v_camp_budget_year.year. */ public VCampBudgetYearRecord setYear(Double value) { set(1, value); @@ -43,7 +43,7 @@ public class VCampBudgetYearRecord extends TableRecordImplcamp.v_camp_budget_year.year. + * Getter for public.v_camp_budget_year.year. */ public Double getYear() { return (Double) get(1); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampRecord.java index 77a339e..49cb5b5 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampRecord.java @@ -20,7 +20,7 @@ public class VCampRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.v_camp.pk. + * Setter for public.v_camp.pk. */ public VCampRecord setPk(Integer value) { set(0, value); @@ -28,14 +28,14 @@ public class VCampRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp.pk. + * Getter for public.v_camp.pk. */ public Integer getPk() { return (Integer) get(0); } /** - * Setter for camp.v_camp.is_over. + * Setter for public.v_camp.is_over. */ public VCampRecord setIsOver(Boolean value) { set(1, value); @@ -43,14 +43,14 @@ public class VCampRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp.is_over. + * Getter for public.v_camp.is_over. */ public Boolean getIsOver() { return (Boolean) get(1); } /** - * Setter for camp.v_camp.name. + * Setter for public.v_camp.name. */ public VCampRecord setName(String value) { set(2, value); @@ -58,14 +58,14 @@ public class VCampRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp.name. + * Getter for public.v_camp.name. */ public String getName() { return (String) get(2); } /** - * Setter for camp.v_camp.arrive. + * Setter for public.v_camp.arrive. */ public VCampRecord setArrive(LocalDateTime value) { set(3, value); @@ -73,14 +73,14 @@ public class VCampRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp.arrive. + * Getter for public.v_camp.arrive. */ public LocalDateTime getArrive() { return (LocalDateTime) get(3); } /** - * Setter for camp.v_camp.depart. + * Setter for public.v_camp.depart. */ public VCampRecord setDepart(LocalDateTime value) { set(4, value); @@ -88,14 +88,14 @@ public class VCampRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp.depart. + * Getter for public.v_camp.depart. */ public LocalDateTime getDepart() { return (LocalDateTime) get(4); } /** - * Setter for camp.v_camp.year. + * Setter for public.v_camp.year. */ public VCampRecord setYear(Double value) { set(5, value); @@ -103,14 +103,14 @@ public class VCampRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp.year. + * Getter for public.v_camp.year. */ public Double getYear() { return (Double) get(5); } /** - * Setter for camp.v_camp.location_name. + * Setter for public.v_camp.location_name. */ public VCampRecord setLocationName(String value) { set(6, value); @@ -118,14 +118,14 @@ public class VCampRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp.location_name. + * Getter for public.v_camp.location_name. */ public String getLocationName() { return (String) get(6); } /** - * Setter for camp.v_camp.min_age. + * Setter for public.v_camp.min_age. */ public VCampRecord setMinAge(Integer value) { set(7, value); @@ -133,14 +133,14 @@ public class VCampRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp.min_age. + * Getter for public.v_camp.min_age. */ public Integer getMinAge() { return (Integer) get(7); } /** - * Setter for camp.v_camp.max_age. + * Setter for public.v_camp.max_age. */ public VCampRecord setMaxAge(Integer value) { set(8, value); @@ -148,14 +148,14 @@ public class VCampRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp.max_age. + * Getter for public.v_camp.max_age. */ public Integer getMaxAge() { return (Integer) get(8); } /** - * Setter for camp.v_camp.url. + * Setter for public.v_camp.url. */ public VCampRecord setUrl(String value) { set(9, value); @@ -163,14 +163,14 @@ public class VCampRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp.url. + * Getter for public.v_camp.url. */ public String getUrl() { return (String) get(9); } /** - * Setter for camp.v_camp.price. + * Setter for public.v_camp.price. */ public VCampRecord setPrice(String value) { set(10, value); @@ -178,14 +178,14 @@ public class VCampRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp.price. + * Getter for public.v_camp.price. */ public String getPrice() { return (String) get(10); } /** - * Setter for camp.v_camp.countries. + * Setter for public.v_camp.countries. */ public VCampRecord setCountries(String value) { set(11, value); @@ -193,14 +193,14 @@ public class VCampRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp.countries. + * Getter for public.v_camp.countries. */ public String getCountries() { return (String) get(11); } /** - * Setter for camp.v_camp.fk_document. + * Setter for public.v_camp.fk_document. */ public VCampRecord setFkDocument(Integer value) { set(12, value); @@ -208,7 +208,7 @@ public class VCampRecord extends TableRecordImpl { } /** - * Getter for camp.v_camp.fk_document. + * Getter for public.v_camp.fk_document. */ public Integer getFkDocument() { return (Integer) get(12); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampdocumentRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampdocumentRecord.java index 52821c8..f114bfb 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampdocumentRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampdocumentRecord.java @@ -22,7 +22,7 @@ public class VCampdocumentRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.v_campdocument.fk_camp. + * Setter for public.v_campdocument.fk_camp. */ public VCampdocumentRecord setFkCamp(Integer value) { set(0, value); @@ -30,14 +30,14 @@ public class VCampdocumentRecord extends TableRecordImpl { } /** - * Getter for camp.v_campdocument.fk_camp. + * Getter for public.v_campdocument.fk_camp. */ public Integer getFkCamp() { return (Integer) get(0); } /** - * Setter for camp.v_campdocument.campname. + * Setter for public.v_campdocument.campname. */ public VCampdocumentRecord setCampname(String value) { set(1, value); @@ -45,14 +45,14 @@ public class VCampdocumentRecord extends TableRecordImpl { } /** - * Getter for camp.v_campdocument.campname. + * Getter for public.v_campdocument.campname. */ public String getCampname() { return (String) get(1); } /** - * Setter for camp.v_campdocument.arrive. + * Setter for public.v_campdocument.arrive. */ public VCampdocumentRecord setArrive(LocalDateTime value) { set(2, value); @@ -60,14 +60,14 @@ public class VCampdocumentRecord extends TableRecordImpl { } /** - * Getter for camp.v_campdocument.arrive. + * Getter for public.v_campdocument.arrive. */ public LocalDateTime getArrive() { return (LocalDateTime) get(2); } /** - * Setter for camp.v_campdocument.fk_document. + * Setter for public.v_campdocument.fk_document. */ public VCampdocumentRecord setFkDocument(Integer value) { set(3, value); @@ -75,14 +75,14 @@ public class VCampdocumentRecord extends TableRecordImpl { } /** - * Getter for camp.v_campdocument.fk_document. + * Getter for public.v_campdocument.fk_document. */ public Integer getFkDocument() { return (Integer) get(3); } /** - * Setter for camp.v_campdocument.document. + * Setter for public.v_campdocument.document. */ public VCampdocumentRecord setDocument(String value) { set(4, value); @@ -90,14 +90,14 @@ public class VCampdocumentRecord extends TableRecordImpl { } /** - * Getter for camp.v_campdocument.document. + * Getter for public.v_campdocument.document. */ public String getDocument() { return (String) get(4); } /** - * Setter for camp.v_campdocument.documentname. + * Setter for public.v_campdocument.documentname. */ public VCampdocumentRecord setDocumentname(String value) { set(5, value); @@ -105,14 +105,14 @@ public class VCampdocumentRecord extends TableRecordImpl { } /** - * Getter for camp.v_campdocument.documentname. + * Getter for public.v_campdocument.documentname. */ public String getDocumentname() { return (String) get(5); } /** - * Setter for camp.v_campdocument.doctype. + * Setter for public.v_campdocument.doctype. */ public VCampdocumentRecord setDoctype(EnumDocument value) { set(6, value); @@ -120,14 +120,14 @@ public class VCampdocumentRecord extends TableRecordImpl { } /** - * Getter for camp.v_campdocument.doctype. + * Getter for public.v_campdocument.doctype. */ public EnumDocument getDoctype() { return (EnumDocument) get(6); } /** - * Setter for camp.v_campdocument.filetype. + * Setter for public.v_campdocument.filetype. */ public VCampdocumentRecord setFiletype(EnumFiletype value) { set(7, value); @@ -135,7 +135,7 @@ public class VCampdocumentRecord extends TableRecordImpl { } /** - * Getter for camp.v_campdocument.filetype. + * Getter for public.v_campdocument.filetype. */ public EnumFiletype getFiletype() { return (EnumFiletype) get(7); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCamproleRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCamproleRecord.java index 338fdb0..1138609 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCamproleRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCamproleRecord.java @@ -19,7 +19,7 @@ public class VCamproleRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.v_camprole.name. + * Setter for public.v_camprole.name. */ public VCamproleRecord setName(EnumCamprole value) { set(0, value); @@ -27,7 +27,7 @@ public class VCamproleRecord extends TableRecordImpl { } /** - * Getter for camp.v_camprole.name. + * Getter for public.v_camprole.name. */ public EnumCamprole getName() { return (EnumCamprole) get(0); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VDocumentRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VDocumentRecord.java index e202ae9..2343680 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VDocumentRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VDocumentRecord.java @@ -20,7 +20,7 @@ public class VDocumentRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.v_document.pk. + * Setter for public.v_document.pk. */ public VDocumentRecord setPk(Integer value) { set(0, value); @@ -28,14 +28,14 @@ public class VDocumentRecord extends TableRecordImpl { } /** - * Getter for camp.v_document.pk. + * Getter for public.v_document.pk. */ public Integer getPk() { return (Integer) get(0); } /** - * Setter for camp.v_document.doctype. + * Setter for public.v_document.doctype. */ public VDocumentRecord setDoctype(EnumDocument value) { set(1, value); @@ -43,14 +43,14 @@ public class VDocumentRecord extends TableRecordImpl { } /** - * Getter for camp.v_document.doctype. + * Getter for public.v_document.doctype. */ public EnumDocument getDoctype() { return (EnumDocument) get(1); } /** - * Setter for camp.v_document.name. + * Setter for public.v_document.name. */ public VDocumentRecord setName(String value) { set(2, value); @@ -58,14 +58,14 @@ public class VDocumentRecord extends TableRecordImpl { } /** - * Getter for camp.v_document.name. + * Getter for public.v_document.name. */ public String getName() { return (String) get(2); } /** - * Setter for camp.v_document.document. + * Setter for public.v_document.document. */ public VDocumentRecord setDocument(String value) { set(3, value); @@ -73,14 +73,14 @@ public class VDocumentRecord extends TableRecordImpl { } /** - * Getter for camp.v_document.document. + * Getter for public.v_document.document. */ public String getDocument() { return (String) get(3); } /** - * Setter for camp.v_document.filetype. + * Setter for public.v_document.filetype. */ public VDocumentRecord setFiletype(EnumFiletype value) { set(4, value); @@ -88,14 +88,14 @@ public class VDocumentRecord extends TableRecordImpl { } /** - * Getter for camp.v_document.filetype. + * Getter for public.v_document.filetype. */ public EnumFiletype getFiletype() { return (EnumFiletype) get(4); } /** - * Setter for camp.v_document.roles. + * Setter for public.v_document.roles. */ public VDocumentRecord setRoles(String value) { set(5, value); @@ -103,7 +103,7 @@ public class VDocumentRecord extends TableRecordImpl { } /** - * Getter for camp.v_document.roles. + * Getter for public.v_document.roles. */ public String getRoles() { return (String) get(5); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VDsgvoDeleteCandidateRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VDsgvoDeleteCandidateRecord.java new file mode 100644 index 0000000..b5ccb1e --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VDsgvoDeleteCandidateRecord.java @@ -0,0 +1,205 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.records; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; +import de.jottyfan.camporganizer.db.jooq.tables.VDsgvoDeleteCandidate; + +import org.jooq.impl.TableRecordImpl; +import org.jooq.types.YearToSecond; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VDsgvoDeleteCandidateRecord extends TableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.v_dsgvo_delete_candidate.fk_person. + */ + public VDsgvoDeleteCandidateRecord setFkPerson(Integer value) { + set(0, value); + return this; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.fk_person. + */ + public Integer getFkPerson() { + return (Integer) get(0); + } + + /** + * Setter for public.v_dsgvo_delete_candidate.forename. + */ + public VDsgvoDeleteCandidateRecord setForename(String value) { + set(1, value); + return this; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.forename. + */ + public String getForename() { + return (String) get(1); + } + + /** + * Setter for public.v_dsgvo_delete_candidate.surname. + */ + public VDsgvoDeleteCandidateRecord setSurname(String value) { + set(2, value); + return this; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.surname. + */ + public String getSurname() { + return (String) get(2); + } + + /** + * Setter for public.v_dsgvo_delete_candidate.fk_camp. + */ + public VDsgvoDeleteCandidateRecord setFkCamp(Integer value) { + set(3, value); + return this; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.fk_camp. + */ + public Integer getFkCamp() { + return (Integer) get(3); + } + + /** + * Setter for public.v_dsgvo_delete_candidate.age. + */ + public VDsgvoDeleteCandidateRecord setAge(YearToSecond value) { + set(4, value); + return this; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.age. + */ + public YearToSecond getAge() { + return (YearToSecond) get(4); + } + + /** + * Setter for public.v_dsgvo_delete_candidate.camprole. + */ + public VDsgvoDeleteCandidateRecord setCamprole(EnumCamprole value) { + set(5, value); + return this; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.camprole. + */ + public EnumCamprole getCamprole() { + return (EnumCamprole) get(5); + } + + /** + * Setter for public.v_dsgvo_delete_candidate.name. + */ + public VDsgvoDeleteCandidateRecord setName(String value) { + set(6, value); + return this; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.name. + */ + public String getName() { + return (String) get(6); + } + + /** + * Setter for public.v_dsgvo_delete_candidate.year. + */ + public VDsgvoDeleteCandidateRecord setYear(Double value) { + set(7, value); + return this; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.year. + */ + public Double getYear() { + return (Double) get(7); + } + + /** + * Setter for public.v_dsgvo_delete_candidate.is_over. + */ + public VDsgvoDeleteCandidateRecord setIsOver(Boolean value) { + set(8, value); + return this; + } + + /** + * Getter for public.v_dsgvo_delete_candidate.is_over. + */ + public Boolean getIsOver() { + return (Boolean) get(8); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached VDsgvoDeleteCandidateRecord + */ + public VDsgvoDeleteCandidateRecord() { + super(VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE); + } + + /** + * Create a detached, initialised VDsgvoDeleteCandidateRecord + */ + public VDsgvoDeleteCandidateRecord(Integer fkPerson, String forename, String surname, Integer fkCamp, YearToSecond age, EnumCamprole camprole, String name, Double year, Boolean isOver) { + super(VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE); + + setFkPerson(fkPerson); + setForename(forename); + setSurname(surname); + setFkCamp(fkCamp); + setAge(age); + setCamprole(camprole); + setName(name); + setYear(year); + setIsOver(isOver); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised VDsgvoDeleteCandidateRecord + */ + public VDsgvoDeleteCandidateRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VDsgvoDeleteCandidate value) { + super(VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE); + + if (value != null) { + setFkPerson(value.getFkPerson()); + setForename(value.getForename()); + setSurname(value.getSurname()); + setFkCamp(value.getFkCamp()); + setAge(value.getAge()); + setCamprole(value.getCamprole()); + setName(value.getName()); + setYear(value.getYear()); + setIsOver(value.getIsOver()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VFeederRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VFeederRecord.java new file mode 100644 index 0000000..da11d14 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VFeederRecord.java @@ -0,0 +1,239 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.records; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumSex; +import de.jottyfan.camporganizer.db.jooq.tables.VFeeder; + +import org.jooq.impl.TableRecordImpl; +import org.jooq.types.YearToSecond; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VFeederRecord extends TableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.v_feeder.forename. + */ + public VFeederRecord setForename(String value) { + set(0, value); + return this; + } + + /** + * Getter for public.v_feeder.forename. + */ + public String getForename() { + return (String) get(0); + } + + /** + * Setter for public.v_feeder.surname. + */ + public VFeederRecord setSurname(String value) { + set(1, value); + return this; + } + + /** + * Getter for public.v_feeder.surname. + */ + public String getSurname() { + return (String) get(1); + } + + /** + * Setter for public.v_feeder.street. + */ + public VFeederRecord setStreet(String value) { + set(2, value); + return this; + } + + /** + * Getter for public.v_feeder.street. + */ + public String getStreet() { + return (String) get(2); + } + + /** + * Setter for public.v_feeder.zip. + */ + public VFeederRecord setZip(String value) { + set(3, value); + return this; + } + + /** + * Getter for public.v_feeder.zip. + */ + public String getZip() { + return (String) get(3); + } + + /** + * Setter for public.v_feeder.city. + */ + public VFeederRecord setCity(String value) { + set(4, value); + return this; + } + + /** + * Getter for public.v_feeder.city. + */ + public String getCity() { + return (String) get(4); + } + + /** + * Setter for public.v_feeder.phone. + */ + public VFeederRecord setPhone(String value) { + set(5, value); + return this; + } + + /** + * Getter for public.v_feeder.phone. + */ + public String getPhone() { + return (String) get(5); + } + + /** + * Setter for public.v_feeder.age. + */ + public VFeederRecord setAge(YearToSecond value) { + set(6, value); + return this; + } + + /** + * Getter for public.v_feeder.age. + */ + public YearToSecond getAge() { + return (YearToSecond) get(6); + } + + /** + * Setter for public.v_feeder.email. + */ + public VFeederRecord setEmail(String value) { + set(7, value); + return this; + } + + /** + * Getter for public.v_feeder.email. + */ + public String getEmail() { + return (String) get(7); + } + + /** + * Setter for public.v_feeder.sex. + */ + public VFeederRecord setSex(EnumSex value) { + set(8, value); + return this; + } + + /** + * Getter for public.v_feeder.sex. + */ + public EnumSex getSex() { + return (EnumSex) get(8); + } + + /** + * Setter for public.v_feeder.name. + */ + public VFeederRecord setName(String value) { + set(9, value); + return this; + } + + /** + * Getter for public.v_feeder.name. + */ + public String getName() { + return (String) get(9); + } + + /** + * Setter for public.v_feeder.year. + */ + public VFeederRecord setYear(Double value) { + set(10, value); + return this; + } + + /** + * Getter for public.v_feeder.year. + */ + public Double getYear() { + return (Double) get(10); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached VFeederRecord + */ + public VFeederRecord() { + super(VFeeder.V_FEEDER); + } + + /** + * Create a detached, initialised VFeederRecord + */ + public VFeederRecord(String forename, String surname, String street, String zip, String city, String phone, YearToSecond age, String email, EnumSex sex, String name, Double year) { + super(VFeeder.V_FEEDER); + + setForename(forename); + setSurname(surname); + setStreet(street); + setZip(zip); + setCity(city); + setPhone(phone); + setAge(age); + setEmail(email); + setSex(sex); + setName(name); + setYear(year); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised VFeederRecord + */ + public VFeederRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VFeeder value) { + super(VFeeder.V_FEEDER); + + if (value != null) { + setForename(value.getForename()); + setSurname(value.getSurname()); + setStreet(value.getStreet()); + setZip(value.getZip()); + setCity(value.getCity()); + setPhone(value.getPhone()); + setAge(value.getAge()); + setEmail(value.getEmail()); + setSex(value.getSex()); + setName(value.getName()); + setYear(value.getYear()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VProfileRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VProfileRecord.java index 2324183..3e8bd4a 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VProfileRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VProfileRecord.java @@ -19,7 +19,7 @@ public class VProfileRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.v_profile.pk. + * Setter for public.v_profile.pk. */ public VProfileRecord setPk(Integer value) { set(0, value); @@ -27,14 +27,14 @@ public class VProfileRecord extends TableRecordImpl { } /** - * Getter for camp.v_profile.pk. + * Getter for public.v_profile.pk. */ public Integer getPk() { return (Integer) get(0); } /** - * Setter for camp.v_profile.forename. + * Setter for public.v_profile.forename. */ public VProfileRecord setForename(String value) { set(1, value); @@ -42,14 +42,14 @@ public class VProfileRecord extends TableRecordImpl { } /** - * Getter for camp.v_profile.forename. + * Getter for public.v_profile.forename. */ public String getForename() { return (String) get(1); } /** - * Setter for camp.v_profile.surname. + * Setter for public.v_profile.surname. */ public VProfileRecord setSurname(String value) { set(2, value); @@ -57,14 +57,14 @@ public class VProfileRecord extends TableRecordImpl { } /** - * Getter for camp.v_profile.surname. + * Getter for public.v_profile.surname. */ public String getSurname() { return (String) get(2); } /** - * Setter for camp.v_profile.username. + * Setter for public.v_profile.username. */ public VProfileRecord setUsername(String value) { set(3, value); @@ -72,14 +72,14 @@ public class VProfileRecord extends TableRecordImpl { } /** - * Getter for camp.v_profile.username. + * Getter for public.v_profile.username. */ public String getUsername() { return (String) get(3); } /** - * Setter for camp.v_profile.password. + * Setter for public.v_profile.password. */ public VProfileRecord setPassword(String value) { set(4, value); @@ -87,14 +87,14 @@ public class VProfileRecord extends TableRecordImpl { } /** - * Getter for camp.v_profile.password. + * Getter for public.v_profile.password. */ public String getPassword() { return (String) get(4); } /** - * Setter for camp.v_profile.uuid. + * Setter for public.v_profile.uuid. */ public VProfileRecord setUuid(String value) { set(5, value); @@ -102,14 +102,14 @@ public class VProfileRecord extends TableRecordImpl { } /** - * Getter for camp.v_profile.uuid. + * Getter for public.v_profile.uuid. */ public String getUuid() { return (String) get(5); } /** - * Setter for camp.v_profile.roles. + * Setter for public.v_profile.roles. */ public VProfileRecord setRoles(EnumRole[] value) { set(6, value); @@ -117,7 +117,7 @@ public class VProfileRecord extends TableRecordImpl { } /** - * Getter for camp.v_profile.roles. + * Getter for public.v_profile.roles. */ public EnumRole[] getRoles() { return (EnumRole[]) get(6); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VRegistrationRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VRegistrationRecord.java index e02ead0..509cfdf 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VRegistrationRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VRegistrationRecord.java @@ -21,7 +21,7 @@ public class VRegistrationRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.v_registration.pk. + * Setter for public.v_registration.pk. */ public VRegistrationRecord setPk(Integer value) { set(0, value); @@ -29,14 +29,14 @@ public class VRegistrationRecord extends TableRecordImpl { } /** - * Getter for camp.v_registration.pk. + * Getter for public.v_registration.pk. */ public Integer getPk() { return (Integer) get(0); } /** - * Setter for camp.v_registration.forename. + * Setter for public.v_registration.forename. */ public VRegistrationRecord setForename(String value) { set(1, value); @@ -44,14 +44,14 @@ public class VRegistrationRecord extends TableRecordImpl { } /** - * Getter for camp.v_registration.forename. + * Getter for public.v_registration.forename. */ public String getForename() { return (String) get(1); } /** - * Setter for camp.v_registration.surname. + * Setter for public.v_registration.surname. */ public VRegistrationRecord setSurname(String value) { set(2, value); @@ -59,14 +59,14 @@ public class VRegistrationRecord extends TableRecordImpl { } /** - * Getter for camp.v_registration.surname. + * Getter for public.v_registration.surname. */ public String getSurname() { return (String) get(2); } /** - * Setter for camp.v_registration.street. + * Setter for public.v_registration.street. */ public VRegistrationRecord setStreet(String value) { set(3, value); @@ -74,14 +74,14 @@ public class VRegistrationRecord extends TableRecordImpl { } /** - * Getter for camp.v_registration.street. + * Getter for public.v_registration.street. */ public String getStreet() { return (String) get(3); } /** - * Setter for camp.v_registration.zip. + * Setter for public.v_registration.zip. */ public VRegistrationRecord setZip(String value) { set(4, value); @@ -89,14 +89,14 @@ public class VRegistrationRecord extends TableRecordImpl { } /** - * Getter for camp.v_registration.zip. + * Getter for public.v_registration.zip. */ public String getZip() { return (String) get(4); } /** - * Setter for camp.v_registration.city. + * Setter for public.v_registration.city. */ public VRegistrationRecord setCity(String value) { set(5, value); @@ -104,14 +104,14 @@ public class VRegistrationRecord extends TableRecordImpl { } /** - * Getter for camp.v_registration.city. + * Getter for public.v_registration.city. */ public String getCity() { return (String) get(5); } /** - * Setter for camp.v_registration.phone. + * Setter for public.v_registration.phone. */ public VRegistrationRecord setPhone(String value) { set(6, value); @@ -119,14 +119,14 @@ public class VRegistrationRecord extends TableRecordImpl { } /** - * Getter for camp.v_registration.phone. + * Getter for public.v_registration.phone. */ public String getPhone() { return (String) get(6); } /** - * Setter for camp.v_registration.birthdate. + * Setter for public.v_registration.birthdate. */ public VRegistrationRecord setBirthdate(LocalDate value) { set(7, value); @@ -134,14 +134,14 @@ public class VRegistrationRecord extends TableRecordImpl { } /** - * Getter for camp.v_registration.birthdate. + * Getter for public.v_registration.birthdate. */ public LocalDate getBirthdate() { return (LocalDate) get(7); } /** - * Setter for camp.v_registration.camprole. + * Setter for public.v_registration.camprole. */ public VRegistrationRecord setCamprole(EnumCamprole value) { set(8, value); @@ -149,14 +149,14 @@ public class VRegistrationRecord extends TableRecordImpl { } /** - * Getter for camp.v_registration.camprole. + * Getter for public.v_registration.camprole. */ public EnumCamprole getCamprole() { return (EnumCamprole) get(8); } /** - * Setter for camp.v_registration.email. + * Setter for public.v_registration.email. */ public VRegistrationRecord setEmail(String value) { set(9, value); @@ -164,14 +164,14 @@ public class VRegistrationRecord extends TableRecordImpl { } /** - * Getter for camp.v_registration.email. + * Getter for public.v_registration.email. */ public String getEmail() { return (String) get(9); } /** - * Setter for camp.v_registration.campname. + * Setter for public.v_registration.campname. */ public VRegistrationRecord setCampname(String value) { set(10, value); @@ -179,7 +179,7 @@ public class VRegistrationRecord extends TableRecordImpl { } /** - * Getter for camp.v_registration.campname. + * Getter for public.v_registration.campname. */ public String getCampname() { return (String) get(10); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VRoleRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VRoleRecord.java index b5c786d..efc4f41 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VRoleRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VRoleRecord.java @@ -19,7 +19,7 @@ public class VRoleRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.v_role.unnest. + * Setter for public.v_role.unnest. */ public VRoleRecord setUnnest(EnumRole value) { set(0, value); @@ -27,7 +27,7 @@ public class VRoleRecord extends TableRecordImpl { } /** - * Getter for camp.v_role.unnest. + * Getter for public.v_role.unnest. */ public EnumRole getUnnest() { return (EnumRole) get(0); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VSalesRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VSalesRecord.java index 54ab747..1ddc42f 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VSalesRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VSalesRecord.java @@ -21,7 +21,7 @@ public class VSalesRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.v_sales.pk. + * Setter for public.v_sales.pk. */ public VSalesRecord setPk(Integer value) { set(0, value); @@ -29,14 +29,14 @@ public class VSalesRecord extends TableRecordImpl { } /** - * Getter for camp.v_sales.pk. + * Getter for public.v_sales.pk. */ public Integer getPk() { return (Integer) get(0); } /** - * Setter for camp.v_sales.trader. + * Setter for public.v_sales.trader. */ public VSalesRecord setTrader(String value) { set(1, value); @@ -44,14 +44,14 @@ public class VSalesRecord extends TableRecordImpl { } /** - * Getter for camp.v_sales.trader. + * Getter for public.v_sales.trader. */ public String getTrader() { return (String) get(1); } /** - * Setter for camp.v_sales.fk_camp. + * Setter for public.v_sales.fk_camp. */ public VSalesRecord setFkCamp(Integer value) { set(2, value); @@ -59,14 +59,14 @@ public class VSalesRecord extends TableRecordImpl { } /** - * Getter for camp.v_sales.fk_camp. + * Getter for public.v_sales.fk_camp. */ public Integer getFkCamp() { return (Integer) get(2); } /** - * Setter for camp.v_sales.name. + * Setter for public.v_sales.name. */ public VSalesRecord setName(String value) { set(3, value); @@ -74,14 +74,14 @@ public class VSalesRecord extends TableRecordImpl { } /** - * Getter for camp.v_sales.name. + * Getter for public.v_sales.name. */ public String getName() { return (String) get(3); } /** - * Setter for camp.v_sales.fk_location. + * Setter for public.v_sales.fk_location. */ public VSalesRecord setFkLocation(Integer value) { set(4, value); @@ -89,14 +89,14 @@ public class VSalesRecord extends TableRecordImpl { } /** - * Getter for camp.v_sales.fk_location. + * Getter for public.v_sales.fk_location. */ public Integer getFkLocation() { return (Integer) get(4); } /** - * Setter for camp.v_sales.location. + * Setter for public.v_sales.location. */ public VSalesRecord setLocation(String value) { set(5, value); @@ -104,14 +104,14 @@ public class VSalesRecord extends TableRecordImpl { } /** - * Getter for camp.v_sales.location. + * Getter for public.v_sales.location. */ public String getLocation() { return (String) get(5); } /** - * Setter for camp.v_sales.incredients. + * Setter for public.v_sales.incredients. */ public VSalesRecord setIncredients(String value) { set(6, value); @@ -119,14 +119,14 @@ public class VSalesRecord extends TableRecordImpl { } /** - * Getter for camp.v_sales.incredients. + * Getter for public.v_sales.incredients. */ public String getIncredients() { return (String) get(6); } /** - * Setter for camp.v_sales.year. + * Setter for public.v_sales.year. */ public VSalesRecord setYear(Double value) { set(7, value); @@ -134,14 +134,14 @@ public class VSalesRecord extends TableRecordImpl { } /** - * Getter for camp.v_sales.year. + * Getter for public.v_sales.year. */ public Double getYear() { return (Double) get(7); } /** - * Setter for camp.v_sales.fk_sales. + * Setter for public.v_sales.fk_sales. */ public VSalesRecord setFkSales(Integer value) { set(8, value); @@ -149,14 +149,14 @@ public class VSalesRecord extends TableRecordImpl { } /** - * Getter for camp.v_sales.fk_sales. + * Getter for public.v_sales.fk_sales. */ public Integer getFkSales() { return (Integer) get(8); } /** - * Setter for camp.v_sales.provider. + * Setter for public.v_sales.provider. */ public VSalesRecord setProvider(String value) { set(9, value); @@ -164,14 +164,14 @@ public class VSalesRecord extends TableRecordImpl { } /** - * Getter for camp.v_sales.provider. + * Getter for public.v_sales.provider. */ public String getProvider() { return (String) get(9); } /** - * Setter for camp.v_sales.cash. + * Setter for public.v_sales.cash. */ public VSalesRecord setCash(BigDecimal value) { set(10, value); @@ -179,14 +179,14 @@ public class VSalesRecord extends TableRecordImpl { } /** - * Getter for camp.v_sales.cash. + * Getter for public.v_sales.cash. */ public BigDecimal getCash() { return (BigDecimal) get(10); } /** - * Setter for camp.v_sales.buydate. + * Setter for public.v_sales.buydate. */ public VSalesRecord setBuydate(LocalDateTime value) { set(11, value); @@ -194,14 +194,14 @@ public class VSalesRecord extends TableRecordImpl { } /** - * Getter for camp.v_sales.buydate. + * Getter for public.v_sales.buydate. */ public LocalDateTime getBuydate() { return (LocalDateTime) get(11); } /** - * Setter for camp.v_sales.recipenumber. + * Setter for public.v_sales.recipenumber. */ public VSalesRecord setRecipenumber(String value) { set(12, value); @@ -209,14 +209,14 @@ public class VSalesRecord extends TableRecordImpl { } /** - * Getter for camp.v_sales.recipenumber. + * Getter for public.v_sales.recipenumber. */ public String getRecipenumber() { return (String) get(12); } /** - * Setter for camp.v_sales.recipeshot. + * Setter for public.v_sales.recipeshot. */ public VSalesRecord setRecipeshot(byte[] value) { set(13, value); @@ -224,14 +224,14 @@ public class VSalesRecord extends TableRecordImpl { } /** - * Getter for camp.v_sales.recipeshot. + * Getter for public.v_sales.recipeshot. */ public byte[] getRecipeshot() { return (byte[]) get(13); } /** - * Setter for camp.v_sales.recipenote. + * Setter for public.v_sales.recipenote. */ public VSalesRecord setRecipenote(String value) { set(14, value); @@ -239,14 +239,14 @@ public class VSalesRecord extends TableRecordImpl { } /** - * Getter for camp.v_sales.recipenote. + * Getter for public.v_sales.recipenote. */ public String getRecipenote() { return (String) get(14); } /** - * Setter for camp.v_sales.content. + * Setter for public.v_sales.content. */ public VSalesRecord setContent(String[] value) { set(15, value); @@ -254,7 +254,7 @@ public class VSalesRecord extends TableRecordImpl { } /** - * Getter for camp.v_sales.content. + * Getter for public.v_sales.content. */ public String[] getContent() { return (String[]) get(15); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VVersionRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VVersionRecord.java index 1534d78..5c6b953 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VVersionRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VVersionRecord.java @@ -18,7 +18,7 @@ public class VVersionRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; /** - * Setter for camp.v_version.version. + * Setter for public.v_version.version. */ public VVersionRecord setVersion(String value) { set(0, value); @@ -26,7 +26,7 @@ public class VVersionRecord extends TableRecordImpl { } /** - * Getter for camp.v_version.version. + * Getter for public.v_version.version. */ public String getVersion() { return (String) get(0); diff --git a/src/main/resources/enums/camprole.sql b/src/main/resources/enums/camprole.sql new file mode 100644 index 0000000..5a4ff93 --- /dev/null +++ b/src/main/resources/enums/camprole.sql @@ -0,0 +1,7 @@ +create type public.enum_camprole as enum ( + 'student', + 'teacher', + 'director', + 'feeder', + 'observer' +); diff --git a/src/main/resources/enums/document.sql b/src/main/resources/enums/document.sql new file mode 100644 index 0000000..2726308 --- /dev/null +++ b/src/main/resources/enums/document.sql @@ -0,0 +1,5 @@ +create type public.enum_document as enum ( + 'camppass', + 'location', + 'camp' +); diff --git a/src/main/resources/enums/filetype.sql b/src/main/resources/enums/filetype.sql new file mode 100644 index 0000000..a4cbdc4 --- /dev/null +++ b/src/main/resources/enums/filetype.sql @@ -0,0 +1,6 @@ +create type public.enum_filetype as enum ( + 'pdf', + 'png', + 'jpg' +); + diff --git a/src/main/resources/enums/module.sql b/src/main/resources/enums/module.sql new file mode 100644 index 0000000..a958afa --- /dev/null +++ b/src/main/resources/enums/module.sql @@ -0,0 +1,4 @@ +create type public.enum_module as enum ( + 'registration', + 'business' +); diff --git a/src/main/resources/enums/role.sql b/src/main/resources/enums/role.sql new file mode 100644 index 0000000..bb94182 --- /dev/null +++ b/src/main/resources/enums/role.sql @@ -0,0 +1,8 @@ +create type public.enum_role as enum ( + 'subscriber', + 'registrator', + 'businessman', + 'admin', + 'campadmin', + 'registratoradmin' +); diff --git a/src/main/resources/enums/sex.sql b/src/main/resources/enums/sex.sql new file mode 100644 index 0000000..673dae8 --- /dev/null +++ b/src/main/resources/enums/sex.sql @@ -0,0 +1,4 @@ +create type public.enum_sex as enum ( + 'male', + 'female' +); diff --git a/src/main/resources/setup.sql b/src/main/resources/setup.sql new file mode 100644 index 0000000..578beae --- /dev/null +++ b/src/main/resources/setup.sql @@ -0,0 +1,40 @@ +begin; + \i enums/camprole.sql + \i enums/document.sql + \i enums/filetype.sql + \i enums/module.sql + \i enums/role.sql + \i enums/sex.sql + + \i tables/document.sql + \i tables/documentrole.sql + \i tables/location.sql + \i tables/profile.sql + \i tables/camp.sql + \i tables/campdocument.sql + \i tables/campprofile.sql + \i tables/person.sql + \i tables/persondocument.sql + \i tables/profilerole.sql + \i tables/rss.sql + \i tables/sales.sql + \i tables/salescontenttype.sql + \i tables/salescontent.sql + + \i views/adult.sql + \i views/sales.sql + \i views/budget.sql + \i views/camp.sql + \i views/camp_budget.sql + \i views/camp_budget_year.sql + \i views/campdocument.sql + \i views/camprole.sql + \i views/document.sql + \i views/dsgvo_delete_candidate.sql + \i views/feeder.sql + \i views/profile.sql + \i views/registration.sql + \i views/role.sql + \i views/version.sql + +commit; diff --git a/src/main/resources/tables/camp.sql b/src/main/resources/tables/camp.sql new file mode 100644 index 0000000..494d11a --- /dev/null +++ b/src/main/resources/tables/camp.sql @@ -0,0 +1,18 @@ +create table public.t_camp ( + pk integer not null primary key generated always as identity, + name text not null, + arrive timestamp without time zone not null, + depart timestamp without time zone not null, + fk_location integer not null references public.t_location(pk), + min_age integer not null, + max_age integer not null, + price text, + countries text, + fk_document integer references public.t_document(pk), + lock_sales boolean default false not null, + fk_profile integer not null references public.t_profile(pk), + beds_male integer default 0, + beds_female integer default 0, + blocked_beds_male integer default 0, + blocked_beds_female integer default 0 +); diff --git a/src/main/resources/tables/campdocument.sql b/src/main/resources/tables/campdocument.sql new file mode 100644 index 0000000..a457193 --- /dev/null +++ b/src/main/resources/tables/campdocument.sql @@ -0,0 +1,6 @@ +create table public.t_campdocument ( + pk integer not null primary key generated always as identity, + fk_camp integer not null references public.t_camp(pk), + fk_document integer not null references public.t_document(pk), + unique (fk_camp, fk_document) +); diff --git a/src/main/resources/tables/campprofile.sql b/src/main/resources/tables/campprofile.sql new file mode 100644 index 0000000..0c09683 --- /dev/null +++ b/src/main/resources/tables/campprofile.sql @@ -0,0 +1,7 @@ +create table public.t_campprofile ( + pk integer not null primary key generated always as identity, + fk_profile integer not null references public.t_profile(pk), + fk_camp integer not null references public.t_camp(pk), + module public.enum_module not null, + unique (fk_profile, fk_camp, module) +); diff --git a/src/main/resources/tables/document.sql b/src/main/resources/tables/document.sql new file mode 100644 index 0000000..2d2e7fb --- /dev/null +++ b/src/main/resources/tables/document.sql @@ -0,0 +1,7 @@ +create table public.t_document ( + pk integer not null primary key generated always as identity, + doctype public.enum_document, + name text unique, + document text, + filetype public.enum_filetype +); diff --git a/src/main/resources/tables/documentrole.sql b/src/main/resources/tables/documentrole.sql new file mode 100644 index 0000000..68cfe0e --- /dev/null +++ b/src/main/resources/tables/documentrole.sql @@ -0,0 +1,6 @@ +create table public.t_documentrole ( + pk integer not null primary key generated always as identity, + fk_document integer not null references public.t_document(pk), + camprole public.enum_camprole not null, + unique (fk_document, camprole) +); diff --git a/src/main/resources/tables/location.sql b/src/main/resources/tables/location.sql new file mode 100644 index 0000000..1047e26 --- /dev/null +++ b/src/main/resources/tables/location.sql @@ -0,0 +1,6 @@ +create table public.t_location ( + pk integer not null primary key generated always as identity, + name text not null, + url text, + fk_document integer references public.t_document(pk) +); diff --git a/src/main/resources/tables/person.sql b/src/main/resources/tables/person.sql new file mode 100644 index 0000000..fbfcf55 --- /dev/null +++ b/src/main/resources/tables/person.sql @@ -0,0 +1,23 @@ +create table public.t_person ( + pk integer not null primary key generated always as identity, + forename text, + surname text, + street text, + zip text, + city text, + phone text, + birthdate date, + camprole public.enum_camprole, + email text, + fk_camp integer references public.t_camp(pk), + fk_profile integer references public.t_profile(pk), + accept boolean, + created timestamp without time zone default now(), + sex public.enum_sex, + fk_registrator integer references public.t_profile(pk), + paid numeric(7,2), + comment text, + consent_catalog_photo boolean default false not null, + required_price numeric(7,2), + unique (forename, surname, birthdate, fk_camp) +); diff --git a/src/main/resources/tables/persondocument.sql b/src/main/resources/tables/persondocument.sql new file mode 100644 index 0000000..9a64def --- /dev/null +++ b/src/main/resources/tables/persondocument.sql @@ -0,0 +1,8 @@ +create table public.t_persondocument ( + pk integer not null primary key generated always as identity, + fk_person integer not null references public.t_person(pk), + name text, + document text, + filetype public.enum_filetype, + unique (fk_person, name) +); diff --git a/src/main/resources/tables/profile.sql b/src/main/resources/tables/profile.sql new file mode 100644 index 0000000..4408dcd --- /dev/null +++ b/src/main/resources/tables/profile.sql @@ -0,0 +1,9 @@ +create table public.t_profile ( + pk integer not null primary key generated always as identity, + forename text, + surname text, + username text not null unique, + password text, + duedate timestamp without time zone default (now() + '1 year'::interval), + uuid text not null unique +); diff --git a/src/main/resources/tables/profilerole.sql b/src/main/resources/tables/profilerole.sql new file mode 100644 index 0000000..4213c98 --- /dev/null +++ b/src/main/resources/tables/profilerole.sql @@ -0,0 +1,5 @@ +create table public.t_profilerole ( + fk_profile integer not null references public.t_profile(pk), + role public.enum_role not null, + unique (fk_profile, role) +); diff --git a/src/main/resources/tables/rss.sql b/src/main/resources/tables/rss.sql new file mode 100644 index 0000000..d4438df --- /dev/null +++ b/src/main/resources/tables/rss.sql @@ -0,0 +1,6 @@ +create table public.t_rss ( + pk integer not null primary key generated always as identity, + msg text, + regdate timestamp without time zone default now(), + recipient text +); diff --git a/src/main/resources/tables/sales.sql b/src/main/resources/tables/sales.sql new file mode 100644 index 0000000..0463c4e --- /dev/null +++ b/src/main/resources/tables/sales.sql @@ -0,0 +1,13 @@ +create table public.t_sales ( + pk integer not null primary key generated always as identity, + trader text, + fk_camp integer not null references public.t_camp(pk), + provider text, + cash numeric(11,2) not null, + buydate timestamp without time zone, + recipenumber text, + recipeshot bytea, + recipenote text, + incredients text, + recipefilename text +); diff --git a/src/main/resources/tables/salescontent.sql b/src/main/resources/tables/salescontent.sql new file mode 100644 index 0000000..6ca32c4 --- /dev/null +++ b/src/main/resources/tables/salescontent.sql @@ -0,0 +1,5 @@ +create table public.t_salescontent ( + fk_sales integer not null references public.t_sales(pk), + fk_salescontenttype text not null references public.t_salescontenttype(name), + unique (fk_sales, fk_salescontenttype) +); diff --git a/src/main/resources/tables/salescontenttype.sql b/src/main/resources/tables/salescontenttype.sql new file mode 100644 index 0000000..04d23c5 --- /dev/null +++ b/src/main/resources/tables/salescontenttype.sql @@ -0,0 +1,3 @@ +create table public.t_salescontenttype ( + name text not null primary key +); diff --git a/src/main/resources/views/adult.sql b/src/main/resources/views/adult.sql new file mode 100644 index 0000000..74743f6 --- /dev/null +++ b/src/main/resources/views/adult.sql @@ -0,0 +1,7 @@ +create view public.v_adult as + select age((t_person.birthdate)::timestamp with time zone) as age, + t_person.forename, + t_person.surname, + t_person.camprole, + (age((t_person.birthdate)::timestamp with time zone) > '18 years'::interval) as adult + from public.t_person; diff --git a/src/main/resources/views/budget.sql b/src/main/resources/views/budget.sql new file mode 100644 index 0000000..425260a --- /dev/null +++ b/src/main/resources/views/budget.sql @@ -0,0 +1,8 @@ +create view public.v_budget as + select sum(v_sales.cash) as budget, + v_sales.fk_camp, + v_sales.name, + v_sales.location, + v_sales.year + from public.v_sales + group by v_sales.fk_camp, v_sales.name, v_sales.location, v_sales.year; diff --git a/src/main/resources/views/camp.sql b/src/main/resources/views/camp.sql new file mode 100644 index 0000000..dcc87a6 --- /dev/null +++ b/src/main/resources/views/camp.sql @@ -0,0 +1,16 @@ +create view public.v_camp as + select c.pk, + (c.depart < now()) as is_over, + c.name, + c.arrive, + c.depart, + date_part('isoyear'::text, c.arrive) as year, + l.name as location_name, + c.min_age, + c.max_age, + l.url, + c.price, + c.countries, + c.fk_document + from (public.t_camp c + left join public.t_location l on ((c.fk_location = l.pk))); diff --git a/src/main/resources/views/camp_budget.sql b/src/main/resources/views/camp_budget.sql new file mode 100644 index 0000000..3b8a626 --- /dev/null +++ b/src/main/resources/views/camp_budget.sql @@ -0,0 +1,18 @@ +create view public.v_camp_budget as + with x(money, camp) as ( + select coalesce(t_person.paid, 0.0) as cash, + t_person.fk_camp + from public.t_person + union all + select (t_sales.cash * ('-1'::integer)::numeric), + t_sales.fk_camp + from public.t_sales + ) + select sum(x.money) as budget, + c.pk as fk_camp, + c.name as camp_name, + date_part('year'::text, c.arrive) as year + from (x + left join public.t_camp c on ((c.pk = x.camp))) + group by c.pk, c.name, c.arrive + order by c.arrive; diff --git a/src/main/resources/views/camp_budget_year.sql b/src/main/resources/views/camp_budget_year.sql new file mode 100644 index 0000000..988bf93 --- /dev/null +++ b/src/main/resources/views/camp_budget_year.sql @@ -0,0 +1,6 @@ +create view public.v_camp_budget_year as + select sum(v_camp_budget.budget) as sum, + v_camp_budget.year + from public.v_camp_budget + group by v_camp_budget.year + order by v_camp_budget.year; diff --git a/src/main/resources/views/campdocument.sql b/src/main/resources/views/campdocument.sql new file mode 100644 index 0000000..02e2f16 --- /dev/null +++ b/src/main/resources/views/campdocument.sql @@ -0,0 +1,12 @@ +create view public.v_campdocument as + select cd.fk_camp, + c.name as campname, + c.arrive, + cd.fk_document, + d.document, + d.name as documentname, + d.doctype, + d.filetype + from ((public.t_campdocument cd + left join public.t_camp c on ((c.pk = cd.fk_camp))) + left join public.t_document d on ((d.pk = cd.fk_document))); diff --git a/src/main/resources/views/camprole.sql b/src/main/resources/views/camprole.sql new file mode 100644 index 0000000..45d1c50 --- /dev/null +++ b/src/main/resources/views/camprole.sql @@ -0,0 +1,2 @@ +create view public.v_camprole as + select unnest(enum_range(null::public.enum_camprole)) as name; diff --git a/src/main/resources/views/document.sql b/src/main/resources/views/document.sql new file mode 100644 index 0000000..60af2b0 --- /dev/null +++ b/src/main/resources/views/document.sql @@ -0,0 +1,10 @@ +create view public.v_document as + select d.pk, + d.doctype, + d.name, + d.document, + d.filetype, + string_agg((r.camprole)::text, ','::text) as roles + from (public.t_document d + left join public.t_documentrole r on ((r.fk_document = d.pk))) + group by d.pk, d.doctype, d.name, d.document, d.filetype; diff --git a/src/main/resources/views/dsgvo_delete_candidate.sql b/src/main/resources/views/dsgvo_delete_candidate.sql new file mode 100644 index 0000000..37595dd --- /dev/null +++ b/src/main/resources/views/dsgvo_delete_candidate.sql @@ -0,0 +1,13 @@ +create view public.v_dsgvo_delete_candidate as + select p.pk as fk_person, + p.forename, + p.surname, + p.fk_camp, + age((p.birthdate)::timestamp with time zone) as age, + p.camprole, + c.name, + c.year, + c.is_over + from (public.t_person p + left join public.v_camp c on ((c.pk = p.fk_camp))) + where (age((p.birthdate)::timestamp with time zone) > '21 years'::interval); diff --git a/src/main/resources/views/feeder.sql b/src/main/resources/views/feeder.sql new file mode 100644 index 0000000..e81d1c2 --- /dev/null +++ b/src/main/resources/views/feeder.sql @@ -0,0 +1,15 @@ +create view public.v_feeder as + select t_person.forename, + t_person.surname, + t_person.street, + t_person.zip, + t_person.city, + t_person.phone, + age(c.arrive, (t_person.birthdate)::timestamp without time zone) as age, + t_person.email, + t_person.sex, + c.name, + date_part('year'::text, c.arrive) as year + from (public.t_person + left join public.t_camp c on ((c.pk = t_person.fk_camp))) + where (t_person.camprole = 'feeder'::public.enum_camprole); diff --git a/src/main/resources/views/profile.sql b/src/main/resources/views/profile.sql new file mode 100644 index 0000000..825c07d --- /dev/null +++ b/src/main/resources/views/profile.sql @@ -0,0 +1,12 @@ +create view public.v_profile as + select t_profile.pk, + t_profile.forename, + t_profile.surname, + t_profile.username, + t_profile.password, + t_profile.uuid, + array_agg(t_profilerole.role) as roles + from (public.t_profile + left join public.t_profilerole on ((t_profilerole.fk_profile = t_profile.pk))) + where (t_profile.duedate > now()) + group by t_profile.pk, t_profile.forename, t_profile.surname, t_profile.username, t_profile.password; diff --git a/src/main/resources/views/registration.sql b/src/main/resources/views/registration.sql new file mode 100644 index 0000000..cbd6dbc --- /dev/null +++ b/src/main/resources/views/registration.sql @@ -0,0 +1,14 @@ +create view public.v_registration as +select p.pk, + p.forename, + p.surname, + p.street, + p.zip, + p.city, + p.phone, + p.birthdate, + p.camprole, + p.email, + (c.name || date_part('isoyear'::text, c.arrive)) as campname +from public.t_person p +left join public.t_camp c on c.pk = p.fk_camp; diff --git a/src/main/resources/views/role.sql b/src/main/resources/views/role.sql new file mode 100644 index 0000000..936bc2d --- /dev/null +++ b/src/main/resources/views/role.sql @@ -0,0 +1,2 @@ +create view public.v_role as + select unnest(enum_range(null::public.enum_role)) as unnest; diff --git a/src/main/resources/views/sales.sql b/src/main/resources/views/sales.sql new file mode 100644 index 0000000..9c9a0e6 --- /dev/null +++ b/src/main/resources/views/sales.sql @@ -0,0 +1,22 @@ +create view public.v_sales as + select s.pk, + s.trader, + c.pk as fk_camp, + c.name, + l.pk as fk_location, + l.name as location, + s.incredients, + date_part('isoyear'::text, c.arrive) as year, + s.pk as fk_sales, + s.provider, + s.cash, + s.buydate, + s.recipenumber, + s.recipeshot, + s.recipenote, + array_agg(t.fk_salescontenttype) as content + from (((public.t_sales s + left join public.t_camp c on ((c.pk = s.fk_camp))) + left join public.t_location l on ((l.pk = c.fk_location))) + left join public.t_salescontent t on ((t.fk_sales = s.pk))) + group by s.pk, s.trader, c.pk, c.name, l.pk, l.name, s.incredients, (date_part('isoyear'::text, c.arrive)), s.provider, s.cash, s.buydate, s.recipenumber, s.recipeshot; diff --git a/src/main/resources/views/version.sql b/src/main/resources/views/version.sql new file mode 100644 index 0000000..8ddfa8f --- /dev/null +++ b/src/main/resources/views/version.sql @@ -0,0 +1,2 @@ +create view public.v_version as + select '2024.02'::text as version;