diff --git a/.gradle/7.3/checksums/checksums.lock b/.gradle/7.3/checksums/checksums.lock index ae20eda..029697c 100644 Binary files a/.gradle/7.3/checksums/checksums.lock and b/.gradle/7.3/checksums/checksums.lock differ diff --git a/.gradle/7.3/checksums/md5-checksums.bin b/.gradle/7.3/checksums/md5-checksums.bin index 6819251..ab296f1 100644 Binary files a/.gradle/7.3/checksums/md5-checksums.bin and b/.gradle/7.3/checksums/md5-checksums.bin differ diff --git a/.gradle/7.3/checksums/sha1-checksums.bin b/.gradle/7.3/checksums/sha1-checksums.bin index 9f7a473..5917779 100644 Binary files a/.gradle/7.3/checksums/sha1-checksums.bin and b/.gradle/7.3/checksums/sha1-checksums.bin differ diff --git a/.gradle/7.3/executionHistory/executionHistory.bin b/.gradle/7.3/executionHistory/executionHistory.bin index f4ec3cc..02a8ce2 100644 Binary files a/.gradle/7.3/executionHistory/executionHistory.bin and b/.gradle/7.3/executionHistory/executionHistory.bin differ diff --git a/.gradle/7.3/executionHistory/executionHistory.lock b/.gradle/7.3/executionHistory/executionHistory.lock index 572a783..0658bbe 100644 Binary files a/.gradle/7.3/executionHistory/executionHistory.lock and b/.gradle/7.3/executionHistory/executionHistory.lock differ diff --git a/.gradle/7.3/fileHashes/fileHashes.bin b/.gradle/7.3/fileHashes/fileHashes.bin index 758d5a8..480331a 100644 Binary files a/.gradle/7.3/fileHashes/fileHashes.bin and b/.gradle/7.3/fileHashes/fileHashes.bin differ diff --git a/.gradle/7.3/fileHashes/fileHashes.lock b/.gradle/7.3/fileHashes/fileHashes.lock index fdabc95..559cd50 100644 Binary files a/.gradle/7.3/fileHashes/fileHashes.lock and b/.gradle/7.3/fileHashes/fileHashes.lock differ diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index d44f7df..c9d4924 100644 Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/.gradle/buildOutputCleanup/outputFiles.bin b/.gradle/buildOutputCleanup/outputFiles.bin index 3b0f606..b50821b 100644 Binary files a/.gradle/buildOutputCleanup/outputFiles.bin and b/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/build.gradle b/build.gradle index 743fae6..3f15656 100644 --- a/build.gradle +++ b/build.gradle @@ -22,7 +22,7 @@ apply plugin: 'java' apply plugin: 'maven-publish' group = 'de.jottyfan' -version = '2023.12' +version = '2023.12.1' description = """COJooq""" @@ -76,7 +76,7 @@ jooq { deprecated = false relations = true records = true - immutablePojos = false + immutablePojos = true fluentSetters = true } target { diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCamp.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCamp.java new file mode 100644 index 0000000..683483f --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCamp.java @@ -0,0 +1,282 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TCamp implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer pk; + private final String name; + private final LocalDateTime arrive; + private final LocalDateTime depart; + private final Integer fkLocation; + private final Integer minAge; + private final Integer maxAge; + private final String price; + private final String countries; + private final Integer fkDocument; + private final Boolean lockSales; + private final Integer fkProfile; + + public TCamp(TCamp value) { + this.pk = value.pk; + this.name = value.name; + this.arrive = value.arrive; + this.depart = value.depart; + this.fkLocation = value.fkLocation; + this.minAge = value.minAge; + this.maxAge = value.maxAge; + this.price = value.price; + this.countries = value.countries; + this.fkDocument = value.fkDocument; + this.lockSales = value.lockSales; + this.fkProfile = value.fkProfile; + } + + public TCamp( + Integer pk, + String name, + LocalDateTime arrive, + LocalDateTime depart, + Integer fkLocation, + Integer minAge, + Integer maxAge, + String price, + String countries, + Integer fkDocument, + Boolean lockSales, + Integer fkProfile + ) { + this.pk = pk; + this.name = name; + this.arrive = arrive; + this.depart = depart; + this.fkLocation = fkLocation; + this.minAge = minAge; + this.maxAge = maxAge; + this.price = price; + this.countries = countries; + this.fkDocument = fkDocument; + this.lockSales = lockSales; + this.fkProfile = fkProfile; + } + + /** + * Getter for camp.t_camp.pk. + */ + public Integer getPk() { + return this.pk; + } + + /** + * Getter for camp.t_camp.name. + */ + public String getName() { + return this.name; + } + + /** + * Getter for camp.t_camp.arrive. + */ + public LocalDateTime getArrive() { + return this.arrive; + } + + /** + * Getter for camp.t_camp.depart. + */ + public LocalDateTime getDepart() { + return this.depart; + } + + /** + * Getter for camp.t_camp.fk_location. + */ + public Integer getFkLocation() { + return this.fkLocation; + } + + /** + * Getter for camp.t_camp.min_age. + */ + public Integer getMinAge() { + return this.minAge; + } + + /** + * Getter for camp.t_camp.max_age. + */ + public Integer getMaxAge() { + return this.maxAge; + } + + /** + * Getter for camp.t_camp.price. + */ + public String getPrice() { + return this.price; + } + + /** + * Getter for camp.t_camp.countries. + */ + public String getCountries() { + return this.countries; + } + + /** + * Getter for camp.t_camp.fk_document. + */ + public Integer getFkDocument() { + return this.fkDocument; + } + + /** + * Getter for camp.t_camp.lock_sales. + */ + public Boolean getLockSales() { + return this.lockSales; + } + + /** + * Getter for camp.t_camp.fk_profile. + */ + public Integer getFkProfile() { + return this.fkProfile; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TCamp other = (TCamp) obj; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + if (this.arrive == null) { + if (other.arrive != null) + return false; + } + else if (!this.arrive.equals(other.arrive)) + return false; + if (this.depart == null) { + if (other.depart != null) + return false; + } + else if (!this.depart.equals(other.depart)) + return false; + if (this.fkLocation == null) { + if (other.fkLocation != null) + return false; + } + else if (!this.fkLocation.equals(other.fkLocation)) + return false; + if (this.minAge == null) { + if (other.minAge != null) + return false; + } + else if (!this.minAge.equals(other.minAge)) + return false; + if (this.maxAge == null) { + if (other.maxAge != null) + return false; + } + else if (!this.maxAge.equals(other.maxAge)) + return false; + if (this.price == null) { + if (other.price != null) + return false; + } + else if (!this.price.equals(other.price)) + return false; + if (this.countries == null) { + if (other.countries != null) + return false; + } + else if (!this.countries.equals(other.countries)) + return false; + if (this.fkDocument == null) { + if (other.fkDocument != null) + return false; + } + else if (!this.fkDocument.equals(other.fkDocument)) + return false; + if (this.lockSales == null) { + if (other.lockSales != null) + return false; + } + else if (!this.lockSales.equals(other.lockSales)) + return false; + if (this.fkProfile == null) { + if (other.fkProfile != null) + return false; + } + else if (!this.fkProfile.equals(other.fkProfile)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + result = prime * result + ((this.arrive == null) ? 0 : this.arrive.hashCode()); + result = prime * result + ((this.depart == null) ? 0 : this.depart.hashCode()); + result = prime * result + ((this.fkLocation == null) ? 0 : this.fkLocation.hashCode()); + result = prime * result + ((this.minAge == null) ? 0 : this.minAge.hashCode()); + result = prime * result + ((this.maxAge == null) ? 0 : this.maxAge.hashCode()); + result = prime * result + ((this.price == null) ? 0 : this.price.hashCode()); + result = prime * result + ((this.countries == null) ? 0 : this.countries.hashCode()); + result = prime * result + ((this.fkDocument == null) ? 0 : this.fkDocument.hashCode()); + result = prime * result + ((this.lockSales == null) ? 0 : this.lockSales.hashCode()); + result = prime * result + ((this.fkProfile == null) ? 0 : this.fkProfile.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TCamp ("); + + sb.append(pk); + sb.append(", ").append(name); + sb.append(", ").append(arrive); + sb.append(", ").append(depart); + sb.append(", ").append(fkLocation); + sb.append(", ").append(minAge); + sb.append(", ").append(maxAge); + sb.append(", ").append(price); + sb.append(", ").append(countries); + sb.append(", ").append(fkDocument); + sb.append(", ").append(lockSales); + sb.append(", ").append(fkProfile); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampdocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampdocument.java new file mode 100644 index 0000000..21b2d74 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampdocument.java @@ -0,0 +1,110 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TCampdocument implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer pk; + private final Integer fkCamp; + private final Integer fkDocument; + + public TCampdocument(TCampdocument value) { + this.pk = value.pk; + this.fkCamp = value.fkCamp; + this.fkDocument = value.fkDocument; + } + + public TCampdocument( + Integer pk, + Integer fkCamp, + Integer fkDocument + ) { + this.pk = pk; + this.fkCamp = fkCamp; + this.fkDocument = fkDocument; + } + + /** + * Getter for camp.t_campdocument.pk. + */ + public Integer getPk() { + return this.pk; + } + + /** + * Getter for camp.t_campdocument.fk_camp. + */ + public Integer getFkCamp() { + return this.fkCamp; + } + + /** + * Getter for camp.t_campdocument.fk_document. + */ + public Integer getFkDocument() { + return this.fkDocument; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TCampdocument other = (TCampdocument) obj; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; + if (this.fkCamp == null) { + if (other.fkCamp != null) + return false; + } + else if (!this.fkCamp.equals(other.fkCamp)) + return false; + if (this.fkDocument == null) { + if (other.fkDocument != null) + return false; + } + else if (!this.fkDocument.equals(other.fkDocument)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); + result = prime * result + ((this.fkCamp == null) ? 0 : this.fkCamp.hashCode()); + result = prime * result + ((this.fkDocument == null) ? 0 : this.fkDocument.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TCampdocument ("); + + sb.append(pk); + sb.append(", ").append(fkCamp); + sb.append(", ").append(fkDocument); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampprofile.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampprofile.java new file mode 100644 index 0000000..0f59bf7 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampprofile.java @@ -0,0 +1,131 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumModule; + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TCampprofile implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer pk; + private final Integer fkProfile; + private final Integer fkCamp; + private final EnumModule module; + + public TCampprofile(TCampprofile value) { + this.pk = value.pk; + this.fkProfile = value.fkProfile; + this.fkCamp = value.fkCamp; + this.module = value.module; + } + + public TCampprofile( + Integer pk, + Integer fkProfile, + Integer fkCamp, + EnumModule module + ) { + this.pk = pk; + this.fkProfile = fkProfile; + this.fkCamp = fkCamp; + this.module = module; + } + + /** + * Getter for camp.t_campprofile.pk. + */ + public Integer getPk() { + return this.pk; + } + + /** + * Getter for camp.t_campprofile.fk_profile. + */ + public Integer getFkProfile() { + return this.fkProfile; + } + + /** + * Getter for camp.t_campprofile.fk_camp. + */ + public Integer getFkCamp() { + return this.fkCamp; + } + + /** + * Getter for camp.t_campprofile.module. + */ + public EnumModule getModule() { + return this.module; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TCampprofile other = (TCampprofile) obj; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; + if (this.fkProfile == null) { + if (other.fkProfile != null) + return false; + } + else if (!this.fkProfile.equals(other.fkProfile)) + return false; + if (this.fkCamp == null) { + if (other.fkCamp != null) + return false; + } + else if (!this.fkCamp.equals(other.fkCamp)) + return false; + if (this.module == null) { + if (other.module != null) + return false; + } + else if (!this.module.equals(other.module)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); + result = prime * result + ((this.fkProfile == null) ? 0 : this.fkProfile.hashCode()); + result = prime * result + ((this.fkCamp == null) ? 0 : this.fkCamp.hashCode()); + result = prime * result + ((this.module == null) ? 0 : this.module.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TCampprofile ("); + + sb.append(pk); + sb.append(", ").append(fkProfile); + sb.append(", ").append(fkCamp); + sb.append(", ").append(module); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocument.java new file mode 100644 index 0000000..8bc032d --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocument.java @@ -0,0 +1,151 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumDocument; +import de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype; + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TDocument implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer pk; + private final EnumDocument doctype; + private final String name; + private final String document; + private final EnumFiletype filetype; + + public TDocument(TDocument value) { + this.pk = value.pk; + this.doctype = value.doctype; + this.name = value.name; + this.document = value.document; + this.filetype = value.filetype; + } + + public TDocument( + Integer pk, + EnumDocument doctype, + String name, + String document, + EnumFiletype filetype + ) { + this.pk = pk; + this.doctype = doctype; + this.name = name; + this.document = document; + this.filetype = filetype; + } + + /** + * Getter for camp.t_document.pk. + */ + public Integer getPk() { + return this.pk; + } + + /** + * Getter for camp.t_document.doctype. + */ + public EnumDocument getDoctype() { + return this.doctype; + } + + /** + * Getter for camp.t_document.name. + */ + public String getName() { + return this.name; + } + + /** + * Getter for camp.t_document.document. + */ + public String getDocument() { + return this.document; + } + + /** + * Getter for camp.t_document.filetype. + */ + public EnumFiletype getFiletype() { + return this.filetype; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TDocument other = (TDocument) obj; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; + if (this.doctype == null) { + if (other.doctype != null) + return false; + } + else if (!this.doctype.equals(other.doctype)) + return false; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + if (this.document == null) { + if (other.document != null) + return false; + } + else if (!this.document.equals(other.document)) + return false; + if (this.filetype == null) { + if (other.filetype != null) + return false; + } + else if (!this.filetype.equals(other.filetype)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); + result = prime * result + ((this.doctype == null) ? 0 : this.doctype.hashCode()); + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + result = prime * result + ((this.document == null) ? 0 : this.document.hashCode()); + result = prime * result + ((this.filetype == null) ? 0 : this.filetype.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TDocument ("); + + sb.append(pk); + sb.append(", ").append(doctype); + sb.append(", ").append(name); + sb.append(", ").append(document); + sb.append(", ").append(filetype); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocumentrole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocumentrole.java new file mode 100644 index 0000000..9aa8c74 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocumentrole.java @@ -0,0 +1,112 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TDocumentrole implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer pk; + private final Integer fkDocument; + private final EnumCamprole camprole; + + public TDocumentrole(TDocumentrole value) { + this.pk = value.pk; + this.fkDocument = value.fkDocument; + this.camprole = value.camprole; + } + + public TDocumentrole( + Integer pk, + Integer fkDocument, + EnumCamprole camprole + ) { + this.pk = pk; + this.fkDocument = fkDocument; + this.camprole = camprole; + } + + /** + * Getter for camp.t_documentrole.pk. + */ + public Integer getPk() { + return this.pk; + } + + /** + * Getter for camp.t_documentrole.fk_document. + */ + public Integer getFkDocument() { + return this.fkDocument; + } + + /** + * Getter for camp.t_documentrole.camprole. + */ + public EnumCamprole getCamprole() { + return this.camprole; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TDocumentrole other = (TDocumentrole) obj; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; + if (this.fkDocument == null) { + if (other.fkDocument != null) + return false; + } + else if (!this.fkDocument.equals(other.fkDocument)) + return false; + if (this.camprole == null) { + if (other.camprole != null) + return false; + } + else if (!this.camprole.equals(other.camprole)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); + result = prime * result + ((this.fkDocument == null) ? 0 : this.fkDocument.hashCode()); + result = prime * result + ((this.camprole == null) ? 0 : this.camprole.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TDocumentrole ("); + + sb.append(pk); + sb.append(", ").append(fkDocument); + sb.append(", ").append(camprole); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TLocation.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TLocation.java new file mode 100644 index 0000000..e5c86c8 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TLocation.java @@ -0,0 +1,129 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TLocation implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer pk; + private final String name; + private final String url; + private final Integer fkDocument; + + public TLocation(TLocation value) { + this.pk = value.pk; + this.name = value.name; + this.url = value.url; + this.fkDocument = value.fkDocument; + } + + public TLocation( + Integer pk, + String name, + String url, + Integer fkDocument + ) { + this.pk = pk; + this.name = name; + this.url = url; + this.fkDocument = fkDocument; + } + + /** + * Getter for camp.t_location.pk. + */ + public Integer getPk() { + return this.pk; + } + + /** + * Getter for camp.t_location.name. + */ + public String getName() { + return this.name; + } + + /** + * Getter for camp.t_location.url. + */ + public String getUrl() { + return this.url; + } + + /** + * Getter for camp.t_location.fk_document. + */ + public Integer getFkDocument() { + return this.fkDocument; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TLocation other = (TLocation) obj; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + if (this.url == null) { + if (other.url != null) + return false; + } + else if (!this.url.equals(other.url)) + return false; + if (this.fkDocument == null) { + if (other.fkDocument != null) + return false; + } + else if (!this.fkDocument.equals(other.fkDocument)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + result = prime * result + ((this.url == null) ? 0 : this.url.hashCode()); + result = prime * result + ((this.fkDocument == null) ? 0 : this.fkDocument.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TLocation ("); + + sb.append(pk); + sb.append(", ").append(name); + sb.append(", ").append(url); + sb.append(", ").append(fkDocument); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPerson.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPerson.java new file mode 100644 index 0000000..2e86dcf --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPerson.java @@ -0,0 +1,439 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; +import de.jottyfan.camporganizer.db.jooq.enums.EnumSex; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.time.LocalDate; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TPerson implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer pk; + private final String forename; + private final String surname; + private final String street; + private final String zip; + private final String city; + private final String phone; + private final LocalDate birthdate; + private final EnumCamprole camprole; + private final String email; + private final Integer fkCamp; + private final Integer fkProfile; + private final Boolean accept; + private final LocalDateTime created; + private final EnumSex sex; + private final Integer fkRegistrator; + private final BigDecimal paid; + private final String comment; + private final Boolean consentCatalogPhoto; + private final BigDecimal requiredPrice; + + public TPerson(TPerson value) { + this.pk = value.pk; + this.forename = value.forename; + this.surname = value.surname; + this.street = value.street; + this.zip = value.zip; + this.city = value.city; + this.phone = value.phone; + this.birthdate = value.birthdate; + this.camprole = value.camprole; + this.email = value.email; + this.fkCamp = value.fkCamp; + this.fkProfile = value.fkProfile; + this.accept = value.accept; + this.created = value.created; + this.sex = value.sex; + this.fkRegistrator = value.fkRegistrator; + this.paid = value.paid; + this.comment = value.comment; + this.consentCatalogPhoto = value.consentCatalogPhoto; + this.requiredPrice = value.requiredPrice; + } + + public TPerson( + Integer pk, + String forename, + String surname, + String street, + String zip, + String city, + String phone, + LocalDate birthdate, + EnumCamprole camprole, + String email, + Integer fkCamp, + Integer fkProfile, + Boolean accept, + LocalDateTime created, + EnumSex sex, + Integer fkRegistrator, + BigDecimal paid, + String comment, + Boolean consentCatalogPhoto, + BigDecimal requiredPrice + ) { + this.pk = pk; + this.forename = forename; + this.surname = surname; + this.street = street; + this.zip = zip; + this.city = city; + this.phone = phone; + this.birthdate = birthdate; + this.camprole = camprole; + this.email = email; + this.fkCamp = fkCamp; + this.fkProfile = fkProfile; + this.accept = accept; + this.created = created; + this.sex = sex; + this.fkRegistrator = fkRegistrator; + this.paid = paid; + this.comment = comment; + this.consentCatalogPhoto = consentCatalogPhoto; + this.requiredPrice = requiredPrice; + } + + /** + * Getter for camp.t_person.pk. + */ + public Integer getPk() { + return this.pk; + } + + /** + * Getter for camp.t_person.forename. + */ + public String getForename() { + return this.forename; + } + + /** + * Getter for camp.t_person.surname. + */ + public String getSurname() { + return this.surname; + } + + /** + * Getter for camp.t_person.street. + */ + public String getStreet() { + return this.street; + } + + /** + * Getter for camp.t_person.zip. + */ + public String getZip() { + return this.zip; + } + + /** + * Getter for camp.t_person.city. + */ + public String getCity() { + return this.city; + } + + /** + * Getter for camp.t_person.phone. + */ + public String getPhone() { + return this.phone; + } + + /** + * Getter for camp.t_person.birthdate. + */ + public LocalDate getBirthdate() { + return this.birthdate; + } + + /** + * Getter for camp.t_person.camprole. + */ + public EnumCamprole getCamprole() { + return this.camprole; + } + + /** + * Getter for camp.t_person.email. + */ + public String getEmail() { + return this.email; + } + + /** + * Getter for camp.t_person.fk_camp. + */ + public Integer getFkCamp() { + return this.fkCamp; + } + + /** + * Getter for camp.t_person.fk_profile. + */ + public Integer getFkProfile() { + return this.fkProfile; + } + + /** + * Getter for camp.t_person.accept. + */ + public Boolean getAccept() { + return this.accept; + } + + /** + * Getter for camp.t_person.created. + */ + public LocalDateTime getCreated() { + return this.created; + } + + /** + * Getter for camp.t_person.sex. + */ + public EnumSex getSex() { + return this.sex; + } + + /** + * Getter for camp.t_person.fk_registrator. + */ + public Integer getFkRegistrator() { + return this.fkRegistrator; + } + + /** + * Getter for camp.t_person.paid. + */ + public BigDecimal getPaid() { + return this.paid; + } + + /** + * Getter for camp.t_person.comment. + */ + public String getComment() { + return this.comment; + } + + /** + * Getter for camp.t_person.consent_catalog_photo. + */ + public Boolean getConsentCatalogPhoto() { + return this.consentCatalogPhoto; + } + + /** + * Getter for camp.t_person.required_price. + */ + public BigDecimal getRequiredPrice() { + return this.requiredPrice; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TPerson other = (TPerson) obj; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; + if (this.forename == null) { + if (other.forename != null) + return false; + } + else if (!this.forename.equals(other.forename)) + return false; + if (this.surname == null) { + if (other.surname != null) + return false; + } + else if (!this.surname.equals(other.surname)) + return false; + if (this.street == null) { + if (other.street != null) + return false; + } + else if (!this.street.equals(other.street)) + return false; + if (this.zip == null) { + if (other.zip != null) + return false; + } + else if (!this.zip.equals(other.zip)) + return false; + if (this.city == null) { + if (other.city != null) + return false; + } + else if (!this.city.equals(other.city)) + return false; + if (this.phone == null) { + if (other.phone != null) + return false; + } + else if (!this.phone.equals(other.phone)) + return false; + if (this.birthdate == null) { + if (other.birthdate != null) + return false; + } + else if (!this.birthdate.equals(other.birthdate)) + return false; + if (this.camprole == null) { + if (other.camprole != null) + return false; + } + else if (!this.camprole.equals(other.camprole)) + return false; + if (this.email == null) { + if (other.email != null) + return false; + } + else if (!this.email.equals(other.email)) + return false; + if (this.fkCamp == null) { + if (other.fkCamp != null) + return false; + } + else if (!this.fkCamp.equals(other.fkCamp)) + return false; + if (this.fkProfile == null) { + if (other.fkProfile != null) + return false; + } + else if (!this.fkProfile.equals(other.fkProfile)) + return false; + if (this.accept == null) { + if (other.accept != null) + return false; + } + else if (!this.accept.equals(other.accept)) + return false; + if (this.created == null) { + if (other.created != null) + return false; + } + else if (!this.created.equals(other.created)) + return false; + if (this.sex == null) { + if (other.sex != null) + return false; + } + else if (!this.sex.equals(other.sex)) + return false; + if (this.fkRegistrator == null) { + if (other.fkRegistrator != null) + return false; + } + else if (!this.fkRegistrator.equals(other.fkRegistrator)) + return false; + if (this.paid == null) { + if (other.paid != null) + return false; + } + else if (!this.paid.equals(other.paid)) + return false; + if (this.comment == null) { + if (other.comment != null) + return false; + } + else if (!this.comment.equals(other.comment)) + return false; + if (this.consentCatalogPhoto == null) { + if (other.consentCatalogPhoto != null) + return false; + } + else if (!this.consentCatalogPhoto.equals(other.consentCatalogPhoto)) + return false; + if (this.requiredPrice == null) { + if (other.requiredPrice != null) + return false; + } + else if (!this.requiredPrice.equals(other.requiredPrice)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); + result = prime * result + ((this.forename == null) ? 0 : this.forename.hashCode()); + result = prime * result + ((this.surname == null) ? 0 : this.surname.hashCode()); + result = prime * result + ((this.street == null) ? 0 : this.street.hashCode()); + result = prime * result + ((this.zip == null) ? 0 : this.zip.hashCode()); + result = prime * result + ((this.city == null) ? 0 : this.city.hashCode()); + result = prime * result + ((this.phone == null) ? 0 : this.phone.hashCode()); + result = prime * result + ((this.birthdate == null) ? 0 : this.birthdate.hashCode()); + result = prime * result + ((this.camprole == null) ? 0 : this.camprole.hashCode()); + result = prime * result + ((this.email == null) ? 0 : this.email.hashCode()); + result = prime * result + ((this.fkCamp == null) ? 0 : this.fkCamp.hashCode()); + result = prime * result + ((this.fkProfile == null) ? 0 : this.fkProfile.hashCode()); + result = prime * result + ((this.accept == null) ? 0 : this.accept.hashCode()); + result = prime * result + ((this.created == null) ? 0 : this.created.hashCode()); + result = prime * result + ((this.sex == null) ? 0 : this.sex.hashCode()); + result = prime * result + ((this.fkRegistrator == null) ? 0 : this.fkRegistrator.hashCode()); + result = prime * result + ((this.paid == null) ? 0 : this.paid.hashCode()); + result = prime * result + ((this.comment == null) ? 0 : this.comment.hashCode()); + result = prime * result + ((this.consentCatalogPhoto == null) ? 0 : this.consentCatalogPhoto.hashCode()); + result = prime * result + ((this.requiredPrice == null) ? 0 : this.requiredPrice.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TPerson ("); + + sb.append(pk); + sb.append(", ").append(forename); + sb.append(", ").append(surname); + sb.append(", ").append(street); + sb.append(", ").append(zip); + sb.append(", ").append(city); + sb.append(", ").append(phone); + sb.append(", ").append(birthdate); + sb.append(", ").append(camprole); + sb.append(", ").append(email); + sb.append(", ").append(fkCamp); + sb.append(", ").append(fkProfile); + sb.append(", ").append(accept); + sb.append(", ").append(created); + sb.append(", ").append(sex); + sb.append(", ").append(fkRegistrator); + sb.append(", ").append(paid); + sb.append(", ").append(comment); + sb.append(", ").append(consentCatalogPhoto); + sb.append(", ").append(requiredPrice); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPersondocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPersondocument.java new file mode 100644 index 0000000..30359c0 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPersondocument.java @@ -0,0 +1,150 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype; + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TPersondocument implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer pk; + private final Integer fkPerson; + private final String name; + private final String document; + private final EnumFiletype filetype; + + public TPersondocument(TPersondocument value) { + this.pk = value.pk; + this.fkPerson = value.fkPerson; + this.name = value.name; + this.document = value.document; + this.filetype = value.filetype; + } + + public TPersondocument( + Integer pk, + Integer fkPerson, + String name, + String document, + EnumFiletype filetype + ) { + this.pk = pk; + this.fkPerson = fkPerson; + this.name = name; + this.document = document; + this.filetype = filetype; + } + + /** + * Getter for camp.t_persondocument.pk. + */ + public Integer getPk() { + return this.pk; + } + + /** + * Getter for camp.t_persondocument.fk_person. + */ + public Integer getFkPerson() { + return this.fkPerson; + } + + /** + * Getter for camp.t_persondocument.name. + */ + public String getName() { + return this.name; + } + + /** + * Getter for camp.t_persondocument.document. + */ + public String getDocument() { + return this.document; + } + + /** + * Getter for camp.t_persondocument.filetype. + */ + public EnumFiletype getFiletype() { + return this.filetype; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TPersondocument other = (TPersondocument) obj; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; + if (this.fkPerson == null) { + if (other.fkPerson != null) + return false; + } + else if (!this.fkPerson.equals(other.fkPerson)) + return false; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + if (this.document == null) { + if (other.document != null) + return false; + } + else if (!this.document.equals(other.document)) + return false; + if (this.filetype == null) { + if (other.filetype != null) + return false; + } + else if (!this.filetype.equals(other.filetype)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); + result = prime * result + ((this.fkPerson == null) ? 0 : this.fkPerson.hashCode()); + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + result = prime * result + ((this.document == null) ? 0 : this.document.hashCode()); + result = prime * result + ((this.filetype == null) ? 0 : this.filetype.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TPersondocument ("); + + sb.append(pk); + sb.append(", ").append(fkPerson); + sb.append(", ").append(name); + sb.append(", ").append(document); + sb.append(", ").append(filetype); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfile.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfile.java new file mode 100644 index 0000000..2ee60b2 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfile.java @@ -0,0 +1,187 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TProfile implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer pk; + private final String forename; + private final String surname; + private final String username; + private final String password; + private final LocalDateTime duedate; + private final String uuid; + + public TProfile(TProfile value) { + this.pk = value.pk; + this.forename = value.forename; + this.surname = value.surname; + this.username = value.username; + this.password = value.password; + this.duedate = value.duedate; + this.uuid = value.uuid; + } + + public TProfile( + Integer pk, + String forename, + String surname, + String username, + String password, + LocalDateTime duedate, + String uuid + ) { + this.pk = pk; + this.forename = forename; + this.surname = surname; + this.username = username; + this.password = password; + this.duedate = duedate; + this.uuid = uuid; + } + + /** + * Getter for camp.t_profile.pk. + */ + public Integer getPk() { + return this.pk; + } + + /** + * Getter for camp.t_profile.forename. + */ + public String getForename() { + return this.forename; + } + + /** + * Getter for camp.t_profile.surname. + */ + public String getSurname() { + return this.surname; + } + + /** + * Getter for camp.t_profile.username. + */ + public String getUsername() { + return this.username; + } + + /** + * Getter for camp.t_profile.password. + */ + public String getPassword() { + return this.password; + } + + /** + * Getter for camp.t_profile.duedate. + */ + public LocalDateTime getDuedate() { + return this.duedate; + } + + /** + * Getter for camp.t_profile.uuid. + */ + public String getUuid() { + return this.uuid; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TProfile other = (TProfile) obj; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; + if (this.forename == null) { + if (other.forename != null) + return false; + } + else if (!this.forename.equals(other.forename)) + return false; + if (this.surname == null) { + if (other.surname != null) + return false; + } + else if (!this.surname.equals(other.surname)) + return false; + if (this.username == null) { + if (other.username != null) + return false; + } + else if (!this.username.equals(other.username)) + return false; + if (this.password == null) { + if (other.password != null) + return false; + } + else if (!this.password.equals(other.password)) + return false; + if (this.duedate == null) { + if (other.duedate != null) + return false; + } + else if (!this.duedate.equals(other.duedate)) + return false; + if (this.uuid == null) { + if (other.uuid != null) + return false; + } + else if (!this.uuid.equals(other.uuid)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); + result = prime * result + ((this.forename == null) ? 0 : this.forename.hashCode()); + result = prime * result + ((this.surname == null) ? 0 : this.surname.hashCode()); + result = prime * result + ((this.username == null) ? 0 : this.username.hashCode()); + result = prime * result + ((this.password == null) ? 0 : this.password.hashCode()); + result = prime * result + ((this.duedate == null) ? 0 : this.duedate.hashCode()); + result = prime * result + ((this.uuid == null) ? 0 : this.uuid.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TProfile ("); + + sb.append(pk); + sb.append(", ").append(forename); + sb.append(", ").append(surname); + sb.append(", ").append(username); + sb.append(", ").append(password); + sb.append(", ").append(duedate); + sb.append(", ").append(uuid); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfilerole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfilerole.java new file mode 100644 index 0000000..41b838e --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfilerole.java @@ -0,0 +1,93 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumRole; + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TProfilerole implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer fkProfile; + private final EnumRole role; + + public TProfilerole(TProfilerole value) { + this.fkProfile = value.fkProfile; + this.role = value.role; + } + + public TProfilerole( + Integer fkProfile, + EnumRole role + ) { + this.fkProfile = fkProfile; + this.role = role; + } + + /** + * Getter for camp.t_profilerole.fk_profile. + */ + public Integer getFkProfile() { + return this.fkProfile; + } + + /** + * Getter for camp.t_profilerole.role. + */ + public EnumRole getRole() { + return this.role; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TProfilerole other = (TProfilerole) obj; + if (this.fkProfile == null) { + if (other.fkProfile != null) + return false; + } + else if (!this.fkProfile.equals(other.fkProfile)) + return false; + if (this.role == null) { + if (other.role != null) + return false; + } + else if (!this.role.equals(other.role)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.fkProfile == null) ? 0 : this.fkProfile.hashCode()); + result = prime * result + ((this.role == null) ? 0 : this.role.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TProfilerole ("); + + sb.append(fkProfile); + sb.append(", ").append(role); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TRss.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TRss.java new file mode 100644 index 0000000..94597e2 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TRss.java @@ -0,0 +1,130 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TRss implements Serializable { + + private static final long serialVersionUID = 1L; + + private final String msg; + private final LocalDateTime regdate; + private final String recipient; + private final Integer pk; + + public TRss(TRss value) { + this.msg = value.msg; + this.regdate = value.regdate; + this.recipient = value.recipient; + this.pk = value.pk; + } + + public TRss( + String msg, + LocalDateTime regdate, + String recipient, + Integer pk + ) { + this.msg = msg; + this.regdate = regdate; + this.recipient = recipient; + this.pk = pk; + } + + /** + * Getter for camp.t_rss.msg. + */ + public String getMsg() { + return this.msg; + } + + /** + * Getter for camp.t_rss.regdate. + */ + public LocalDateTime getRegdate() { + return this.regdate; + } + + /** + * Getter for camp.t_rss.recipient. + */ + public String getRecipient() { + return this.recipient; + } + + /** + * Getter for camp.t_rss.pk. + */ + public Integer getPk() { + return this.pk; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TRss other = (TRss) obj; + if (this.msg == null) { + if (other.msg != null) + return false; + } + else if (!this.msg.equals(other.msg)) + return false; + if (this.regdate == null) { + if (other.regdate != null) + return false; + } + else if (!this.regdate.equals(other.regdate)) + return false; + if (this.recipient == null) { + if (other.recipient != null) + return false; + } + else if (!this.recipient.equals(other.recipient)) + return false; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.msg == null) ? 0 : this.msg.hashCode()); + result = prime * result + ((this.regdate == null) ? 0 : this.regdate.hashCode()); + result = prime * result + ((this.recipient == null) ? 0 : this.recipient.hashCode()); + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TRss ("); + + sb.append(msg); + sb.append(", ").append(regdate); + sb.append(", ").append(recipient); + sb.append(", ").append(pk); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSales.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSales.java new file mode 100644 index 0000000..815811b --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSales.java @@ -0,0 +1,265 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import java.io.Serializable; +import java.math.BigDecimal; +import java.time.LocalDateTime; +import java.util.Arrays; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TSales implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer pk; + private final String trader; + private final Integer fkCamp; + private final String provider; + private final BigDecimal cash; + private final LocalDateTime buydate; + private final String recipenumber; + private final byte[] recipeshot; + private final String recipenote; + private final String incredients; + private final String recipefilename; + + public TSales(TSales value) { + this.pk = value.pk; + this.trader = value.trader; + this.fkCamp = value.fkCamp; + this.provider = value.provider; + this.cash = value.cash; + this.buydate = value.buydate; + this.recipenumber = value.recipenumber; + this.recipeshot = value.recipeshot; + this.recipenote = value.recipenote; + this.incredients = value.incredients; + this.recipefilename = value.recipefilename; + } + + public TSales( + Integer pk, + String trader, + Integer fkCamp, + String provider, + BigDecimal cash, + LocalDateTime buydate, + String recipenumber, + byte[] recipeshot, + String recipenote, + String incredients, + String recipefilename + ) { + this.pk = pk; + this.trader = trader; + this.fkCamp = fkCamp; + this.provider = provider; + this.cash = cash; + this.buydate = buydate; + this.recipenumber = recipenumber; + this.recipeshot = recipeshot; + this.recipenote = recipenote; + this.incredients = incredients; + this.recipefilename = recipefilename; + } + + /** + * Getter for camp.t_sales.pk. + */ + public Integer getPk() { + return this.pk; + } + + /** + * Getter for camp.t_sales.trader. + */ + public String getTrader() { + return this.trader; + } + + /** + * Getter for camp.t_sales.fk_camp. + */ + public Integer getFkCamp() { + return this.fkCamp; + } + + /** + * Getter for camp.t_sales.provider. + */ + public String getProvider() { + return this.provider; + } + + /** + * Getter for camp.t_sales.cash. + */ + public BigDecimal getCash() { + return this.cash; + } + + /** + * Getter for camp.t_sales.buydate. + */ + public LocalDateTime getBuydate() { + return this.buydate; + } + + /** + * Getter for camp.t_sales.recipenumber. + */ + public String getRecipenumber() { + return this.recipenumber; + } + + /** + * Getter for camp.t_sales.recipeshot. + */ + public byte[] getRecipeshot() { + return this.recipeshot; + } + + /** + * Getter for camp.t_sales.recipenote. + */ + public String getRecipenote() { + return this.recipenote; + } + + /** + * Getter for camp.t_sales.incredients. + */ + public String getIncredients() { + return this.incredients; + } + + /** + * Getter for camp.t_sales.recipefilename. + */ + public String getRecipefilename() { + return this.recipefilename; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TSales other = (TSales) obj; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; + if (this.trader == null) { + if (other.trader != null) + return false; + } + else if (!this.trader.equals(other.trader)) + return false; + if (this.fkCamp == null) { + if (other.fkCamp != null) + return false; + } + else if (!this.fkCamp.equals(other.fkCamp)) + return false; + if (this.provider == null) { + if (other.provider != null) + return false; + } + else if (!this.provider.equals(other.provider)) + return false; + if (this.cash == null) { + if (other.cash != null) + return false; + } + else if (!this.cash.equals(other.cash)) + return false; + if (this.buydate == null) { + if (other.buydate != null) + return false; + } + else if (!this.buydate.equals(other.buydate)) + return false; + if (this.recipenumber == null) { + if (other.recipenumber != null) + return false; + } + else if (!this.recipenumber.equals(other.recipenumber)) + return false; + if (this.recipeshot == null) { + if (other.recipeshot != null) + return false; + } + else if (!Arrays.equals(this.recipeshot, other.recipeshot)) + return false; + if (this.recipenote == null) { + if (other.recipenote != null) + return false; + } + else if (!this.recipenote.equals(other.recipenote)) + return false; + if (this.incredients == null) { + if (other.incredients != null) + return false; + } + else if (!this.incredients.equals(other.incredients)) + return false; + if (this.recipefilename == null) { + if (other.recipefilename != null) + return false; + } + else if (!this.recipefilename.equals(other.recipefilename)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); + result = prime * result + ((this.trader == null) ? 0 : this.trader.hashCode()); + result = prime * result + ((this.fkCamp == null) ? 0 : this.fkCamp.hashCode()); + result = prime * result + ((this.provider == null) ? 0 : this.provider.hashCode()); + result = prime * result + ((this.cash == null) ? 0 : this.cash.hashCode()); + result = prime * result + ((this.buydate == null) ? 0 : this.buydate.hashCode()); + result = prime * result + ((this.recipenumber == null) ? 0 : this.recipenumber.hashCode()); + result = prime * result + ((this.recipeshot == null) ? 0 : Arrays.hashCode(this.recipeshot)); + result = prime * result + ((this.recipenote == null) ? 0 : this.recipenote.hashCode()); + result = prime * result + ((this.incredients == null) ? 0 : this.incredients.hashCode()); + result = prime * result + ((this.recipefilename == null) ? 0 : this.recipefilename.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TSales ("); + + sb.append(pk); + sb.append(", ").append(trader); + sb.append(", ").append(fkCamp); + sb.append(", ").append(provider); + sb.append(", ").append(cash); + sb.append(", ").append(buydate); + sb.append(", ").append(recipenumber); + sb.append(", ").append("[binary...]"); + sb.append(", ").append(recipenote); + sb.append(", ").append(incredients); + sb.append(", ").append(recipefilename); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontent.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontent.java new file mode 100644 index 0000000..b5ac606 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontent.java @@ -0,0 +1,91 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TSalescontent implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer fkSales; + private final String fkSalescontenttype; + + public TSalescontent(TSalescontent value) { + this.fkSales = value.fkSales; + this.fkSalescontenttype = value.fkSalescontenttype; + } + + public TSalescontent( + Integer fkSales, + String fkSalescontenttype + ) { + this.fkSales = fkSales; + this.fkSalescontenttype = fkSalescontenttype; + } + + /** + * Getter for camp.t_salescontent.fk_sales. + */ + public Integer getFkSales() { + return this.fkSales; + } + + /** + * Getter for camp.t_salescontent.fk_salescontenttype. + */ + public String getFkSalescontenttype() { + return this.fkSalescontenttype; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TSalescontent other = (TSalescontent) obj; + if (this.fkSales == null) { + if (other.fkSales != null) + return false; + } + else if (!this.fkSales.equals(other.fkSales)) + return false; + if (this.fkSalescontenttype == null) { + if (other.fkSalescontenttype != null) + return false; + } + else if (!this.fkSalescontenttype.equals(other.fkSalescontenttype)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.fkSales == null) ? 0 : this.fkSales.hashCode()); + result = prime * result + ((this.fkSalescontenttype == null) ? 0 : this.fkSalescontenttype.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TSalescontent ("); + + sb.append(fkSales); + sb.append(", ").append(fkSalescontenttype); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontenttype.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontenttype.java new file mode 100644 index 0000000..736ddb9 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontenttype.java @@ -0,0 +1,72 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TSalescontenttype implements Serializable { + + private static final long serialVersionUID = 1L; + + private final String name; + + public TSalescontenttype(TSalescontenttype value) { + this.name = value.name; + } + + public TSalescontenttype( + String name + ) { + this.name = name; + } + + /** + * Getter for camp.t_salescontenttype.name. + */ + public String getName() { + return this.name; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final TSalescontenttype other = (TSalescontenttype) obj; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("TSalescontenttype ("); + + sb.append(name); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VBudget.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VBudget.java new file mode 100644 index 0000000..43023d6 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VBudget.java @@ -0,0 +1,149 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import java.io.Serializable; +import java.math.BigDecimal; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VBudget implements Serializable { + + private static final long serialVersionUID = 1L; + + private final BigDecimal budget; + private final Integer fkCamp; + private final String name; + private final String location; + private final Double year; + + public VBudget(VBudget value) { + this.budget = value.budget; + this.fkCamp = value.fkCamp; + this.name = value.name; + this.location = value.location; + this.year = value.year; + } + + public VBudget( + BigDecimal budget, + Integer fkCamp, + String name, + String location, + Double year + ) { + this.budget = budget; + this.fkCamp = fkCamp; + this.name = name; + this.location = location; + this.year = year; + } + + /** + * Getter for camp.v_budget.budget. + */ + public BigDecimal getBudget() { + return this.budget; + } + + /** + * Getter for camp.v_budget.fk_camp. + */ + public Integer getFkCamp() { + return this.fkCamp; + } + + /** + * Getter for camp.v_budget.name. + */ + public String getName() { + return this.name; + } + + /** + * Getter for camp.v_budget.location. + */ + public String getLocation() { + return this.location; + } + + /** + * Getter for camp.v_budget.year. + */ + public Double getYear() { + return this.year; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final VBudget other = (VBudget) obj; + if (this.budget == null) { + if (other.budget != null) + return false; + } + else if (!this.budget.equals(other.budget)) + return false; + if (this.fkCamp == null) { + if (other.fkCamp != null) + return false; + } + else if (!this.fkCamp.equals(other.fkCamp)) + return false; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + if (this.location == null) { + if (other.location != null) + return false; + } + else if (!this.location.equals(other.location)) + return false; + if (this.year == null) { + if (other.year != null) + return false; + } + else if (!this.year.equals(other.year)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.budget == null) ? 0 : this.budget.hashCode()); + result = prime * result + ((this.fkCamp == null) ? 0 : this.fkCamp.hashCode()); + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + result = prime * result + ((this.location == null) ? 0 : this.location.hashCode()); + result = prime * result + ((this.year == null) ? 0 : this.year.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("VBudget ("); + + sb.append(budget); + sb.append(", ").append(fkCamp); + sb.append(", ").append(name); + sb.append(", ").append(location); + sb.append(", ").append(year); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamp.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamp.java new file mode 100644 index 0000000..e1c2123 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamp.java @@ -0,0 +1,301 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VCamp implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer pk; + private final Boolean isOver; + private final String name; + private final LocalDateTime arrive; + private final LocalDateTime depart; + private final Double year; + private final String locationName; + private final Integer minAge; + private final Integer maxAge; + private final String url; + private final String price; + private final String countries; + private final Integer fkDocument; + + public VCamp(VCamp value) { + this.pk = value.pk; + this.isOver = value.isOver; + this.name = value.name; + this.arrive = value.arrive; + this.depart = value.depart; + this.year = value.year; + this.locationName = value.locationName; + this.minAge = value.minAge; + this.maxAge = value.maxAge; + this.url = value.url; + this.price = value.price; + this.countries = value.countries; + this.fkDocument = value.fkDocument; + } + + public VCamp( + Integer pk, + Boolean isOver, + String name, + LocalDateTime arrive, + LocalDateTime depart, + Double year, + String locationName, + Integer minAge, + Integer maxAge, + String url, + String price, + String countries, + Integer fkDocument + ) { + this.pk = pk; + this.isOver = isOver; + this.name = name; + this.arrive = arrive; + this.depart = depart; + this.year = year; + this.locationName = locationName; + this.minAge = minAge; + this.maxAge = maxAge; + this.url = url; + this.price = price; + this.countries = countries; + this.fkDocument = fkDocument; + } + + /** + * Getter for camp.v_camp.pk. + */ + public Integer getPk() { + return this.pk; + } + + /** + * Getter for camp.v_camp.is_over. + */ + public Boolean getIsOver() { + return this.isOver; + } + + /** + * Getter for camp.v_camp.name. + */ + public String getName() { + return this.name; + } + + /** + * Getter for camp.v_camp.arrive. + */ + public LocalDateTime getArrive() { + return this.arrive; + } + + /** + * Getter for camp.v_camp.depart. + */ + public LocalDateTime getDepart() { + return this.depart; + } + + /** + * Getter for camp.v_camp.year. + */ + public Double getYear() { + return this.year; + } + + /** + * Getter for camp.v_camp.location_name. + */ + public String getLocationName() { + return this.locationName; + } + + /** + * Getter for camp.v_camp.min_age. + */ + public Integer getMinAge() { + return this.minAge; + } + + /** + * Getter for camp.v_camp.max_age. + */ + public Integer getMaxAge() { + return this.maxAge; + } + + /** + * Getter for camp.v_camp.url. + */ + public String getUrl() { + return this.url; + } + + /** + * Getter for camp.v_camp.price. + */ + public String getPrice() { + return this.price; + } + + /** + * Getter for camp.v_camp.countries. + */ + public String getCountries() { + return this.countries; + } + + /** + * Getter for camp.v_camp.fk_document. + */ + public Integer getFkDocument() { + return this.fkDocument; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final VCamp other = (VCamp) obj; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; + if (this.isOver == null) { + if (other.isOver != null) + return false; + } + else if (!this.isOver.equals(other.isOver)) + return false; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + if (this.arrive == null) { + if (other.arrive != null) + return false; + } + else if (!this.arrive.equals(other.arrive)) + return false; + if (this.depart == null) { + if (other.depart != null) + return false; + } + else if (!this.depart.equals(other.depart)) + return false; + if (this.year == null) { + if (other.year != null) + return false; + } + else if (!this.year.equals(other.year)) + return false; + if (this.locationName == null) { + if (other.locationName != null) + return false; + } + else if (!this.locationName.equals(other.locationName)) + return false; + if (this.minAge == null) { + if (other.minAge != null) + return false; + } + else if (!this.minAge.equals(other.minAge)) + return false; + if (this.maxAge == null) { + if (other.maxAge != null) + return false; + } + else if (!this.maxAge.equals(other.maxAge)) + return false; + if (this.url == null) { + if (other.url != null) + return false; + } + else if (!this.url.equals(other.url)) + return false; + if (this.price == null) { + if (other.price != null) + return false; + } + else if (!this.price.equals(other.price)) + return false; + if (this.countries == null) { + if (other.countries != null) + return false; + } + else if (!this.countries.equals(other.countries)) + return false; + if (this.fkDocument == null) { + if (other.fkDocument != null) + return false; + } + else if (!this.fkDocument.equals(other.fkDocument)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); + result = prime * result + ((this.isOver == null) ? 0 : this.isOver.hashCode()); + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + result = prime * result + ((this.arrive == null) ? 0 : this.arrive.hashCode()); + result = prime * result + ((this.depart == null) ? 0 : this.depart.hashCode()); + result = prime * result + ((this.year == null) ? 0 : this.year.hashCode()); + result = prime * result + ((this.locationName == null) ? 0 : this.locationName.hashCode()); + result = prime * result + ((this.minAge == null) ? 0 : this.minAge.hashCode()); + result = prime * result + ((this.maxAge == null) ? 0 : this.maxAge.hashCode()); + result = prime * result + ((this.url == null) ? 0 : this.url.hashCode()); + result = prime * result + ((this.price == null) ? 0 : this.price.hashCode()); + result = prime * result + ((this.countries == null) ? 0 : this.countries.hashCode()); + result = prime * result + ((this.fkDocument == null) ? 0 : this.fkDocument.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("VCamp ("); + + sb.append(pk); + sb.append(", ").append(isOver); + sb.append(", ").append(name); + sb.append(", ").append(arrive); + sb.append(", ").append(depart); + sb.append(", ").append(year); + sb.append(", ").append(locationName); + sb.append(", ").append(minAge); + sb.append(", ").append(maxAge); + sb.append(", ").append(url); + sb.append(", ").append(price); + sb.append(", ").append(countries); + sb.append(", ").append(fkDocument); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudget.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudget.java new file mode 100644 index 0000000..997b9fb --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudget.java @@ -0,0 +1,130 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import java.io.Serializable; +import java.math.BigDecimal; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VCampBudget implements Serializable { + + private static final long serialVersionUID = 1L; + + private final BigDecimal budget; + private final Integer fkCamp; + private final String campName; + private final Double year; + + public VCampBudget(VCampBudget value) { + this.budget = value.budget; + this.fkCamp = value.fkCamp; + this.campName = value.campName; + this.year = value.year; + } + + public VCampBudget( + BigDecimal budget, + Integer fkCamp, + String campName, + Double year + ) { + this.budget = budget; + this.fkCamp = fkCamp; + this.campName = campName; + this.year = year; + } + + /** + * Getter for camp.v_camp_budget.budget. + */ + public BigDecimal getBudget() { + return this.budget; + } + + /** + * Getter for camp.v_camp_budget.fk_camp. + */ + public Integer getFkCamp() { + return this.fkCamp; + } + + /** + * Getter for camp.v_camp_budget.camp_name. + */ + public String getCampName() { + return this.campName; + } + + /** + * Getter for camp.v_camp_budget.year. + */ + public Double getYear() { + return this.year; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final VCampBudget other = (VCampBudget) obj; + if (this.budget == null) { + if (other.budget != null) + return false; + } + else if (!this.budget.equals(other.budget)) + return false; + if (this.fkCamp == null) { + if (other.fkCamp != null) + return false; + } + else if (!this.fkCamp.equals(other.fkCamp)) + return false; + if (this.campName == null) { + if (other.campName != null) + return false; + } + else if (!this.campName.equals(other.campName)) + return false; + if (this.year == null) { + if (other.year != null) + return false; + } + else if (!this.year.equals(other.year)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.budget == null) ? 0 : this.budget.hashCode()); + result = prime * result + ((this.fkCamp == null) ? 0 : this.fkCamp.hashCode()); + result = prime * result + ((this.campName == null) ? 0 : this.campName.hashCode()); + result = prime * result + ((this.year == null) ? 0 : this.year.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("VCampBudget ("); + + sb.append(budget); + sb.append(", ").append(fkCamp); + sb.append(", ").append(campName); + sb.append(", ").append(year); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudgetYear.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudgetYear.java new file mode 100644 index 0000000..5729cfa --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudgetYear.java @@ -0,0 +1,92 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import java.io.Serializable; +import java.math.BigDecimal; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VCampBudgetYear implements Serializable { + + private static final long serialVersionUID = 1L; + + private final BigDecimal sum; + private final Double year; + + public VCampBudgetYear(VCampBudgetYear value) { + this.sum = value.sum; + this.year = value.year; + } + + public VCampBudgetYear( + BigDecimal sum, + Double year + ) { + this.sum = sum; + this.year = year; + } + + /** + * Getter for camp.v_camp_budget_year.sum. + */ + public BigDecimal getSum() { + return this.sum; + } + + /** + * Getter for camp.v_camp_budget_year.year. + */ + public Double getYear() { + return this.year; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final VCampBudgetYear other = (VCampBudgetYear) obj; + if (this.sum == null) { + if (other.sum != null) + return false; + } + else if (!this.sum.equals(other.sum)) + return false; + if (this.year == null) { + if (other.year != null) + return false; + } + else if (!this.year.equals(other.year)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.sum == null) ? 0 : this.sum.hashCode()); + result = prime * result + ((this.year == null) ? 0 : this.year.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("VCampBudgetYear ("); + + sb.append(sum); + sb.append(", ").append(year); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampdocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampdocument.java new file mode 100644 index 0000000..2b1192a --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampdocument.java @@ -0,0 +1,209 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumDocument; +import de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype; + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VCampdocument implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer fkCamp; + private final String campname; + private final LocalDateTime arrive; + private final Integer fkDocument; + private final String document; + private final String documentname; + private final EnumDocument doctype; + private final EnumFiletype filetype; + + public VCampdocument(VCampdocument value) { + this.fkCamp = value.fkCamp; + this.campname = value.campname; + this.arrive = value.arrive; + this.fkDocument = value.fkDocument; + this.document = value.document; + this.documentname = value.documentname; + this.doctype = value.doctype; + this.filetype = value.filetype; + } + + public VCampdocument( + Integer fkCamp, + String campname, + LocalDateTime arrive, + Integer fkDocument, + String document, + String documentname, + EnumDocument doctype, + EnumFiletype filetype + ) { + this.fkCamp = fkCamp; + this.campname = campname; + this.arrive = arrive; + this.fkDocument = fkDocument; + this.document = document; + this.documentname = documentname; + this.doctype = doctype; + this.filetype = filetype; + } + + /** + * Getter for camp.v_campdocument.fk_camp. + */ + public Integer getFkCamp() { + return this.fkCamp; + } + + /** + * Getter for camp.v_campdocument.campname. + */ + public String getCampname() { + return this.campname; + } + + /** + * Getter for camp.v_campdocument.arrive. + */ + public LocalDateTime getArrive() { + return this.arrive; + } + + /** + * Getter for camp.v_campdocument.fk_document. + */ + public Integer getFkDocument() { + return this.fkDocument; + } + + /** + * Getter for camp.v_campdocument.document. + */ + public String getDocument() { + return this.document; + } + + /** + * Getter for camp.v_campdocument.documentname. + */ + public String getDocumentname() { + return this.documentname; + } + + /** + * Getter for camp.v_campdocument.doctype. + */ + public EnumDocument getDoctype() { + return this.doctype; + } + + /** + * Getter for camp.v_campdocument.filetype. + */ + public EnumFiletype getFiletype() { + return this.filetype; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final VCampdocument other = (VCampdocument) obj; + if (this.fkCamp == null) { + if (other.fkCamp != null) + return false; + } + else if (!this.fkCamp.equals(other.fkCamp)) + return false; + if (this.campname == null) { + if (other.campname != null) + return false; + } + else if (!this.campname.equals(other.campname)) + return false; + if (this.arrive == null) { + if (other.arrive != null) + return false; + } + else if (!this.arrive.equals(other.arrive)) + return false; + if (this.fkDocument == null) { + if (other.fkDocument != null) + return false; + } + else if (!this.fkDocument.equals(other.fkDocument)) + return false; + if (this.document == null) { + if (other.document != null) + return false; + } + else if (!this.document.equals(other.document)) + return false; + if (this.documentname == null) { + if (other.documentname != null) + return false; + } + else if (!this.documentname.equals(other.documentname)) + return false; + if (this.doctype == null) { + if (other.doctype != null) + return false; + } + else if (!this.doctype.equals(other.doctype)) + return false; + if (this.filetype == null) { + if (other.filetype != null) + return false; + } + else if (!this.filetype.equals(other.filetype)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.fkCamp == null) ? 0 : this.fkCamp.hashCode()); + result = prime * result + ((this.campname == null) ? 0 : this.campname.hashCode()); + result = prime * result + ((this.arrive == null) ? 0 : this.arrive.hashCode()); + result = prime * result + ((this.fkDocument == null) ? 0 : this.fkDocument.hashCode()); + result = prime * result + ((this.document == null) ? 0 : this.document.hashCode()); + result = prime * result + ((this.documentname == null) ? 0 : this.documentname.hashCode()); + result = prime * result + ((this.doctype == null) ? 0 : this.doctype.hashCode()); + result = prime * result + ((this.filetype == null) ? 0 : this.filetype.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("VCampdocument ("); + + sb.append(fkCamp); + sb.append(", ").append(campname); + sb.append(", ").append(arrive); + sb.append(", ").append(fkDocument); + sb.append(", ").append(document); + sb.append(", ").append(documentname); + sb.append(", ").append(doctype); + sb.append(", ").append(filetype); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamprole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamprole.java new file mode 100644 index 0000000..e76e9e3 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamprole.java @@ -0,0 +1,74 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VCamprole implements Serializable { + + private static final long serialVersionUID = 1L; + + private final EnumCamprole name; + + public VCamprole(VCamprole value) { + this.name = value.name; + } + + public VCamprole( + EnumCamprole name + ) { + this.name = name; + } + + /** + * Getter for camp.v_camprole.name. + */ + public EnumCamprole getName() { + return this.name; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final VCamprole other = (VCamprole) obj; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("VCamprole ("); + + sb.append(name); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VDocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VDocument.java new file mode 100644 index 0000000..6cfb795 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VDocument.java @@ -0,0 +1,170 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumDocument; +import de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype; + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VDocument implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer pk; + private final EnumDocument doctype; + private final String name; + private final String document; + private final EnumFiletype filetype; + private final String roles; + + public VDocument(VDocument value) { + this.pk = value.pk; + this.doctype = value.doctype; + this.name = value.name; + this.document = value.document; + this.filetype = value.filetype; + this.roles = value.roles; + } + + public VDocument( + Integer pk, + EnumDocument doctype, + String name, + String document, + EnumFiletype filetype, + String roles + ) { + this.pk = pk; + this.doctype = doctype; + this.name = name; + this.document = document; + this.filetype = filetype; + this.roles = roles; + } + + /** + * Getter for camp.v_document.pk. + */ + public Integer getPk() { + return this.pk; + } + + /** + * Getter for camp.v_document.doctype. + */ + public EnumDocument getDoctype() { + return this.doctype; + } + + /** + * Getter for camp.v_document.name. + */ + public String getName() { + return this.name; + } + + /** + * Getter for camp.v_document.document. + */ + public String getDocument() { + return this.document; + } + + /** + * Getter for camp.v_document.filetype. + */ + public EnumFiletype getFiletype() { + return this.filetype; + } + + /** + * Getter for camp.v_document.roles. + */ + public String getRoles() { + return this.roles; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final VDocument other = (VDocument) obj; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; + if (this.doctype == null) { + if (other.doctype != null) + return false; + } + else if (!this.doctype.equals(other.doctype)) + return false; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + if (this.document == null) { + if (other.document != null) + return false; + } + else if (!this.document.equals(other.document)) + return false; + if (this.filetype == null) { + if (other.filetype != null) + return false; + } + else if (!this.filetype.equals(other.filetype)) + return false; + if (this.roles == null) { + if (other.roles != null) + return false; + } + else if (!this.roles.equals(other.roles)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); + result = prime * result + ((this.doctype == null) ? 0 : this.doctype.hashCode()); + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + result = prime * result + ((this.document == null) ? 0 : this.document.hashCode()); + result = prime * result + ((this.filetype == null) ? 0 : this.filetype.hashCode()); + result = prime * result + ((this.roles == null) ? 0 : this.roles.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("VDocument ("); + + sb.append(pk); + sb.append(", ").append(doctype); + sb.append(", ").append(name); + sb.append(", ").append(document); + sb.append(", ").append(filetype); + sb.append(", ").append(roles); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VProfile.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VProfile.java new file mode 100644 index 0000000..750cac9 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VProfile.java @@ -0,0 +1,189 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumRole; + +import java.io.Serializable; +import java.util.Arrays; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VProfile implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer pk; + private final String forename; + private final String surname; + private final String username; + private final String password; + private final String uuid; + private final EnumRole[] roles; + + public VProfile(VProfile value) { + this.pk = value.pk; + this.forename = value.forename; + this.surname = value.surname; + this.username = value.username; + this.password = value.password; + this.uuid = value.uuid; + this.roles = value.roles; + } + + public VProfile( + Integer pk, + String forename, + String surname, + String username, + String password, + String uuid, + EnumRole[] roles + ) { + this.pk = pk; + this.forename = forename; + this.surname = surname; + this.username = username; + this.password = password; + this.uuid = uuid; + this.roles = roles; + } + + /** + * Getter for camp.v_profile.pk. + */ + public Integer getPk() { + return this.pk; + } + + /** + * Getter for camp.v_profile.forename. + */ + public String getForename() { + return this.forename; + } + + /** + * Getter for camp.v_profile.surname. + */ + public String getSurname() { + return this.surname; + } + + /** + * Getter for camp.v_profile.username. + */ + public String getUsername() { + return this.username; + } + + /** + * Getter for camp.v_profile.password. + */ + public String getPassword() { + return this.password; + } + + /** + * Getter for camp.v_profile.uuid. + */ + public String getUuid() { + return this.uuid; + } + + /** + * Getter for camp.v_profile.roles. + */ + public EnumRole[] getRoles() { + return this.roles; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final VProfile other = (VProfile) obj; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; + if (this.forename == null) { + if (other.forename != null) + return false; + } + else if (!this.forename.equals(other.forename)) + return false; + if (this.surname == null) { + if (other.surname != null) + return false; + } + else if (!this.surname.equals(other.surname)) + return false; + if (this.username == null) { + if (other.username != null) + return false; + } + else if (!this.username.equals(other.username)) + return false; + if (this.password == null) { + if (other.password != null) + return false; + } + else if (!this.password.equals(other.password)) + return false; + if (this.uuid == null) { + if (other.uuid != null) + return false; + } + else if (!this.uuid.equals(other.uuid)) + return false; + if (this.roles == null) { + if (other.roles != null) + return false; + } + else if (!Arrays.deepEquals(this.roles, other.roles)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); + result = prime * result + ((this.forename == null) ? 0 : this.forename.hashCode()); + result = prime * result + ((this.surname == null) ? 0 : this.surname.hashCode()); + result = prime * result + ((this.username == null) ? 0 : this.username.hashCode()); + result = prime * result + ((this.password == null) ? 0 : this.password.hashCode()); + result = prime * result + ((this.uuid == null) ? 0 : this.uuid.hashCode()); + result = prime * result + ((this.roles == null) ? 0 : Arrays.deepHashCode(this.roles)); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("VProfile ("); + + sb.append(pk); + sb.append(", ").append(forename); + sb.append(", ").append(surname); + sb.append(", ").append(username); + sb.append(", ").append(password); + sb.append(", ").append(uuid); + sb.append(", ").append(Arrays.deepToString(roles)); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRegistration.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRegistration.java new file mode 100644 index 0000000..471e8e5 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRegistration.java @@ -0,0 +1,265 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; + +import java.io.Serializable; +import java.time.LocalDate; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VRegistration implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer pk; + private final String forename; + private final String surname; + private final String street; + private final String zip; + private final String city; + private final String phone; + private final LocalDate birthdate; + private final EnumCamprole camprole; + private final String email; + private final String campname; + + public VRegistration(VRegistration value) { + this.pk = value.pk; + this.forename = value.forename; + this.surname = value.surname; + this.street = value.street; + this.zip = value.zip; + this.city = value.city; + this.phone = value.phone; + this.birthdate = value.birthdate; + this.camprole = value.camprole; + this.email = value.email; + this.campname = value.campname; + } + + public VRegistration( + Integer pk, + String forename, + String surname, + String street, + String zip, + String city, + String phone, + LocalDate birthdate, + EnumCamprole camprole, + String email, + String campname + ) { + this.pk = pk; + this.forename = forename; + this.surname = surname; + this.street = street; + this.zip = zip; + this.city = city; + this.phone = phone; + this.birthdate = birthdate; + this.camprole = camprole; + this.email = email; + this.campname = campname; + } + + /** + * Getter for camp.v_registration.pk. + */ + public Integer getPk() { + return this.pk; + } + + /** + * Getter for camp.v_registration.forename. + */ + public String getForename() { + return this.forename; + } + + /** + * Getter for camp.v_registration.surname. + */ + public String getSurname() { + return this.surname; + } + + /** + * Getter for camp.v_registration.street. + */ + public String getStreet() { + return this.street; + } + + /** + * Getter for camp.v_registration.zip. + */ + public String getZip() { + return this.zip; + } + + /** + * Getter for camp.v_registration.city. + */ + public String getCity() { + return this.city; + } + + /** + * Getter for camp.v_registration.phone. + */ + public String getPhone() { + return this.phone; + } + + /** + * Getter for camp.v_registration.birthdate. + */ + public LocalDate getBirthdate() { + return this.birthdate; + } + + /** + * Getter for camp.v_registration.camprole. + */ + public EnumCamprole getCamprole() { + return this.camprole; + } + + /** + * Getter for camp.v_registration.email. + */ + public String getEmail() { + return this.email; + } + + /** + * Getter for camp.v_registration.campname. + */ + public String getCampname() { + return this.campname; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final VRegistration other = (VRegistration) obj; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; + if (this.forename == null) { + if (other.forename != null) + return false; + } + else if (!this.forename.equals(other.forename)) + return false; + if (this.surname == null) { + if (other.surname != null) + return false; + } + else if (!this.surname.equals(other.surname)) + return false; + if (this.street == null) { + if (other.street != null) + return false; + } + else if (!this.street.equals(other.street)) + return false; + if (this.zip == null) { + if (other.zip != null) + return false; + } + else if (!this.zip.equals(other.zip)) + return false; + if (this.city == null) { + if (other.city != null) + return false; + } + else if (!this.city.equals(other.city)) + return false; + if (this.phone == null) { + if (other.phone != null) + return false; + } + else if (!this.phone.equals(other.phone)) + return false; + if (this.birthdate == null) { + if (other.birthdate != null) + return false; + } + else if (!this.birthdate.equals(other.birthdate)) + return false; + if (this.camprole == null) { + if (other.camprole != null) + return false; + } + else if (!this.camprole.equals(other.camprole)) + return false; + if (this.email == null) { + if (other.email != null) + return false; + } + else if (!this.email.equals(other.email)) + return false; + if (this.campname == null) { + if (other.campname != null) + return false; + } + else if (!this.campname.equals(other.campname)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); + result = prime * result + ((this.forename == null) ? 0 : this.forename.hashCode()); + result = prime * result + ((this.surname == null) ? 0 : this.surname.hashCode()); + result = prime * result + ((this.street == null) ? 0 : this.street.hashCode()); + result = prime * result + ((this.zip == null) ? 0 : this.zip.hashCode()); + result = prime * result + ((this.city == null) ? 0 : this.city.hashCode()); + result = prime * result + ((this.phone == null) ? 0 : this.phone.hashCode()); + result = prime * result + ((this.birthdate == null) ? 0 : this.birthdate.hashCode()); + result = prime * result + ((this.camprole == null) ? 0 : this.camprole.hashCode()); + result = prime * result + ((this.email == null) ? 0 : this.email.hashCode()); + result = prime * result + ((this.campname == null) ? 0 : this.campname.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("VRegistration ("); + + sb.append(pk); + sb.append(", ").append(forename); + sb.append(", ").append(surname); + sb.append(", ").append(street); + sb.append(", ").append(zip); + sb.append(", ").append(city); + sb.append(", ").append(phone); + sb.append(", ").append(birthdate); + sb.append(", ").append(camprole); + sb.append(", ").append(email); + sb.append(", ").append(campname); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRole.java new file mode 100644 index 0000000..1d49a11 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRole.java @@ -0,0 +1,74 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import de.jottyfan.camporganizer.db.jooq.enums.EnumRole; + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VRole implements Serializable { + + private static final long serialVersionUID = 1L; + + private final EnumRole unnest; + + public VRole(VRole value) { + this.unnest = value.unnest; + } + + public VRole( + EnumRole unnest + ) { + this.unnest = unnest; + } + + /** + * Getter for camp.v_role.unnest. + */ + public EnumRole getUnnest() { + return this.unnest; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final VRole other = (VRole) obj; + if (this.unnest == null) { + if (other.unnest != null) + return false; + } + else if (!this.unnest.equals(other.unnest)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.unnest == null) ? 0 : this.unnest.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("VRole ("); + + sb.append(unnest); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VSales.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VSales.java new file mode 100644 index 0000000..3d41cc2 --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VSales.java @@ -0,0 +1,360 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import java.io.Serializable; +import java.math.BigDecimal; +import java.time.LocalDateTime; +import java.util.Arrays; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VSales implements Serializable { + + private static final long serialVersionUID = 1L; + + private final Integer pk; + private final String trader; + private final Integer fkCamp; + private final String name; + private final Integer fkLocation; + private final String location; + private final String incredients; + private final Double year; + private final Integer fkSales; + private final String provider; + private final BigDecimal cash; + private final LocalDateTime buydate; + private final String recipenumber; + private final byte[] recipeshot; + private final String recipenote; + private final String[] content; + + public VSales(VSales value) { + this.pk = value.pk; + this.trader = value.trader; + this.fkCamp = value.fkCamp; + this.name = value.name; + this.fkLocation = value.fkLocation; + this.location = value.location; + this.incredients = value.incredients; + this.year = value.year; + this.fkSales = value.fkSales; + this.provider = value.provider; + this.cash = value.cash; + this.buydate = value.buydate; + this.recipenumber = value.recipenumber; + this.recipeshot = value.recipeshot; + this.recipenote = value.recipenote; + this.content = value.content; + } + + public VSales( + Integer pk, + String trader, + Integer fkCamp, + String name, + Integer fkLocation, + String location, + String incredients, + Double year, + Integer fkSales, + String provider, + BigDecimal cash, + LocalDateTime buydate, + String recipenumber, + byte[] recipeshot, + String recipenote, + String[] content + ) { + this.pk = pk; + this.trader = trader; + this.fkCamp = fkCamp; + this.name = name; + this.fkLocation = fkLocation; + this.location = location; + this.incredients = incredients; + this.year = year; + this.fkSales = fkSales; + this.provider = provider; + this.cash = cash; + this.buydate = buydate; + this.recipenumber = recipenumber; + this.recipeshot = recipeshot; + this.recipenote = recipenote; + this.content = content; + } + + /** + * Getter for camp.v_sales.pk. + */ + public Integer getPk() { + return this.pk; + } + + /** + * Getter for camp.v_sales.trader. + */ + public String getTrader() { + return this.trader; + } + + /** + * Getter for camp.v_sales.fk_camp. + */ + public Integer getFkCamp() { + return this.fkCamp; + } + + /** + * Getter for camp.v_sales.name. + */ + public String getName() { + return this.name; + } + + /** + * Getter for camp.v_sales.fk_location. + */ + public Integer getFkLocation() { + return this.fkLocation; + } + + /** + * Getter for camp.v_sales.location. + */ + public String getLocation() { + return this.location; + } + + /** + * Getter for camp.v_sales.incredients. + */ + public String getIncredients() { + return this.incredients; + } + + /** + * Getter for camp.v_sales.year. + */ + public Double getYear() { + return this.year; + } + + /** + * Getter for camp.v_sales.fk_sales. + */ + public Integer getFkSales() { + return this.fkSales; + } + + /** + * Getter for camp.v_sales.provider. + */ + public String getProvider() { + return this.provider; + } + + /** + * Getter for camp.v_sales.cash. + */ + public BigDecimal getCash() { + return this.cash; + } + + /** + * Getter for camp.v_sales.buydate. + */ + public LocalDateTime getBuydate() { + return this.buydate; + } + + /** + * Getter for camp.v_sales.recipenumber. + */ + public String getRecipenumber() { + return this.recipenumber; + } + + /** + * Getter for camp.v_sales.recipeshot. + */ + public byte[] getRecipeshot() { + return this.recipeshot; + } + + /** + * Getter for camp.v_sales.recipenote. + */ + public String getRecipenote() { + return this.recipenote; + } + + /** + * Getter for camp.v_sales.content. + */ + public String[] getContent() { + return this.content; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final VSales other = (VSales) obj; + if (this.pk == null) { + if (other.pk != null) + return false; + } + else if (!this.pk.equals(other.pk)) + return false; + if (this.trader == null) { + if (other.trader != null) + return false; + } + else if (!this.trader.equals(other.trader)) + return false; + if (this.fkCamp == null) { + if (other.fkCamp != null) + return false; + } + else if (!this.fkCamp.equals(other.fkCamp)) + return false; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + if (this.fkLocation == null) { + if (other.fkLocation != null) + return false; + } + else if (!this.fkLocation.equals(other.fkLocation)) + return false; + if (this.location == null) { + if (other.location != null) + return false; + } + else if (!this.location.equals(other.location)) + return false; + if (this.incredients == null) { + if (other.incredients != null) + return false; + } + else if (!this.incredients.equals(other.incredients)) + return false; + if (this.year == null) { + if (other.year != null) + return false; + } + else if (!this.year.equals(other.year)) + return false; + if (this.fkSales == null) { + if (other.fkSales != null) + return false; + } + else if (!this.fkSales.equals(other.fkSales)) + return false; + if (this.provider == null) { + if (other.provider != null) + return false; + } + else if (!this.provider.equals(other.provider)) + return false; + if (this.cash == null) { + if (other.cash != null) + return false; + } + else if (!this.cash.equals(other.cash)) + return false; + if (this.buydate == null) { + if (other.buydate != null) + return false; + } + else if (!this.buydate.equals(other.buydate)) + return false; + if (this.recipenumber == null) { + if (other.recipenumber != null) + return false; + } + else if (!this.recipenumber.equals(other.recipenumber)) + return false; + if (this.recipeshot == null) { + if (other.recipeshot != null) + return false; + } + else if (!Arrays.equals(this.recipeshot, other.recipeshot)) + return false; + if (this.recipenote == null) { + if (other.recipenote != null) + return false; + } + else if (!this.recipenote.equals(other.recipenote)) + return false; + if (this.content == null) { + if (other.content != null) + return false; + } + else if (!Arrays.deepEquals(this.content, other.content)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.pk == null) ? 0 : this.pk.hashCode()); + result = prime * result + ((this.trader == null) ? 0 : this.trader.hashCode()); + result = prime * result + ((this.fkCamp == null) ? 0 : this.fkCamp.hashCode()); + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + result = prime * result + ((this.fkLocation == null) ? 0 : this.fkLocation.hashCode()); + result = prime * result + ((this.location == null) ? 0 : this.location.hashCode()); + result = prime * result + ((this.incredients == null) ? 0 : this.incredients.hashCode()); + result = prime * result + ((this.year == null) ? 0 : this.year.hashCode()); + result = prime * result + ((this.fkSales == null) ? 0 : this.fkSales.hashCode()); + result = prime * result + ((this.provider == null) ? 0 : this.provider.hashCode()); + result = prime * result + ((this.cash == null) ? 0 : this.cash.hashCode()); + result = prime * result + ((this.buydate == null) ? 0 : this.buydate.hashCode()); + result = prime * result + ((this.recipenumber == null) ? 0 : this.recipenumber.hashCode()); + result = prime * result + ((this.recipeshot == null) ? 0 : Arrays.hashCode(this.recipeshot)); + result = prime * result + ((this.recipenote == null) ? 0 : this.recipenote.hashCode()); + result = prime * result + ((this.content == null) ? 0 : Arrays.deepHashCode(this.content)); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("VSales ("); + + sb.append(pk); + sb.append(", ").append(trader); + sb.append(", ").append(fkCamp); + sb.append(", ").append(name); + sb.append(", ").append(fkLocation); + sb.append(", ").append(location); + sb.append(", ").append(incredients); + sb.append(", ").append(year); + sb.append(", ").append(fkSales); + sb.append(", ").append(provider); + sb.append(", ").append(cash); + sb.append(", ").append(buydate); + sb.append(", ").append(recipenumber); + sb.append(", ").append("[binary...]"); + sb.append(", ").append(recipenote); + sb.append(", ").append(Arrays.deepToString(content)); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VVersion.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VVersion.java new file mode 100644 index 0000000..9a6545e --- /dev/null +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VVersion.java @@ -0,0 +1,72 @@ +/* + * This file is generated by jOOQ. + */ +package de.jottyfan.camporganizer.db.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VVersion implements Serializable { + + private static final long serialVersionUID = 1L; + + private final String version; + + public VVersion(VVersion value) { + this.version = value.version; + } + + public VVersion( + String version + ) { + this.version = version; + } + + /** + * Getter for camp.v_version.version. + */ + public String getVersion() { + return this.version; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final VVersion other = (VVersion) obj; + if (this.version == null) { + if (other.version != null) + return false; + } + else if (!this.version.equals(other.version)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.version == null) ? 0 : this.version.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("VVersion ("); + + sb.append(version); + + sb.append(")"); + return sb.toString(); + } +} 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 a11c8d7..7f98096 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 @@ -240,4 +240,27 @@ public class TCampRecord extends UpdatableRecordImpl { setFkProfile(fkProfile); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised TCampRecord + */ + public TCampRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.TCamp value) { + super(TCamp.T_CAMP); + + if (value != null) { + setPk(value.getPk()); + setName(value.getName()); + setArrive(value.getArrive()); + setDepart(value.getDepart()); + setFkLocation(value.getFkLocation()); + setMinAge(value.getMinAge()); + setMaxAge(value.getMaxAge()); + setPrice(value.getPrice()); + setCountries(value.getCountries()); + setFkDocument(value.getFkDocument()); + setLockSales(value.getLockSales()); + setFkProfile(value.getFkProfile()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TCampdocumentRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TCampdocumentRecord.java index eee1957..9a7509f 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TCampdocumentRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TCampdocumentRecord.java @@ -94,4 +94,18 @@ public class TCampdocumentRecord extends UpdatableRecordImpl setModule(module); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised TCampprofileRecord + */ + public TCampprofileRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.TCampprofile value) { + super(TCampprofile.T_CAMPPROFILE); + + if (value != null) { + setPk(value.getPk()); + setFkProfile(value.getFkProfile()); + setFkCamp(value.getFkCamp()); + setModule(value.getModule()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TDocumentRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TDocumentRecord.java index c55d04e..1531eee 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TDocumentRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TDocumentRecord.java @@ -128,4 +128,20 @@ public class TDocumentRecord extends UpdatableRecordImpl { setFiletype(filetype); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised TDocumentRecord + */ + public TDocumentRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.TDocument value) { + super(TDocument.T_DOCUMENT); + + if (value != null) { + setPk(value.getPk()); + setDoctype(value.getDoctype()); + setName(value.getName()); + setDocument(value.getDocument()); + setFiletype(value.getFiletype()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TDocumentroleRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TDocumentroleRecord.java index 6da806e..1a3a25f 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TDocumentroleRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TDocumentroleRecord.java @@ -95,4 +95,18 @@ public class TDocumentroleRecord extends UpdatableRecordImpl { setFkDocument(fkDocument); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised TLocationRecord + */ + public TLocationRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.TLocation value) { + super(TLocation.T_LOCATION); + + if (value != null) { + setPk(value.getPk()); + setName(value.getName()); + setUrl(value.getUrl()); + setFkDocument(value.getFkDocument()); + resetChangedOnNotNull(); + } + } } 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 13b27ad..edb5c1e 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 @@ -372,4 +372,35 @@ public class TPersonRecord extends UpdatableRecordImpl { setRequiredPrice(requiredPrice); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised TPersonRecord + */ + public TPersonRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.TPerson value) { + super(TPerson.T_PERSON); + + if (value != null) { + setPk(value.getPk()); + setForename(value.getForename()); + setSurname(value.getSurname()); + setStreet(value.getStreet()); + setZip(value.getZip()); + setCity(value.getCity()); + setPhone(value.getPhone()); + setBirthdate(value.getBirthdate()); + setCamprole(value.getCamprole()); + setEmail(value.getEmail()); + setFkCamp(value.getFkCamp()); + setFkProfile(value.getFkProfile()); + setAccept(value.getAccept()); + setCreated(value.getCreated()); + setSex(value.getSex()); + setFkRegistrator(value.getFkRegistrator()); + setPaid(value.getPaid()); + setComment(value.getComment()); + setConsentCatalogPhoto(value.getConsentCatalogPhoto()); + setRequiredPrice(value.getRequiredPrice()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TPersondocumentRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TPersondocumentRecord.java index 00378e0..a38ef30 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TPersondocumentRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TPersondocumentRecord.java @@ -127,4 +127,20 @@ public class TPersondocumentRecord extends UpdatableRecordImpl { setUuid(uuid); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised TProfileRecord + */ + public TProfileRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.TProfile value) { + super(TProfile.T_PROFILE); + + if (value != null) { + setPk(value.getPk()); + setForename(value.getForename()); + setSurname(value.getSurname()); + setUsername(value.getUsername()); + setPassword(value.getPassword()); + setDuedate(value.getDuedate()); + setUuid(value.getUuid()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TProfileroleRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TProfileroleRecord.java index 8e46065..987ae84 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TProfileroleRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TProfileroleRecord.java @@ -69,4 +69,17 @@ public class TProfileroleRecord extends TableRecordImpl { setRole(role); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised TProfileroleRecord + */ + public TProfileroleRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.TProfilerole value) { + super(TProfilerole.T_PROFILEROLE); + + if (value != null) { + setFkProfile(value.getFkProfile()); + setRole(value.getRole()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TRssRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TRssRecord.java index 251f03e..dead468 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TRssRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TRssRecord.java @@ -112,4 +112,19 @@ public class TRssRecord extends UpdatableRecordImpl { setPk(pk); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised TRssRecord + */ + public TRssRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.TRss value) { + super(TRss.T_RSS); + + if (value != null) { + setMsg(value.getMsg()); + setRegdate(value.getRegdate()); + setRecipient(value.getRecipient()); + setPk(value.getPk()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalesRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalesRecord.java index 2d7b223..d8113e8 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalesRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalesRecord.java @@ -225,4 +225,26 @@ public class TSalesRecord extends UpdatableRecordImpl { setRecipefilename(recipefilename); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised TSalesRecord + */ + public TSalesRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.TSales value) { + super(TSales.T_SALES); + + if (value != null) { + setPk(value.getPk()); + setTrader(value.getTrader()); + setFkCamp(value.getFkCamp()); + setProvider(value.getProvider()); + setCash(value.getCash()); + setBuydate(value.getBuydate()); + setRecipenumber(value.getRecipenumber()); + setRecipeshot(value.getRecipeshot()); + setRecipenote(value.getRecipenote()); + setIncredients(value.getIncredients()); + setRecipefilename(value.getRecipefilename()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalescontentRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalescontentRecord.java index 00b6c34..303c884 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalescontentRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalescontentRecord.java @@ -68,4 +68,17 @@ public class TSalescontentRecord extends TableRecordImpl { setFkSalescontenttype(fkSalescontenttype); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised TSalescontentRecord + */ + public TSalescontentRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.TSalescontent value) { + super(TSalescontent.T_SALESCONTENT); + + if (value != null) { + setFkSales(value.getFkSales()); + setFkSalescontenttype(value.getFkSalescontenttype()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalescontenttypeRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalescontenttypeRecord.java index aef4035..89c5017 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalescontenttypeRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalescontenttypeRecord.java @@ -62,4 +62,16 @@ public class TSalescontenttypeRecord extends UpdatableRecordImpl { setYear(year); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised VBudgetRecord + */ + public VBudgetRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VBudget value) { + super(VBudget.V_BUDGET); + + if (value != null) { + setBudget(value.getBudget()); + setFkCamp(value.getFkCamp()); + setName(value.getName()); + setLocation(value.getLocation()); + setYear(value.getYear()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampBudgetRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampBudgetRecord.java index eaf3add..9fadf7a 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampBudgetRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampBudgetRecord.java @@ -102,4 +102,19 @@ public class VCampBudgetRecord extends TableRecordImpl { setYear(year); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised VCampBudgetRecord + */ + public VCampBudgetRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VCampBudget value) { + super(VCampBudget.V_CAMP_BUDGET); + + if (value != null) { + setBudget(value.getBudget()); + setFkCamp(value.getFkCamp()); + setCampName(value.getCampName()); + setYear(value.getYear()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampBudgetYearRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampBudgetYearRecord.java index 01832e0..dd54bfc 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampBudgetYearRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampBudgetYearRecord.java @@ -70,4 +70,17 @@ public class VCampBudgetYearRecord extends TableRecordImpl { setFkDocument(fkDocument); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised VCampRecord + */ + public VCampRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VCamp value) { + super(VCamp.V_CAMP); + + if (value != null) { + setPk(value.getPk()); + setIsOver(value.getIsOver()); + setName(value.getName()); + setArrive(value.getArrive()); + setDepart(value.getDepart()); + setYear(value.getYear()); + setLocationName(value.getLocationName()); + setMinAge(value.getMinAge()); + setMaxAge(value.getMaxAge()); + setUrl(value.getUrl()); + setPrice(value.getPrice()); + setCountries(value.getCountries()); + setFkDocument(value.getFkDocument()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampdocumentRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampdocumentRecord.java index 6304459..52821c8 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampdocumentRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCampdocumentRecord.java @@ -168,4 +168,23 @@ public class VCampdocumentRecord extends TableRecordImpl { setFiletype(filetype); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised VCampdocumentRecord + */ + public VCampdocumentRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VCampdocument value) { + super(VCampdocument.V_CAMPDOCUMENT); + + if (value != null) { + setFkCamp(value.getFkCamp()); + setCampname(value.getCampname()); + setArrive(value.getArrive()); + setFkDocument(value.getFkDocument()); + setDocument(value.getDocument()); + setDocumentname(value.getDocumentname()); + setDoctype(value.getDoctype()); + setFiletype(value.getFiletype()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCamproleRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCamproleRecord.java index fda7b8d..338fdb0 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCamproleRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VCamproleRecord.java @@ -53,4 +53,16 @@ public class VCamproleRecord extends TableRecordImpl { setName(name); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised VCamproleRecord + */ + public VCamproleRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VCamprole value) { + super(VCamprole.V_CAMPROLE); + + if (value != null) { + setName(value.getName()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VDocumentRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VDocumentRecord.java index 9aa75c4..e202ae9 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VDocumentRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VDocumentRecord.java @@ -134,4 +134,21 @@ public class VDocumentRecord extends TableRecordImpl { setRoles(roles); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised VDocumentRecord + */ + public VDocumentRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VDocument value) { + super(VDocument.V_DOCUMENT); + + if (value != null) { + setPk(value.getPk()); + setDoctype(value.getDoctype()); + setName(value.getName()); + setDocument(value.getDocument()); + setFiletype(value.getFiletype()); + setRoles(value.getRoles()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VProfileRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VProfileRecord.java index 948ccdb..2324183 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VProfileRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VProfileRecord.java @@ -149,4 +149,22 @@ public class VProfileRecord extends TableRecordImpl { setRoles(roles); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised VProfileRecord + */ + public VProfileRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VProfile value) { + super(VProfile.V_PROFILE); + + if (value != null) { + setPk(value.getPk()); + setForename(value.getForename()); + setSurname(value.getSurname()); + setUsername(value.getUsername()); + setPassword(value.getPassword()); + setUuid(value.getUuid()); + setRoles(value.getRoles()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VRegistrationRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VRegistrationRecord.java index 37dc792..e02ead0 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VRegistrationRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VRegistrationRecord.java @@ -215,4 +215,26 @@ public class VRegistrationRecord extends TableRecordImpl { setCampname(campname); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised VRegistrationRecord + */ + public VRegistrationRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VRegistration value) { + super(VRegistration.V_REGISTRATION); + + if (value != null) { + setPk(value.getPk()); + setForename(value.getForename()); + setSurname(value.getSurname()); + setStreet(value.getStreet()); + setZip(value.getZip()); + setCity(value.getCity()); + setPhone(value.getPhone()); + setBirthdate(value.getBirthdate()); + setCamprole(value.getCamprole()); + setEmail(value.getEmail()); + setCampname(value.getCampname()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VRoleRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VRoleRecord.java index 9fa1e84..b5c786d 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VRoleRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VRoleRecord.java @@ -53,4 +53,16 @@ public class VRoleRecord extends TableRecordImpl { setUnnest(unnest); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised VRoleRecord + */ + public VRoleRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VRole value) { + super(VRole.V_ROLE); + + if (value != null) { + setUnnest(value.getUnnest()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VSalesRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VSalesRecord.java index 0fac83d..54ab747 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VSalesRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VSalesRecord.java @@ -295,4 +295,31 @@ public class VSalesRecord extends TableRecordImpl { setContent(content); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised VSalesRecord + */ + public VSalesRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VSales value) { + super(VSales.V_SALES); + + if (value != null) { + setPk(value.getPk()); + setTrader(value.getTrader()); + setFkCamp(value.getFkCamp()); + setName(value.getName()); + setFkLocation(value.getFkLocation()); + setLocation(value.getLocation()); + setIncredients(value.getIncredients()); + setYear(value.getYear()); + setFkSales(value.getFkSales()); + setProvider(value.getProvider()); + setCash(value.getCash()); + setBuydate(value.getBuydate()); + setRecipenumber(value.getRecipenumber()); + setRecipeshot(value.getRecipeshot()); + setRecipenote(value.getRecipenote()); + setContent(value.getContent()); + resetChangedOnNotNull(); + } + } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VVersionRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VVersionRecord.java index 3d44402..1534d78 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VVersionRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VVersionRecord.java @@ -52,4 +52,16 @@ public class VVersionRecord extends TableRecordImpl { setVersion(version); resetChangedOnNotNull(); } + + /** + * Create a detached, initialised VVersionRecord + */ + public VVersionRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VVersion value) { + super(VVersion.V_VERSION); + + if (value != null) { + setVersion(value.getVersion()); + resetChangedOnNotNull(); + } + } }