diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 7f361c1..083b36a 100644 Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/.gradle/buildOutputCleanup/cache.properties b/.gradle/buildOutputCleanup/cache.properties index 73d7c25..4573d52 100644 --- a/.gradle/buildOutputCleanup/cache.properties +++ b/.gradle/buildOutputCleanup/cache.properties @@ -1,2 +1,2 @@ -#Wed Oct 23 21:32:16 CEST 2024 -gradle.version=8.10.2 +#Wed Apr 15 10:19:55 CEST 2026 +gradle.version=9.3.0 diff --git a/build.gradle b/build.gradle index ca0ac67..c997a4f 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,6 @@ buildscript { mavenCentral() maven { url "https://repo.maven.apache.org/maven2" } maven { url "https://plugins.gradle.org/m2/" } - jcenter() } dependencies { classpath 'org.jooq:jooq-codegen:3.20.4' @@ -22,12 +21,14 @@ apply plugin: 'java' apply plugin: 'maven-publish' group = 'de.jottyfan' -version = '2025.04.23' +version = '2026.04.15' description = """COJooq""" -sourceCompatibility = 21 -targetCompatibility = 21 +java { + sourceCompatibility = 21 + targetCompatibility = 21 +} repositories { mavenLocal() diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 18330fc..93d666c 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.0-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists 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 a8cb57c..463a96c 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/Keys.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/Keys.java @@ -9,29 +9,39 @@ import de.jottyfan.camporganizer.db.jooq.tables.TCampdocument; import de.jottyfan.camporganizer.db.jooq.tables.TCampprofile; import de.jottyfan.camporganizer.db.jooq.tables.TDocument; import de.jottyfan.camporganizer.db.jooq.tables.TDocumentrole; +import de.jottyfan.camporganizer.db.jooq.tables.TLesson; import de.jottyfan.camporganizer.db.jooq.tables.TLocation; import de.jottyfan.camporganizer.db.jooq.tables.TPerson; import de.jottyfan.camporganizer.db.jooq.tables.TPersondocument; +import de.jottyfan.camporganizer.db.jooq.tables.TPlan; import de.jottyfan.camporganizer.db.jooq.tables.TProfile; import de.jottyfan.camporganizer.db.jooq.tables.TProfilerole; 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.TSlot; +import de.jottyfan.camporganizer.db.jooq.tables.TTask; +import de.jottyfan.camporganizer.db.jooq.tables.TTaskPerson; import de.jottyfan.camporganizer.db.jooq.tables.records.TCampRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TCampdocumentRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TCampprofileRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TDocumentRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TDocumentroleRecord; +import de.jottyfan.camporganizer.db.jooq.tables.records.TLessonRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TLocationRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TPersonRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TPersondocumentRecord; +import de.jottyfan.camporganizer.db.jooq.tables.records.TPlanRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TProfileRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TProfileroleRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TRssRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TSalesRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TSalescontentRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TSalescontenttypeRecord; +import de.jottyfan.camporganizer.db.jooq.tables.records.TSlotRecord; +import de.jottyfan.camporganizer.db.jooq.tables.records.TTaskPersonRecord; +import de.jottyfan.camporganizer.db.jooq.tables.records.TTaskRecord; import org.jooq.ForeignKey; import org.jooq.TableField; @@ -61,11 +71,15 @@ public class Keys { public static final UniqueKey T_DOCUMENT_PKEY = Internal.createUniqueKey(TDocument.T_DOCUMENT, DSL.name("t_document_pkey"), new TableField[] { TDocument.T_DOCUMENT.PK }, true); 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_LESSON_DAY_FK_SLOT_KEY = Internal.createUniqueKey(TLesson.T_LESSON, DSL.name("t_lesson_day_fk_slot_key"), new TableField[] { TLesson.T_LESSON.DAY, TLesson.T_LESSON.FK_SLOT }, true); + public static final UniqueKey T_LESSON_PKEY = Internal.createUniqueKey(TLesson.T_LESSON, DSL.name("t_lesson_pkey"), new TableField[] { TLesson.T_LESSON.PK_LESSON }, 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 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_PLAN_FK_CAMP_KEY = Internal.createUniqueKey(TPlan.T_PLAN, DSL.name("t_plan_fk_camp_key"), new TableField[] { TPlan.T_PLAN.FK_CAMP }, true); + public static final UniqueKey T_PLAN_PKEY = Internal.createUniqueKey(TPlan.T_PLAN, DSL.name("t_plan_pkey"), new TableField[] { TPlan.T_PLAN.PK_PLAN }, 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); public static final UniqueKey T_PROFILE_USERNAME_KEY = Internal.createUniqueKey(TProfile.T_PROFILE, DSL.name("t_profile_username_key"), new TableField[] { TProfile.T_PROFILE.USERNAME }, true); public static final UniqueKey T_PROFILE_UUID_KEY = Internal.createUniqueKey(TProfile.T_PROFILE, DSL.name("t_profile_uuid_key"), new TableField[] { TProfile.T_PROFILE.UUID }, true); @@ -74,6 +88,9 @@ public class Keys { public static final UniqueKey T_SALES_PKEY = Internal.createUniqueKey(TSales.T_SALES, DSL.name("t_sales_pkey"), new TableField[] { TSales.T_SALES.PK }, true); public static final UniqueKey T_SALESCONTENT_FK_SALES_FK_SALESCONTENTTYPE_KEY = Internal.createUniqueKey(TSalescontent.T_SALESCONTENT, DSL.name("t_salescontent_fk_sales_fk_salescontenttype_key"), new TableField[] { TSalescontent.T_SALESCONTENT.FK_SALES, TSalescontent.T_SALESCONTENT.FK_SALESCONTENTTYPE }, true); public static final UniqueKey T_SALESCONTENTTYPE_PKEY = Internal.createUniqueKey(TSalescontenttype.T_SALESCONTENTTYPE, DSL.name("t_salescontenttype_pkey"), new TableField[] { TSalescontenttype.T_SALESCONTENTTYPE.NAME }, true); + public static final UniqueKey T_SLOT_PKEY = Internal.createUniqueKey(TSlot.T_SLOT, DSL.name("t_slot_pkey"), new TableField[] { TSlot.T_SLOT.PK_SLOT }, true); + public static final UniqueKey T_TASK_PKEY = Internal.createUniqueKey(TTask.T_TASK, DSL.name("t_task_pkey"), new TableField[] { TTask.T_TASK.PK_TASK }, true); + public static final UniqueKey T_TASK_PERSON_PKEY = Internal.createUniqueKey(TTaskPerson.T_TASK_PERSON, DSL.name("t_task_person_pkey"), new TableField[] { TTaskPerson.T_TASK_PERSON.PK_TASK_PERSON }, true); // ------------------------------------------------------------------------- // FOREIGN KEY definitions @@ -87,13 +104,19 @@ public class Keys { public static final ForeignKey T_CAMPPROFILE__T_CAMPPROFILE_FK_CAMP_FKEY = Internal.createForeignKey(TCampprofile.T_CAMPPROFILE, DSL.name("t_campprofile_fk_camp_fkey"), new TableField[] { TCampprofile.T_CAMPPROFILE.FK_CAMP }, Keys.T_CAMP_PKEY, new TableField[] { TCamp.T_CAMP.PK }, true, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); public static final ForeignKey T_CAMPPROFILE__T_CAMPPROFILE_FK_PROFILE_FKEY = Internal.createForeignKey(TCampprofile.T_CAMPPROFILE, DSL.name("t_campprofile_fk_profile_fkey"), new TableField[] { TCampprofile.T_CAMPPROFILE.FK_PROFILE }, Keys.T_PROFILE_PKEY, new TableField[] { TProfile.T_PROFILE.PK }, true, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); public static final ForeignKey T_DOCUMENTROLE__T_DOCUMENTROLE_FK_DOCUMENT_FKEY = Internal.createForeignKey(TDocumentrole.T_DOCUMENTROLE, DSL.name("t_documentrole_fk_document_fkey"), new TableField[] { TDocumentrole.T_DOCUMENTROLE.FK_DOCUMENT }, Keys.T_DOCUMENT_PKEY, new TableField[] { TDocument.T_DOCUMENT.PK }, true, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); + public static final ForeignKey T_LESSON__T_LESSON_FK_SLOT_FKEY = Internal.createForeignKey(TLesson.T_LESSON, DSL.name("t_lesson_fk_slot_fkey"), new TableField[] { TLesson.T_LESSON.FK_SLOT }, Keys.T_SLOT_PKEY, new TableField[] { TSlot.T_SLOT.PK_SLOT }, true, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); public static final ForeignKey T_LOCATION__T_LOCATION_FK_DOCUMENT_FKEY = Internal.createForeignKey(TLocation.T_LOCATION, DSL.name("t_location_fk_document_fkey"), new TableField[] { TLocation.T_LOCATION.FK_DOCUMENT }, Keys.T_DOCUMENT_PKEY, new TableField[] { TDocument.T_DOCUMENT.PK }, true, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); public static final ForeignKey T_PERSON__T_PERSON_FK_CAMP_FKEY = Internal.createForeignKey(TPerson.T_PERSON, DSL.name("t_person_fk_camp_fkey"), new TableField[] { TPerson.T_PERSON.FK_CAMP }, Keys.T_CAMP_PKEY, new TableField[] { TCamp.T_CAMP.PK }, true, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); public static final ForeignKey T_PERSON__T_PERSON_FK_PROFILE_FKEY = Internal.createForeignKey(TPerson.T_PERSON, DSL.name("t_person_fk_profile_fkey"), new TableField[] { TPerson.T_PERSON.FK_PROFILE }, Keys.T_PROFILE_PKEY, new TableField[] { TProfile.T_PROFILE.PK }, true, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); public static final ForeignKey T_PERSON__T_PERSON_FK_REGISTRATOR_FKEY = Internal.createForeignKey(TPerson.T_PERSON, DSL.name("t_person_fk_registrator_fkey"), new TableField[] { TPerson.T_PERSON.FK_REGISTRATOR }, Keys.T_PROFILE_PKEY, new TableField[] { TProfile.T_PROFILE.PK }, true, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); 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, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); + public static final ForeignKey T_PLAN__T_PLAN_FK_CAMP_FKEY = Internal.createForeignKey(TPlan.T_PLAN, DSL.name("t_plan_fk_camp_fkey"), new TableField[] { TPlan.T_PLAN.FK_CAMP }, Keys.T_CAMP_PKEY, new TableField[] { TCamp.T_CAMP.PK }, true, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); 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, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); 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, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); 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, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); 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, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); + public static final ForeignKey T_SLOT__T_SLOT_FK_PLAN_FKEY = Internal.createForeignKey(TSlot.T_SLOT, DSL.name("t_slot_fk_plan_fkey"), new TableField[] { TSlot.T_SLOT.FK_PLAN }, Keys.T_PLAN_PKEY, new TableField[] { TPlan.T_PLAN.PK_PLAN }, true, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); + public static final ForeignKey T_TASK__T_TASK_FK_LESSON_FKEY = Internal.createForeignKey(TTask.T_TASK, DSL.name("t_task_fk_lesson_fkey"), new TableField[] { TTask.T_TASK.FK_LESSON }, Keys.T_LESSON_PKEY, new TableField[] { TLesson.T_LESSON.PK_LESSON }, true, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); + public static final ForeignKey T_TASK_PERSON__T_TASK_PERSON_FK_PERSON_FKEY = Internal.createForeignKey(TTaskPerson.T_TASK_PERSON, DSL.name("t_task_person_fk_person_fkey"), new TableField[] { TTaskPerson.T_TASK_PERSON.FK_PERSON }, Keys.T_PERSON_PKEY, new TableField[] { TPerson.T_PERSON.PK }, true, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); + public static final ForeignKey T_TASK_PERSON__T_TASK_PERSON_FK_TASK_FKEY = Internal.createForeignKey(TTaskPerson.T_TASK_PERSON, DSL.name("t_task_person_fk_task_fkey"), new TableField[] { TTaskPerson.T_TASK_PERSON.FK_TASK }, Keys.T_TASK_PKEY, new TableField[] { TTask.T_TASK.PK_TASK }, true, ForeignKeyRule.NO_ACTION, ForeignKeyRule.NO_ACTION); } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/Public.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/Public.java index 5e6becb..b970755 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/Public.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/Public.java @@ -9,15 +9,20 @@ import de.jottyfan.camporganizer.db.jooq.tables.TCampdocument; import de.jottyfan.camporganizer.db.jooq.tables.TCampprofile; import de.jottyfan.camporganizer.db.jooq.tables.TDocument; import de.jottyfan.camporganizer.db.jooq.tables.TDocumentrole; +import de.jottyfan.camporganizer.db.jooq.tables.TLesson; import de.jottyfan.camporganizer.db.jooq.tables.TLocation; import de.jottyfan.camporganizer.db.jooq.tables.TPerson; import de.jottyfan.camporganizer.db.jooq.tables.TPersondocument; +import de.jottyfan.camporganizer.db.jooq.tables.TPlan; import de.jottyfan.camporganizer.db.jooq.tables.TProfile; import de.jottyfan.camporganizer.db.jooq.tables.TProfilerole; 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.TSlot; +import de.jottyfan.camporganizer.db.jooq.tables.TTask; +import de.jottyfan.camporganizer.db.jooq.tables.TTaskPerson; import de.jottyfan.camporganizer.db.jooq.tables.VAdult; import de.jottyfan.camporganizer.db.jooq.tables.VBudget; import de.jottyfan.camporganizer.db.jooq.tables.VCamp; @@ -81,6 +86,11 @@ public class Public extends SchemaImpl { */ public final TDocumentrole T_DOCUMENTROLE = TDocumentrole.T_DOCUMENTROLE; + /** + * The table public.t_lesson. + */ + public final TLesson T_LESSON = TLesson.T_LESSON; + /** * The table public.t_location. */ @@ -96,6 +106,11 @@ public class Public extends SchemaImpl { */ public final TPersondocument T_PERSONDOCUMENT = TPersondocument.T_PERSONDOCUMENT; + /** + * The table public.t_plan. + */ + public final TPlan T_PLAN = TPlan.T_PLAN; + /** * The table public.t_profile. */ @@ -126,6 +141,21 @@ public class Public extends SchemaImpl { */ public final TSalescontenttype T_SALESCONTENTTYPE = TSalescontenttype.T_SALESCONTENTTYPE; + /** + * The table public.t_slot. + */ + public final TSlot T_SLOT = TSlot.T_SLOT; + + /** + * The table public.t_task. + */ + public final TTask T_TASK = TTask.T_TASK; + + /** + * The table public.t_task_person. + */ + public final TTaskPerson T_TASK_PERSON = TTaskPerson.T_TASK_PERSON; + /** * The table public.v_adult. */ @@ -222,15 +252,20 @@ public class Public extends SchemaImpl { TCampprofile.T_CAMPPROFILE, TDocument.T_DOCUMENT, TDocumentrole.T_DOCUMENTROLE, + TLesson.T_LESSON, TLocation.T_LOCATION, TPerson.T_PERSON, TPersondocument.T_PERSONDOCUMENT, + TPlan.T_PLAN, TProfile.T_PROFILE, TProfilerole.T_PROFILEROLE, TRss.T_RSS, TSales.T_SALES, TSalescontent.T_SALESCONTENT, TSalescontenttype.T_SALESCONTENTTYPE, + TSlot.T_SLOT, + TTask.T_TASK, + TTaskPerson.T_TASK_PERSON, VAdult.V_ADULT, VBudget.V_BUDGET, VCamp.V_CAMP, 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 615e019..478ebfb 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/Tables.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/Tables.java @@ -9,15 +9,20 @@ import de.jottyfan.camporganizer.db.jooq.tables.TCampdocument; import de.jottyfan.camporganizer.db.jooq.tables.TCampprofile; import de.jottyfan.camporganizer.db.jooq.tables.TDocument; import de.jottyfan.camporganizer.db.jooq.tables.TDocumentrole; +import de.jottyfan.camporganizer.db.jooq.tables.TLesson; import de.jottyfan.camporganizer.db.jooq.tables.TLocation; import de.jottyfan.camporganizer.db.jooq.tables.TPerson; import de.jottyfan.camporganizer.db.jooq.tables.TPersondocument; +import de.jottyfan.camporganizer.db.jooq.tables.TPlan; import de.jottyfan.camporganizer.db.jooq.tables.TProfile; import de.jottyfan.camporganizer.db.jooq.tables.TProfilerole; 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.TSlot; +import de.jottyfan.camporganizer.db.jooq.tables.TTask; +import de.jottyfan.camporganizer.db.jooq.tables.TTaskPerson; import de.jottyfan.camporganizer.db.jooq.tables.VAdult; import de.jottyfan.camporganizer.db.jooq.tables.VBudget; import de.jottyfan.camporganizer.db.jooq.tables.VCamp; @@ -66,6 +71,11 @@ public class Tables { */ public static final TDocumentrole T_DOCUMENTROLE = TDocumentrole.T_DOCUMENTROLE; + /** + * The table public.t_lesson. + */ + public static final TLesson T_LESSON = TLesson.T_LESSON; + /** * The table public.t_location. */ @@ -81,6 +91,11 @@ public class Tables { */ public static final TPersondocument T_PERSONDOCUMENT = TPersondocument.T_PERSONDOCUMENT; + /** + * The table public.t_plan. + */ + public static final TPlan T_PLAN = TPlan.T_PLAN; + /** * The table public.t_profile. */ @@ -111,6 +126,21 @@ public class Tables { */ public static final TSalescontenttype T_SALESCONTENTTYPE = TSalescontenttype.T_SALESCONTENTTYPE; + /** + * The table public.t_slot. + */ + public static final TSlot T_SLOT = TSlot.T_SLOT; + + /** + * The table public.t_task. + */ + public static final TTask T_TASK = TTask.T_TASK; + + /** + * The table public.t_task_person. + */ + public static final TTaskPerson T_TASK_PERSON = TTaskPerson.T_TASK_PERSON; + /** * The table public.v_adult. */ 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 8722c30..6ad813d 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 @@ -11,6 +11,7 @@ import de.jottyfan.camporganizer.db.jooq.tables.TCampprofile.TCampprofilePath; import de.jottyfan.camporganizer.db.jooq.tables.TDocument.TDocumentPath; import de.jottyfan.camporganizer.db.jooq.tables.TLocation.TLocationPath; import de.jottyfan.camporganizer.db.jooq.tables.TPerson.TPersonPath; +import de.jottyfan.camporganizer.db.jooq.tables.TPlan.TPlanPath; import de.jottyfan.camporganizer.db.jooq.tables.TProfile.TProfilePath; import de.jottyfan.camporganizer.db.jooq.tables.TSales.TSalesPath; import de.jottyfan.camporganizer.db.jooq.tables.records.TCampRecord; @@ -134,16 +135,16 @@ public class TCamp extends TableImpl { */ public final TableField BEDS_FEMALE = createField(DSL.name("beds_female"), SQLDataType.INTEGER.nullable(false).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.nullable(false).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.nullable(false).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.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + /** * The column public.t_camp.start_booking. */ @@ -311,6 +312,19 @@ public class TCamp extends TableImpl { return _tPerson; } + private transient TPlanPath _tPlan; + + /** + * Get the implicit to-many join path to the public.t_plan + * table + */ + public TPlanPath tPlan() { + if (_tPlan == null) + _tPlan = new TPlanPath(this, null, Keys.T_PLAN__T_PLAN_FK_CAMP_FKEY.getInverseKey()); + + return _tPlan; + } + private transient TSalesPath _tSales; /** diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TLesson.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TLesson.java new file mode 100644 index 0000000..732cec2 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TLesson.java @@ -0,0 +1,328 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables; + + +import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; +import de.jottyfan.camporganizer.db.jooq.tables.TSlot.TSlotPath; +import de.jottyfan.camporganizer.db.jooq.tables.TTask.TTaskPath; +import de.jottyfan.camporganizer.db.jooq.tables.records.TLessonRecord; + +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.time.LocalTime; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.jooq.Condition; +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Identity; +import org.jooq.InverseForeignKey; +import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.Record; +import org.jooq.SQL; +import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class TLesson extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.t_lesson + */ + public static final TLesson T_LESSON = new TLesson(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TLessonRecord.class; + } + + /** + * The column public.t_lesson.created. + */ + public final TableField CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("CURRENT_TIMESTAMP"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column public.t_lesson.pk_lesson. + */ + public final TableField PK_LESSON = createField(DSL.name("pk_lesson"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column public.t_lesson.day. + */ + public final TableField DAY = createField(DSL.name("day"), SQLDataType.LOCALDATE.nullable(false), this, ""); + + /** + * The column public.t_lesson.fk_slot. + */ + public final TableField FK_SLOT = createField(DSL.name("fk_slot"), SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column public.t_lesson.start_time_diff. + */ + public final TableField START_TIME_DIFF = createField(DSL.name("start_time_diff"), SQLDataType.LOCALTIME(6), this, ""); + + /** + * The column public.t_lesson.end_time_diff. + */ + public final TableField END_TIME_DIFF = createField(DSL.name("end_time_diff"), SQLDataType.LOCALTIME(6), this, ""); + + private TLesson(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TLesson(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased public.t_lesson table reference + */ + public TLesson(String alias) { + this(DSL.name(alias), T_LESSON); + } + + /** + * Create an aliased public.t_lesson table reference + */ + public TLesson(Name alias) { + this(alias, T_LESSON); + } + + /** + * Create a public.t_lesson table reference + */ + public TLesson() { + this(DSL.name("t_lesson"), null); + } + + public TLesson(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_LESSON); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TLessonPath extends TLesson implements Path { + + private static final long serialVersionUID = 1L; + public TLessonPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TLessonPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TLessonPath as(String alias) { + return new TLessonPath(DSL.name(alias), this); + } + + @Override + public TLessonPath as(Name alias) { + return new TLessonPath(alias, this); + } + + @Override + public TLessonPath as(Table alias) { + return new TLessonPath(alias.getQualifiedName(), this); + } + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_LESSON_PKEY; + } + + @Override + public List> getUniqueKeys() { + return Arrays.asList(Keys.T_LESSON_DAY_FK_SLOT_KEY); + } + + @Override + public List> getReferences() { + return Arrays.asList(Keys.T_LESSON__T_LESSON_FK_SLOT_FKEY); + } + + private transient TSlotPath _tSlot; + + /** + * Get the implicit join path to the public.t_slot table. + */ + public TSlotPath tSlot() { + if (_tSlot == null) + _tSlot = new TSlotPath(this, Keys.T_LESSON__T_LESSON_FK_SLOT_FKEY, null); + + return _tSlot; + } + + private transient TTaskPath _tTask; + + /** + * Get the implicit to-many join path to the public.t_task + * table + */ + public TTaskPath tTask() { + if (_tTask == null) + _tTask = new TTaskPath(this, null, Keys.T_TASK__T_TASK_FK_LESSON_FKEY.getInverseKey()); + + return _tTask; + } + + @Override + public TLesson as(String alias) { + return new TLesson(DSL.name(alias), this); + } + + @Override + public TLesson as(Name alias) { + return new TLesson(alias, this); + } + + @Override + public TLesson as(Table alias) { + return new TLesson(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public TLesson rename(String name) { + return new TLesson(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public TLesson rename(Name name) { + return new TLesson(name, null); + } + + /** + * Rename this table + */ + @Override + public TLesson rename(Table name) { + return new TLesson(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TLesson where(Condition condition) { + return new TLesson(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TLesson where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TLesson where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TLesson where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TLesson where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TLesson where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TLesson where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TLesson where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TLesson whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TLesson whereNotExists(Select select) { + return where(DSL.notExists(select)); + } +} 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 3ef20e3..0b857c6 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 @@ -12,6 +12,7 @@ import de.jottyfan.camporganizer.db.jooq.enums.EnumSex; import de.jottyfan.camporganizer.db.jooq.tables.TCamp.TCampPath; import de.jottyfan.camporganizer.db.jooq.tables.TPersondocument.TPersondocumentPath; import de.jottyfan.camporganizer.db.jooq.tables.TProfile.TProfilePath; +import de.jottyfan.camporganizer.db.jooq.tables.TTaskPerson.TTaskPersonPath; import de.jottyfan.camporganizer.db.jooq.tables.records.TPersonRecord; import java.math.BigDecimal; @@ -125,16 +126,6 @@ public class TPerson extends TableImpl { */ public final TableField FK_PROFILE = createField(DSL.name("fk_profile"), SQLDataType.INTEGER, this, ""); - /** - * The column public.t_person.accept. - */ - public final TableField ACCEPT = createField(DSL.name("accept"), SQLDataType.BOOLEAN, this, ""); - - /** - * The column public.t_person.progress. - */ - public final TableField PROGRESS = createField(DSL.name("progress"), SQLDataType.VARCHAR.defaultValue(DSL.field(DSL.raw("'requested'::enum_progress"), SQLDataType.VARCHAR)).asEnumDataType(EnumProgress.class), this, ""); - /** * The column public.t_person.created. */ @@ -170,6 +161,11 @@ public class TPerson extends TableImpl { */ public final TableField REQUIRED_PRICE = createField(DSL.name("required_price"), SQLDataType.NUMERIC(7, 2), this, ""); + /** + * The column public.t_person.progress. + */ + public final TableField PROGRESS = createField(DSL.name("progress"), SQLDataType.VARCHAR.defaultValue(DSL.field(DSL.raw("'requested'::enum_progress"), SQLDataType.VARCHAR)).asEnumDataType(EnumProgress.class), this, ""); + private TPerson(Name alias, Table aliased) { this(alias, aliased, (Field[]) null, null); } @@ -308,6 +304,19 @@ public class TPerson extends TableImpl { return _tPersondocument; } + private transient TTaskPersonPath _tTaskPerson; + + /** + * Get the implicit to-many join path to the + * public.t_task_person table + */ + public TTaskPersonPath tTaskPerson() { + if (_tTaskPerson == null) + _tTaskPerson = new TTaskPersonPath(this, null, Keys.T_TASK_PERSON__T_TASK_PERSON_FK_PERSON_FKEY.getInverseKey()); + + return _tTaskPerson; + } + @Override public TPerson as(String alias) { return new TPerson(DSL.name(alias), this); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPlan.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPlan.java new file mode 100644 index 0000000..182ca37 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPlan.java @@ -0,0 +1,321 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables; + + +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.TSlot.TSlotPath; +import de.jottyfan.camporganizer.db.jooq.tables.records.TPlanRecord; + +import java.time.LocalDateTime; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.jooq.Condition; +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Identity; +import org.jooq.InverseForeignKey; +import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.Record; +import org.jooq.SQL; +import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class TPlan extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.t_plan + */ + public static final TPlan T_PLAN = new TPlan(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TPlanRecord.class; + } + + /** + * The column public.t_plan.created. + */ + public final TableField CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("CURRENT_TIMESTAMP"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column public.t_plan.pk_plan. + */ + public final TableField PK_PLAN = createField(DSL.name("pk_plan"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column public.t_plan.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); + + /** + * The column public.t_plan.fk_camp. + */ + public final TableField FK_CAMP = createField(DSL.name("fk_camp"), SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column public.t_plan.camptheme. + */ + public final TableField CAMPTHEME = createField(DSL.name("camptheme"), SQLDataType.CLOB, this, ""); + + private TPlan(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TPlan(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased public.t_plan table reference + */ + public TPlan(String alias) { + this(DSL.name(alias), T_PLAN); + } + + /** + * Create an aliased public.t_plan table reference + */ + public TPlan(Name alias) { + this(alias, T_PLAN); + } + + /** + * Create a public.t_plan table reference + */ + public TPlan() { + this(DSL.name("t_plan"), null); + } + + public TPlan(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_PLAN); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TPlanPath extends TPlan implements Path { + + private static final long serialVersionUID = 1L; + public TPlanPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TPlanPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TPlanPath as(String alias) { + return new TPlanPath(DSL.name(alias), this); + } + + @Override + public TPlanPath as(Name alias) { + return new TPlanPath(alias, this); + } + + @Override + public TPlanPath as(Table alias) { + return new TPlanPath(alias.getQualifiedName(), this); + } + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_PLAN_PKEY; + } + + @Override + public List> getUniqueKeys() { + return Arrays.asList(Keys.T_PLAN_FK_CAMP_KEY); + } + + @Override + public List> getReferences() { + return Arrays.asList(Keys.T_PLAN__T_PLAN_FK_CAMP_FKEY); + } + + private transient TCampPath _tCamp; + + /** + * Get the implicit join path to the public.t_camp table. + */ + public TCampPath tCamp() { + if (_tCamp == null) + _tCamp = new TCampPath(this, Keys.T_PLAN__T_PLAN_FK_CAMP_FKEY, null); + + return _tCamp; + } + + private transient TSlotPath _tSlot; + + /** + * Get the implicit to-many join path to the public.t_slot + * table + */ + public TSlotPath tSlot() { + if (_tSlot == null) + _tSlot = new TSlotPath(this, null, Keys.T_SLOT__T_SLOT_FK_PLAN_FKEY.getInverseKey()); + + return _tSlot; + } + + @Override + public TPlan as(String alias) { + return new TPlan(DSL.name(alias), this); + } + + @Override + public TPlan as(Name alias) { + return new TPlan(alias, this); + } + + @Override + public TPlan as(Table alias) { + return new TPlan(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public TPlan rename(String name) { + return new TPlan(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public TPlan rename(Name name) { + return new TPlan(name, null); + } + + /** + * Rename this table + */ + @Override + public TPlan rename(Table name) { + return new TPlan(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPlan where(Condition condition) { + return new TPlan(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPlan where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPlan where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPlan where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TPlan where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TPlan where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TPlan where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TPlan where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPlan whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPlan whereNotExists(Select select) { + return where(DSL.notExists(select)); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSlot.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSlot.java new file mode 100644 index 0000000..ddbd955 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSlot.java @@ -0,0 +1,322 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables; + + +import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; +import de.jottyfan.camporganizer.db.jooq.tables.TLesson.TLessonPath; +import de.jottyfan.camporganizer.db.jooq.tables.TPlan.TPlanPath; +import de.jottyfan.camporganizer.db.jooq.tables.records.TSlotRecord; + +import java.time.LocalDateTime; +import java.time.LocalTime; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.jooq.Condition; +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Identity; +import org.jooq.InverseForeignKey; +import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.Record; +import org.jooq.SQL; +import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class TSlot extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.t_slot + */ + public static final TSlot T_SLOT = new TSlot(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TSlotRecord.class; + } + + /** + * The column public.t_slot.created. + */ + public final TableField CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("CURRENT_TIMESTAMP"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column public.t_slot.pk_slot. + */ + public final TableField PK_SLOT = createField(DSL.name("pk_slot"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column public.t_slot.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); + + /** + * The column public.t_slot.fk_plan. + */ + public final TableField FK_PLAN = createField(DSL.name("fk_plan"), SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column public.t_slot.start_time. + */ + public final TableField START_TIME = createField(DSL.name("start_time"), SQLDataType.LOCALTIME(6).nullable(false), this, ""); + + /** + * The column public.t_slot.end_time. + */ + public final TableField END_TIME = createField(DSL.name("end_time"), SQLDataType.LOCALTIME(6).nullable(false), this, ""); + + private TSlot(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TSlot(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased public.t_slot table reference + */ + public TSlot(String alias) { + this(DSL.name(alias), T_SLOT); + } + + /** + * Create an aliased public.t_slot table reference + */ + public TSlot(Name alias) { + this(alias, T_SLOT); + } + + /** + * Create a public.t_slot table reference + */ + public TSlot() { + this(DSL.name("t_slot"), null); + } + + public TSlot(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_SLOT); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TSlotPath extends TSlot implements Path { + + private static final long serialVersionUID = 1L; + public TSlotPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TSlotPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TSlotPath as(String alias) { + return new TSlotPath(DSL.name(alias), this); + } + + @Override + public TSlotPath as(Name alias) { + return new TSlotPath(alias, this); + } + + @Override + public TSlotPath as(Table alias) { + return new TSlotPath(alias.getQualifiedName(), this); + } + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_SLOT_PKEY; + } + + @Override + public List> getReferences() { + return Arrays.asList(Keys.T_SLOT__T_SLOT_FK_PLAN_FKEY); + } + + private transient TPlanPath _tPlan; + + /** + * Get the implicit join path to the public.t_plan table. + */ + public TPlanPath tPlan() { + if (_tPlan == null) + _tPlan = new TPlanPath(this, Keys.T_SLOT__T_SLOT_FK_PLAN_FKEY, null); + + return _tPlan; + } + + private transient TLessonPath _tLesson; + + /** + * Get the implicit to-many join path to the public.t_lesson + * table + */ + public TLessonPath tLesson() { + if (_tLesson == null) + _tLesson = new TLessonPath(this, null, Keys.T_LESSON__T_LESSON_FK_SLOT_FKEY.getInverseKey()); + + return _tLesson; + } + + @Override + public TSlot as(String alias) { + return new TSlot(DSL.name(alias), this); + } + + @Override + public TSlot as(Name alias) { + return new TSlot(alias, this); + } + + @Override + public TSlot as(Table alias) { + return new TSlot(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public TSlot rename(String name) { + return new TSlot(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public TSlot rename(Name name) { + return new TSlot(name, null); + } + + /** + * Rename this table + */ + @Override + public TSlot rename(Table name) { + return new TSlot(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSlot where(Condition condition) { + return new TSlot(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSlot where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSlot where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSlot where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TSlot where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TSlot where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TSlot where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TSlot where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSlot whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSlot whereNotExists(Select select) { + return where(DSL.notExists(select)); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TTask.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TTask.java new file mode 100644 index 0000000..7344d67 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TTask.java @@ -0,0 +1,316 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables; + + +import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; +import de.jottyfan.camporganizer.db.jooq.tables.TLesson.TLessonPath; +import de.jottyfan.camporganizer.db.jooq.tables.TTaskPerson.TTaskPersonPath; +import de.jottyfan.camporganizer.db.jooq.tables.records.TTaskRecord; + +import java.time.LocalDateTime; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.jooq.Condition; +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Identity; +import org.jooq.InverseForeignKey; +import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.Record; +import org.jooq.SQL; +import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class TTask extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.t_task + */ + public static final TTask T_TASK = new TTask(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TTaskRecord.class; + } + + /** + * The column public.t_task.created. + */ + public final TableField CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("CURRENT_TIMESTAMP"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column public.t_task.pk_task. + */ + public final TableField PK_TASK = createField(DSL.name("pk_task"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column public.t_task.fk_lesson. + */ + public final TableField FK_LESSON = createField(DSL.name("fk_lesson"), SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column public.t_task.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); + + /** + * The column public.t_task.bibleref. + */ + public final TableField BIBLEREF = createField(DSL.name("bibleref"), SQLDataType.CLOB, this, ""); + + private TTask(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TTask(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased public.t_task table reference + */ + public TTask(String alias) { + this(DSL.name(alias), T_TASK); + } + + /** + * Create an aliased public.t_task table reference + */ + public TTask(Name alias) { + this(alias, T_TASK); + } + + /** + * Create a public.t_task table reference + */ + public TTask() { + this(DSL.name("t_task"), null); + } + + public TTask(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_TASK); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TTaskPath extends TTask implements Path { + + private static final long serialVersionUID = 1L; + public TTaskPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TTaskPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TTaskPath as(String alias) { + return new TTaskPath(DSL.name(alias), this); + } + + @Override + public TTaskPath as(Name alias) { + return new TTaskPath(alias, this); + } + + @Override + public TTaskPath as(Table alias) { + return new TTaskPath(alias.getQualifiedName(), this); + } + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_TASK_PKEY; + } + + @Override + public List> getReferences() { + return Arrays.asList(Keys.T_TASK__T_TASK_FK_LESSON_FKEY); + } + + private transient TLessonPath _tLesson; + + /** + * Get the implicit join path to the public.t_lesson table. + */ + public TLessonPath tLesson() { + if (_tLesson == null) + _tLesson = new TLessonPath(this, Keys.T_TASK__T_TASK_FK_LESSON_FKEY, null); + + return _tLesson; + } + + private transient TTaskPersonPath _tTaskPerson; + + /** + * Get the implicit to-many join path to the + * public.t_task_person table + */ + public TTaskPersonPath tTaskPerson() { + if (_tTaskPerson == null) + _tTaskPerson = new TTaskPersonPath(this, null, Keys.T_TASK_PERSON__T_TASK_PERSON_FK_TASK_FKEY.getInverseKey()); + + return _tTaskPerson; + } + + @Override + public TTask as(String alias) { + return new TTask(DSL.name(alias), this); + } + + @Override + public TTask as(Name alias) { + return new TTask(alias, this); + } + + @Override + public TTask as(Table alias) { + return new TTask(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public TTask rename(String name) { + return new TTask(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public TTask rename(Name name) { + return new TTask(name, null); + } + + /** + * Rename this table + */ + @Override + public TTask rename(Table name) { + return new TTask(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TTask where(Condition condition) { + return new TTask(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TTask where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TTask where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TTask where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TTask where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TTask where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TTask where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TTask where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TTask whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TTask whereNotExists(Select select) { + return where(DSL.notExists(select)); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TTaskPerson.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TTaskPerson.java new file mode 100644 index 0000000..a5bf528 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TTaskPerson.java @@ -0,0 +1,310 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables; + + +import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.Public; +import de.jottyfan.camporganizer.db.jooq.tables.TPerson.TPersonPath; +import de.jottyfan.camporganizer.db.jooq.tables.TTask.TTaskPath; +import de.jottyfan.camporganizer.db.jooq.tables.records.TTaskPersonRecord; + +import java.time.LocalDateTime; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.jooq.Condition; +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Identity; +import org.jooq.InverseForeignKey; +import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.Record; +import org.jooq.SQL; +import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class TTaskPerson extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.t_task_person + */ + public static final TTaskPerson T_TASK_PERSON = new TTaskPerson(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return TTaskPersonRecord.class; + } + + /** + * The column public.t_task_person.created. + */ + public final TableField CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("CURRENT_TIMESTAMP"), SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column public.t_task_person.pk_task_person. + */ + public final TableField PK_TASK_PERSON = createField(DSL.name("pk_task_person"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column public.t_task_person.fk_task. + */ + public final TableField FK_TASK = createField(DSL.name("fk_task"), SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column public.t_task_person.fk_person. + */ + public final TableField FK_PERSON = createField(DSL.name("fk_person"), SQLDataType.INTEGER.nullable(false), this, ""); + + private TTaskPerson(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private TTaskPerson(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased public.t_task_person table reference + */ + public TTaskPerson(String alias) { + this(DSL.name(alias), T_TASK_PERSON); + } + + /** + * Create an aliased public.t_task_person table reference + */ + public TTaskPerson(Name alias) { + this(alias, T_TASK_PERSON); + } + + /** + * Create a public.t_task_person table reference + */ + public TTaskPerson() { + this(DSL.name("t_task_person"), null); + } + + public TTaskPerson(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_TASK_PERSON); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TTaskPersonPath extends TTaskPerson implements Path { + + private static final long serialVersionUID = 1L; + public TTaskPersonPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TTaskPersonPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TTaskPersonPath as(String alias) { + return new TTaskPersonPath(DSL.name(alias), this); + } + + @Override + public TTaskPersonPath as(Name alias) { + return new TTaskPersonPath(alias, this); + } + + @Override + public TTaskPersonPath as(Table alias) { + return new TTaskPersonPath(alias.getQualifiedName(), this); + } + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.T_TASK_PERSON_PKEY; + } + + @Override + public List> getReferences() { + return Arrays.asList(Keys.T_TASK_PERSON__T_TASK_PERSON_FK_PERSON_FKEY, Keys.T_TASK_PERSON__T_TASK_PERSON_FK_TASK_FKEY); + } + + private transient TPersonPath _tPerson; + + /** + * Get the implicit join path to the public.t_person table. + */ + public TPersonPath tPerson() { + if (_tPerson == null) + _tPerson = new TPersonPath(this, Keys.T_TASK_PERSON__T_TASK_PERSON_FK_PERSON_FKEY, null); + + return _tPerson; + } + + private transient TTaskPath _tTask; + + /** + * Get the implicit join path to the public.t_task table. + */ + public TTaskPath tTask() { + if (_tTask == null) + _tTask = new TTaskPath(this, Keys.T_TASK_PERSON__T_TASK_PERSON_FK_TASK_FKEY, null); + + return _tTask; + } + + @Override + public TTaskPerson as(String alias) { + return new TTaskPerson(DSL.name(alias), this); + } + + @Override + public TTaskPerson as(Name alias) { + return new TTaskPerson(alias, this); + } + + @Override + public TTaskPerson as(Table alias) { + return new TTaskPerson(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public TTaskPerson rename(String name) { + return new TTaskPerson(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public TTaskPerson rename(Name name) { + return new TTaskPerson(name, null); + } + + /** + * Rename this table + */ + @Override + public TTaskPerson rename(Table name) { + return new TTaskPerson(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TTaskPerson where(Condition condition) { + return new TTaskPerson(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TTaskPerson where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TTaskPerson where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TTaskPerson where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TTaskPerson where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TTaskPerson where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TTaskPerson where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TTaskPerson where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TTaskPerson whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TTaskPerson whereNotExists(Select select) { + return where(DSL.notExists(select)); + } +} 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 index 2a90d43..53babf0 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VAdult.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VAdult.java @@ -80,11 +80,11 @@ public class VAdult extends TableImpl { 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((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 + 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); } 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 4d3354f..1629f4c 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 @@ -79,13 +79,13 @@ public class VBudget extends TableImpl { private VBudget(Name alias, Table aliased, Field[] parameters, Condition where) { super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" - CREATE VIEW "v_budget" AS SELECT sum(v_sales.cash) AS budget, - v_sales.fk_camp, - v_sales.name, - v_sales.location, - v_sales.year + CREATE VIEW "v_budget" AS SELECT sum(cash) AS budget, + fk_camp, + name, + location, + year FROM v_sales - GROUP BY v_sales.fk_camp, v_sales.name, v_sales.location, v_sales.year; + GROUP BY fk_camp, name, location, year; """), where); } 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 71ffa5c..0353c62 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 @@ -64,11 +64,11 @@ public class VCampBudgetYear extends TableImpl { private VCampBudgetYear(Name alias, Table aliased, Field[] parameters, Condition where) { super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" - CREATE VIEW "v_camp_budget_year" AS SELECT sum(v_camp_budget.budget) AS sum, - v_camp_budget.year + CREATE VIEW "v_camp_budget_year" AS SELECT sum(budget) AS sum, + year FROM v_camp_budget - GROUP BY v_camp_budget.year - ORDER BY v_camp_budget.year; + GROUP BY year + ORDER BY year; """), where); } 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 1e182e0..a7d09f9 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 @@ -58,7 +58,7 @@ 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 '2025-04-23'::text AS version; + CREATE VIEW "v_version" AS SELECT '2026-04-15'::text AS version; """), where); } 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 b7083fb..d63320e 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 @@ -216,31 +216,31 @@ public class TCampRecord extends UpdatableRecordImpl { return (Integer) get(13); } - /** - * Setter for public.t_camp.blocked_beds_male. - */ - public void setBlockedBedsMale(Integer value) { - set(14, value); - } - - /** - * Getter for public.t_camp.blocked_beds_male. - */ - public Integer getBlockedBedsMale() { - return (Integer) get(14); - } - /** * Setter for public.t_camp.blocked_beds_female. */ public void setBlockedBedsFemale(Integer value) { - set(15, value); + set(14, value); } /** * Getter for public.t_camp.blocked_beds_female. */ public Integer getBlockedBedsFemale() { + return (Integer) get(14); + } + + /** + * Setter for public.t_camp.blocked_beds_male. + */ + public void setBlockedBedsMale(Integer value) { + set(15, value); + } + + /** + * Getter for public.t_camp.blocked_beds_male. + */ + public Integer getBlockedBedsMale() { return (Integer) get(15); } @@ -295,7 +295,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, Integer bedsMale, Integer bedsFemale, Integer blockedBedsMale, Integer blockedBedsFemale, LocalDateTime startBooking, Integer minTeacherage) { + 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 blockedBedsFemale, Integer blockedBedsMale, LocalDateTime startBooking, Integer minTeacherage) { super(TCamp.T_CAMP); setPk(pk); @@ -312,8 +312,8 @@ public class TCampRecord extends UpdatableRecordImpl { setFkProfile(fkProfile); setBedsMale(bedsMale); setBedsFemale(bedsFemale); - setBlockedBedsMale(blockedBedsMale); setBlockedBedsFemale(blockedBedsFemale); + setBlockedBedsMale(blockedBedsMale); setStartBooking(startBooking); setMinTeacherage(minTeacherage); resetTouchedOnNotNull(); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TLessonRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TLessonRecord.java new file mode 100644 index 0000000..e7f3d89 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TLessonRecord.java @@ -0,0 +1,143 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.records; + + +import de.jottyfan.camporganizer.db.jooq.tables.TLesson; + +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.time.LocalTime; + +import org.jooq.Record1; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class TLessonRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.t_lesson.created. + */ + public void setCreated(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for public.t_lesson.created. + */ + public LocalDateTime getCreated() { + return (LocalDateTime) get(0); + } + + /** + * Setter for public.t_lesson.pk_lesson. + */ + public void setPkLesson(Integer value) { + set(1, value); + } + + /** + * Getter for public.t_lesson.pk_lesson. + */ + public Integer getPkLesson() { + return (Integer) get(1); + } + + /** + * Setter for public.t_lesson.day. + */ + public void setDay(LocalDate value) { + set(2, value); + } + + /** + * Getter for public.t_lesson.day. + */ + public LocalDate getDay() { + return (LocalDate) get(2); + } + + /** + * Setter for public.t_lesson.fk_slot. + */ + public void setFkSlot(Integer value) { + set(3, value); + } + + /** + * Getter for public.t_lesson.fk_slot. + */ + public Integer getFkSlot() { + return (Integer) get(3); + } + + /** + * Setter for public.t_lesson.start_time_diff. + */ + public void setStartTimeDiff(LocalTime value) { + set(4, value); + } + + /** + * Getter for public.t_lesson.start_time_diff. + */ + public LocalTime getStartTimeDiff() { + return (LocalTime) get(4); + } + + /** + * Setter for public.t_lesson.end_time_diff. + */ + public void setEndTimeDiff(LocalTime value) { + set(5, value); + } + + /** + * Getter for public.t_lesson.end_time_diff. + */ + public LocalTime getEndTimeDiff() { + return (LocalTime) get(5); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached TLessonRecord + */ + public TLessonRecord() { + super(TLesson.T_LESSON); + } + + /** + * Create a detached, initialised TLessonRecord + */ + public TLessonRecord(LocalDateTime created, Integer pkLesson, LocalDate day, Integer fkSlot, LocalTime startTimeDiff, LocalTime endTimeDiff) { + super(TLesson.T_LESSON); + + setCreated(created); + setPkLesson(pkLesson); + setDay(day); + setFkSlot(fkSlot); + setStartTimeDiff(startTimeDiff); + setEndTimeDiff(endTimeDiff); + resetTouchedOnNotNull(); + } +} 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 0cebc4b..984e3ea 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 @@ -193,130 +193,116 @@ public class TPersonRecord extends UpdatableRecordImpl { return (Integer) get(11); } - /** - * Setter for public.t_person.accept. - */ - public void setAccept(Boolean value) { - set(12, value); - } - - /** - * Getter for public.t_person.accept. - */ - public Boolean getAccept() { - return (Boolean) get(12); - } - - /** - * Setter for public.t_person.progress. - */ - public void setProgress(EnumProgress value) { - set(13, value); - } - - /** - * Getter for public.t_person.progress. - */ - public EnumProgress getProgress() { - return (EnumProgress) get(13); - } - /** * Setter for public.t_person.created. */ public void setCreated(LocalDateTime value) { - set(14, value); + set(12, value); } /** * Getter for public.t_person.created. */ public LocalDateTime getCreated() { - return (LocalDateTime) get(14); + return (LocalDateTime) get(12); } /** * Setter for public.t_person.sex. */ public void setSex(EnumSex value) { - set(15, value); + set(13, value); } /** * Getter for public.t_person.sex. */ public EnumSex getSex() { - return (EnumSex) get(15); + return (EnumSex) get(13); } /** * Setter for public.t_person.fk_registrator. */ public void setFkRegistrator(Integer value) { - set(16, value); + set(14, value); } /** * Getter for public.t_person.fk_registrator. */ public Integer getFkRegistrator() { - return (Integer) get(16); + return (Integer) get(14); } /** * Setter for public.t_person.paid. */ public void setPaid(BigDecimal value) { - set(17, value); + set(15, value); } /** * Getter for public.t_person.paid. */ public BigDecimal getPaid() { - return (BigDecimal) get(17); + return (BigDecimal) get(15); } /** * Setter for public.t_person.comment. */ public void setComment(String value) { - set(18, value); + set(16, value); } /** * Getter for public.t_person.comment. */ public String getComment() { - return (String) get(18); + return (String) get(16); } /** * Setter for public.t_person.consent_catalog_photo. */ public void setConsentCatalogPhoto(Boolean value) { - set(19, value); + set(17, value); } /** * Getter for public.t_person.consent_catalog_photo. */ public Boolean getConsentCatalogPhoto() { - return (Boolean) get(19); + return (Boolean) get(17); } /** * Setter for public.t_person.required_price. */ public void setRequiredPrice(BigDecimal value) { - set(20, value); + set(18, value); } /** * Getter for public.t_person.required_price. */ public BigDecimal getRequiredPrice() { - return (BigDecimal) get(20); + return (BigDecimal) get(18); + } + + /** + * Setter for public.t_person.progress. + */ + public void setProgress(EnumProgress value) { + set(19, value); + } + + /** + * Getter for public.t_person.progress. + */ + public EnumProgress getProgress() { + return (EnumProgress) get(19); } // ------------------------------------------------------------------------- @@ -342,7 +328,7 @@ public class TPersonRecord extends UpdatableRecordImpl { /** * Create a detached, initialised TPersonRecord */ - public TPersonRecord(Integer pk, String forename, String surname, String street, String zip, String city, String phone, LocalDate birthdate, EnumCamprole camprole, String email, Integer fkCamp, Integer fkProfile, Boolean accept, EnumProgress progress, LocalDateTime created, EnumSex sex, Integer fkRegistrator, BigDecimal paid, String comment, Boolean consentCatalogPhoto, BigDecimal requiredPrice) { + public TPersonRecord(Integer pk, String forename, String surname, String street, String zip, String city, String phone, LocalDate birthdate, EnumCamprole camprole, String email, Integer fkCamp, Integer fkProfile, LocalDateTime created, EnumSex sex, Integer fkRegistrator, BigDecimal paid, String comment, Boolean consentCatalogPhoto, BigDecimal requiredPrice, EnumProgress progress) { super(TPerson.T_PERSON); setPk(pk); @@ -357,8 +343,6 @@ public class TPersonRecord extends UpdatableRecordImpl { setEmail(email); setFkCamp(fkCamp); setFkProfile(fkProfile); - setAccept(accept); - setProgress(progress); setCreated(created); setSex(sex); setFkRegistrator(fkRegistrator); @@ -366,6 +350,7 @@ public class TPersonRecord extends UpdatableRecordImpl { setComment(comment); setConsentCatalogPhoto(consentCatalogPhoto); setRequiredPrice(requiredPrice); + setProgress(progress); resetTouchedOnNotNull(); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TPlanRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TPlanRecord.java new file mode 100644 index 0000000..ac1c4d5 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TPlanRecord.java @@ -0,0 +1,126 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.records; + + +import de.jottyfan.camporganizer.db.jooq.tables.TPlan; + +import java.time.LocalDateTime; + +import org.jooq.Record1; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class TPlanRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.t_plan.created. + */ + public void setCreated(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for public.t_plan.created. + */ + public LocalDateTime getCreated() { + return (LocalDateTime) get(0); + } + + /** + * Setter for public.t_plan.pk_plan. + */ + public void setPkPlan(Integer value) { + set(1, value); + } + + /** + * Getter for public.t_plan.pk_plan. + */ + public Integer getPkPlan() { + return (Integer) get(1); + } + + /** + * Setter for public.t_plan.name. + */ + public void setName(String value) { + set(2, value); + } + + /** + * Getter for public.t_plan.name. + */ + public String getName() { + return (String) get(2); + } + + /** + * Setter for public.t_plan.fk_camp. + */ + public void setFkCamp(Integer value) { + set(3, value); + } + + /** + * Getter for public.t_plan.fk_camp. + */ + public Integer getFkCamp() { + return (Integer) get(3); + } + + /** + * Setter for public.t_plan.camptheme. + */ + public void setCamptheme(String value) { + set(4, value); + } + + /** + * Getter for public.t_plan.camptheme. + */ + public String getCamptheme() { + return (String) get(4); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached TPlanRecord + */ + public TPlanRecord() { + super(TPlan.T_PLAN); + } + + /** + * Create a detached, initialised TPlanRecord + */ + public TPlanRecord(LocalDateTime created, Integer pkPlan, String name, Integer fkCamp, String camptheme) { + super(TPlan.T_PLAN); + + setCreated(created); + setPkPlan(pkPlan); + setName(name); + setFkCamp(fkCamp); + setCamptheme(camptheme); + resetTouchedOnNotNull(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSlotRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSlotRecord.java new file mode 100644 index 0000000..3da9e3c --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSlotRecord.java @@ -0,0 +1,142 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.records; + + +import de.jottyfan.camporganizer.db.jooq.tables.TSlot; + +import java.time.LocalDateTime; +import java.time.LocalTime; + +import org.jooq.Record1; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class TSlotRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.t_slot.created. + */ + public void setCreated(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for public.t_slot.created. + */ + public LocalDateTime getCreated() { + return (LocalDateTime) get(0); + } + + /** + * Setter for public.t_slot.pk_slot. + */ + public void setPkSlot(Integer value) { + set(1, value); + } + + /** + * Getter for public.t_slot.pk_slot. + */ + public Integer getPkSlot() { + return (Integer) get(1); + } + + /** + * Setter for public.t_slot.name. + */ + public void setName(String value) { + set(2, value); + } + + /** + * Getter for public.t_slot.name. + */ + public String getName() { + return (String) get(2); + } + + /** + * Setter for public.t_slot.fk_plan. + */ + public void setFkPlan(Integer value) { + set(3, value); + } + + /** + * Getter for public.t_slot.fk_plan. + */ + public Integer getFkPlan() { + return (Integer) get(3); + } + + /** + * Setter for public.t_slot.start_time. + */ + public void setStartTime(LocalTime value) { + set(4, value); + } + + /** + * Getter for public.t_slot.start_time. + */ + public LocalTime getStartTime() { + return (LocalTime) get(4); + } + + /** + * Setter for public.t_slot.end_time. + */ + public void setEndTime(LocalTime value) { + set(5, value); + } + + /** + * Getter for public.t_slot.end_time. + */ + public LocalTime getEndTime() { + return (LocalTime) get(5); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached TSlotRecord + */ + public TSlotRecord() { + super(TSlot.T_SLOT); + } + + /** + * Create a detached, initialised TSlotRecord + */ + public TSlotRecord(LocalDateTime created, Integer pkSlot, String name, Integer fkPlan, LocalTime startTime, LocalTime endTime) { + super(TSlot.T_SLOT); + + setCreated(created); + setPkSlot(pkSlot); + setName(name); + setFkPlan(fkPlan); + setStartTime(startTime); + setEndTime(endTime); + resetTouchedOnNotNull(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TTaskPersonRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TTaskPersonRecord.java new file mode 100644 index 0000000..b924412 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TTaskPersonRecord.java @@ -0,0 +1,111 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.records; + + +import de.jottyfan.camporganizer.db.jooq.tables.TTaskPerson; + +import java.time.LocalDateTime; + +import org.jooq.Record1; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class TTaskPersonRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.t_task_person.created. + */ + public void setCreated(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for public.t_task_person.created. + */ + public LocalDateTime getCreated() { + return (LocalDateTime) get(0); + } + + /** + * Setter for public.t_task_person.pk_task_person. + */ + public void setPkTaskPerson(Integer value) { + set(1, value); + } + + /** + * Getter for public.t_task_person.pk_task_person. + */ + public Integer getPkTaskPerson() { + return (Integer) get(1); + } + + /** + * Setter for public.t_task_person.fk_task. + */ + public void setFkTask(Integer value) { + set(2, value); + } + + /** + * Getter for public.t_task_person.fk_task. + */ + public Integer getFkTask() { + return (Integer) get(2); + } + + /** + * Setter for public.t_task_person.fk_person. + */ + public void setFkPerson(Integer value) { + set(3, value); + } + + /** + * Getter for public.t_task_person.fk_person. + */ + public Integer getFkPerson() { + return (Integer) get(3); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached TTaskPersonRecord + */ + public TTaskPersonRecord() { + super(TTaskPerson.T_TASK_PERSON); + } + + /** + * Create a detached, initialised TTaskPersonRecord + */ + public TTaskPersonRecord(LocalDateTime created, Integer pkTaskPerson, Integer fkTask, Integer fkPerson) { + super(TTaskPerson.T_TASK_PERSON); + + setCreated(created); + setPkTaskPerson(pkTaskPerson); + setFkTask(fkTask); + setFkPerson(fkPerson); + resetTouchedOnNotNull(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TTaskRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TTaskRecord.java new file mode 100644 index 0000000..08efbf7 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TTaskRecord.java @@ -0,0 +1,126 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.records; + + +import de.jottyfan.camporganizer.db.jooq.tables.TTask; + +import java.time.LocalDateTime; + +import org.jooq.Record1; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) +public class TTaskRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.t_task.created. + */ + public void setCreated(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for public.t_task.created. + */ + public LocalDateTime getCreated() { + return (LocalDateTime) get(0); + } + + /** + * Setter for public.t_task.pk_task. + */ + public void setPkTask(Integer value) { + set(1, value); + } + + /** + * Getter for public.t_task.pk_task. + */ + public Integer getPkTask() { + return (Integer) get(1); + } + + /** + * Setter for public.t_task.fk_lesson. + */ + public void setFkLesson(Integer value) { + set(2, value); + } + + /** + * Getter for public.t_task.fk_lesson. + */ + public Integer getFkLesson() { + return (Integer) get(2); + } + + /** + * Setter for public.t_task.name. + */ + public void setName(String value) { + set(3, value); + } + + /** + * Getter for public.t_task.name. + */ + public String getName() { + return (String) get(3); + } + + /** + * Setter for public.t_task.bibleref. + */ + public void setBibleref(String value) { + set(4, value); + } + + /** + * Getter for public.t_task.bibleref. + */ + public String getBibleref() { + return (String) get(4); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached TTaskRecord + */ + public TTaskRecord() { + super(TTask.T_TASK); + } + + /** + * Create a detached, initialised TTaskRecord + */ + public TTaskRecord(LocalDateTime created, Integer pkTask, Integer fkLesson, String name, String bibleref) { + super(TTask.T_TASK); + + setCreated(created); + setPkTask(pkTask); + setFkLesson(fkLesson); + setName(name); + setBibleref(bibleref); + resetTouchedOnNotNull(); + } +} diff --git a/src/main/resources/setup.sql b/src/main/resources/setup.sql index 6e2e04b..3acd5f1 100644 --- a/src/main/resources/setup.sql +++ b/src/main/resources/setup.sql @@ -21,6 +21,11 @@ begin; \i tables/sales.sql \i tables/salescontenttype.sql \i tables/salescontent.sql + \i tables/plan.sql + \i tables/slot.sql + \i tables/lesson.sql + \i tables/task.sql + \i tables/task_person.sql \i views/adult.sql \i views/sales.sql diff --git a/src/main/resources/tables/lesson.sql b/src/main/resources/tables/lesson.sql new file mode 100644 index 0000000..8d71bc1 --- /dev/null +++ b/src/main/resources/tables/lesson.sql @@ -0,0 +1,9 @@ +create table public.t_lesson ( + created timestamp default CURRENT_TIMESTAMP, + pk_lesson int primary key generated always as identity, + day date not null, + fk_slot int not null references public.t_slot(pk_slot), + start_time_diff time, + end_time_diff time, + unique (day, fk_slot) +); diff --git a/src/main/resources/tables/plan.sql b/src/main/resources/tables/plan.sql new file mode 100644 index 0000000..f3d8f0c --- /dev/null +++ b/src/main/resources/tables/plan.sql @@ -0,0 +1,7 @@ +create table public.t_plan ( + created timestamp default CURRENT_TIMESTAMP, + pk_plan int primary key generated always as identity, + name text, + fk_camp int not null unique references public.t_camp(pk), + camptheme text +); diff --git a/src/main/resources/tables/slot.sql b/src/main/resources/tables/slot.sql new file mode 100644 index 0000000..e0e45fa --- /dev/null +++ b/src/main/resources/tables/slot.sql @@ -0,0 +1,8 @@ +create table public.t_slot ( + created timestamp default CURRENT_TIMESTAMP, + pk_slot int primary key generated always as identity, + name text, + fk_plan int not null references public.t_plan(pk_plan), + start_time time not null, + end_time time not null +); diff --git a/src/main/resources/tables/task.sql b/src/main/resources/tables/task.sql new file mode 100644 index 0000000..e459bcb --- /dev/null +++ b/src/main/resources/tables/task.sql @@ -0,0 +1,7 @@ +create table public.t_task ( + created timestamp default CURRENT_TIMESTAMP, + pk_task int primary key generated always as identity, + fk_lesson int not null references public.t_lesson(pk_lesson), + name text, + bibleref text +); diff --git a/src/main/resources/tables/task_person.sql b/src/main/resources/tables/task_person.sql new file mode 100644 index 0000000..288d435 --- /dev/null +++ b/src/main/resources/tables/task_person.sql @@ -0,0 +1,6 @@ +create table public.t_task_person ( + created timestamp default CURRENT_TIMESTAMP, + pk_task_person int primary key generated always as identity, + fk_task int not null references public.t_task(pk_task), + fk_person int not null references public.t_person(pk) +); diff --git a/src/main/resources/upgrade_2025-04-23.sql b/src/main/resources/upgrade_2025-04-23.sql index 26fb7a9..f72b676 100644 --- a/src/main/resources/upgrade_2025-04-23.sql +++ b/src/main/resources/upgrade_2025-04-23.sql @@ -1,5 +1,5 @@ begin; - drop view public.v_dsgvo_delete_candidate; + drop view if exists public.v_dsgvo_delete_candidate; drop view public.v_camp; alter table t_camp add column min_teacherage integer; diff --git a/src/main/resources/upgrade_2026-04-15.sql b/src/main/resources/upgrade_2026-04-15.sql new file mode 100644 index 0000000..524cae1 --- /dev/null +++ b/src/main/resources/upgrade_2026-04-15.sql @@ -0,0 +1,14 @@ +begin; + drop view public.v_dsgvo_delete_candidate; + drop view public.v_camp; + + \i tables/plan.sql + \i tables/slot.sql + \i tables/lesson.sql + \i tables/task.sql + \i tables/task_person.sql + + \i views/camp.sql + \i views/dsgvo_delete_candidate.sql + \i views/version.sql +commit; diff --git a/src/main/resources/views/version.sql b/src/main/resources/views/version.sql index 7edd3f1..d692ddf 100644 --- a/src/main/resources/views/version.sql +++ b/src/main/resources/views/version.sql @@ -1,2 +1,2 @@ create or replace view public.v_version as - select '2025-04-23'::text as version; + select '2026-04-15'::text as version;