From 467cd5aa459c8786ef08636cc1cff01e5bb90d63 Mon Sep 17 00:00:00 2001 From: Jottyfan Date: Wed, 27 Dec 2023 11:25:25 +0100 Subject: [PATCH] db revision --- .gradle/7.3/checksums/checksums.lock | Bin 17 -> 17 bytes .gradle/7.3/checksums/md5-checksums.bin | Bin 25797 -> 26047 bytes .gradle/7.3/checksums/sha1-checksums.bin | Bin 44741 -> 45713 bytes .../7.3/executionHistory/executionHistory.bin | Bin 132644 -> 132644 bytes .../executionHistory/executionHistory.lock | Bin 17 -> 17 bytes .gradle/7.3/fileHashes/fileHashes.bin | Bin 29947 -> 29997 bytes .gradle/7.3/fileHashes/fileHashes.lock | Bin 17 -> 17 bytes .../buildOutputCleanup.lock | Bin 17 -> 17 bytes .gradle/buildOutputCleanup/outputFiles.bin | Bin 19199 -> 19217 bytes .gradle/file-system.probe | Bin 8 -> 8 bytes build.gradle | 28 +- .../jottyfan/camporganizer/db/jooq/Camp.java | 28 - .../camporganizer/db/jooq/DefaultCatalog.java | 6 +- .../jottyfan/camporganizer/db/jooq/Keys.java | 6 - .../camporganizer/db/jooq/Tables.java | 24 - .../db/jooq/enums/EnumCamprole.java | 4 +- .../db/jooq/enums/EnumDocument.java | 4 +- .../db/jooq/enums/EnumFiletype.java | 4 +- .../db/jooq/enums/EnumModule.java | 4 +- .../camporganizer/db/jooq/enums/EnumRole.java | 4 +- .../camporganizer/db/jooq/enums/EnumSex.java | 4 +- .../camporganizer/db/jooq/tables/TCamp.java | 227 +++++++- .../db/jooq/tables/TCampdocument.java | 162 +++++- .../db/jooq/tables/TCampprofile.java | 164 +++++- .../db/jooq/tables/TDocument.java | 206 ++++++- .../db/jooq/tables/TDocumentrole.java | 156 +++++- .../db/jooq/tables/TLocation.java | 167 +++++- .../camporganizer/db/jooq/tables/TPerson.java | 191 ++++++- .../db/jooq/tables/TPersondocument.java | 156 +++++- .../db/jooq/tables/TProfile.java | 217 +++++++- .../db/jooq/tables/TProfilerole.java | 156 +++++- .../camporganizer/db/jooq/tables/TRss.java | 122 ++++- .../camporganizer/db/jooq/tables/TSales.java | 154 +++++- .../db/jooq/tables/TSalescontent.java | 120 ++++- .../db/jooq/tables/TSalescontenttype.java | 121 ++++- .../db/jooq/tables/TSalesprofile.java | 181 ------- .../camporganizer/db/jooq/tables/VAdult.java | 144 ----- .../camporganizer/db/jooq/tables/VBudget.java | 128 ++++- .../camporganizer/db/jooq/tables/VCamp.java | 136 ++++- .../db/jooq/tables/VCampBudget.java | 138 ++++- .../db/jooq/tables/VCampBudgetYear.java | 126 ++++- .../db/jooq/tables/VCampdocument.java | 136 ++++- .../db/jooq/tables/VCamprole.java | 125 ++++- .../db/jooq/tables/VDocument.java | 135 ++++- .../db/jooq/tables/VDsgvoDeleteCandidate.java | 166 ------ .../camporganizer/db/jooq/tables/VFeeder.java | 174 ------ .../db/jooq/tables/VProfile.java | 135 ++++- .../db/jooq/tables/VRegistration.java | 136 ++++- .../camporganizer/db/jooq/tables/VRole.java | 125 ++++- .../camporganizer/db/jooq/tables/VSales.java | 144 ++++- .../db/jooq/tables/VVersion.java | 123 ++++- .../db/jooq/tables/pojos/TCamp.java | 179 ------- .../db/jooq/tables/pojos/TCampdocument.java | 70 --- .../db/jooq/tables/pojos/TCampprofile.java | 84 --- .../db/jooq/tables/pojos/TDocument.java | 97 ---- .../db/jooq/tables/pojos/TDocumentrole.java | 72 --- .../db/jooq/tables/pojos/TLocation.java | 82 --- .../db/jooq/tables/pojos/TPerson.java | 280 ---------- .../db/jooq/tables/pojos/TPersondocument.java | 96 ---- .../db/jooq/tables/pojos/TProfile.java | 119 ----- .../db/jooq/tables/pojos/TProfilerole.java | 60 --- .../db/jooq/tables/pojos/TRss.java | 83 --- .../db/jooq/tables/pojos/TSales.java | 168 ------ .../db/jooq/tables/pojos/TSalescontent.java | 58 -- .../jooq/tables/pojos/TSalescontenttype.java | 46 -- .../db/jooq/tables/pojos/TSalesprofile.java | 70 --- .../db/jooq/tables/pojos/VAdult.java | 98 ---- .../db/jooq/tables/pojos/VBudget.java | 95 ---- .../db/jooq/tables/pojos/VCamp.java | 191 ------- .../db/jooq/tables/pojos/VCampBudget.java | 83 --- .../db/jooq/tables/pojos/VCampBudgetYear.java | 59 --- .../db/jooq/tables/pojos/VCampdocument.java | 134 ----- .../db/jooq/tables/pojos/VCamprole.java | 48 -- .../db/jooq/tables/pojos/VDocument.java | 109 ---- .../tables/pojos/VDsgvoDeleteCandidate.java | 146 ----- .../db/jooq/tables/pojos/VFeeder.java | 170 ------ .../db/jooq/tables/pojos/VProfile.java | 121 ----- .../db/jooq/tables/pojos/VRegistration.java | 169 ------ .../db/jooq/tables/pojos/VRole.java | 48 -- .../db/jooq/tables/pojos/VSales.java | 229 -------- .../db/jooq/tables/pojos/VVersion.java | 46 -- .../db/jooq/tables/records/TCampRecord.java | 311 +---------- .../tables/records/TCampdocumentRecord.java | 104 +--- .../tables/records/TCampprofileRecord.java | 127 +---- .../jooq/tables/records/TDocumentRecord.java | 150 +----- .../tables/records/TDocumentroleRecord.java | 104 +--- .../jooq/tables/records/TLocationRecord.java | 127 +---- .../db/jooq/tables/records/TPersonRecord.java | 495 +---------------- .../tables/records/TPersondocumentRecord.java | 150 +----- .../jooq/tables/records/TProfileRecord.java | 196 +------ .../tables/records/TProfileroleRecord.java | 81 +-- .../db/jooq/tables/records/TRssRecord.java | 127 +---- .../db/jooq/tables/records/TSalesRecord.java | 288 +--------- .../tables/records/TSalescontentRecord.java | 81 +-- .../records/TSalescontenttypeRecord.java | 57 +- .../tables/records/TSalesprofileRecord.java | 197 ------- .../db/jooq/tables/records/VAdultRecord.java | 267 ---------- .../db/jooq/tables/records/VBudgetRecord.java | 150 +----- .../tables/records/VCampBudgetRecord.java | 127 +---- .../tables/records/VCampBudgetYearRecord.java | 81 +-- .../db/jooq/tables/records/VCampRecord.java | 334 +----------- .../tables/records/VCampdocumentRecord.java | 219 +------- .../jooq/tables/records/VCamproleRecord.java | 58 +- .../jooq/tables/records/VDocumentRecord.java | 173 +----- .../records/VDsgvoDeleteCandidateRecord.java | 423 --------------- .../db/jooq/tables/records/VFeederRecord.java | 501 ------------------ .../jooq/tables/records/VProfileRecord.java | 196 +------ .../tables/records/VRegistrationRecord.java | 288 +--------- .../db/jooq/tables/records/VRoleRecord.java | 58 +- .../db/jooq/tables/records/VSalesRecord.java | 403 +------------- .../jooq/tables/records/VVersionRecord.java | 58 +- 111 files changed, 3554 insertions(+), 10374 deletions(-) delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalesprofile.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VAdult.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VDsgvoDeleteCandidate.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VFeeder.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCamp.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampdocument.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampprofile.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocument.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocumentrole.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TLocation.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPerson.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPersondocument.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfile.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfilerole.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TRss.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSales.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontent.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontenttype.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalesprofile.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VAdult.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VBudget.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamp.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudget.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudgetYear.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampdocument.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamprole.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VDocument.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VDsgvoDeleteCandidate.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VFeeder.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VProfile.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRegistration.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRole.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VSales.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VVersion.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/TSalesprofileRecord.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VAdultRecord.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VDsgvoDeleteCandidateRecord.java delete mode 100644 src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VFeederRecord.java diff --git a/.gradle/7.3/checksums/checksums.lock b/.gradle/7.3/checksums/checksums.lock index c0b49f47441a6872efe0034ef601ebabf54ac64e..ae20eda165f8b55c6f3cde694e5a4c9013b11453 100644 GIT binary patch literal 17 VcmZP$)nD{#SMAc-3}C?Y0{}P+1%&_r literal 17 VcmZP$)nD{#SMAc-3}C=?5db&j1zrFE diff --git a/.gradle/7.3/checksums/md5-checksums.bin b/.gradle/7.3/checksums/md5-checksums.bin index cf1bcffd4d7bc862d8177aa84c6c8d6bbfbc3081..68192513d2c47a6620cfd5a8c807d89f214f1d56 100644 GIT binary patch delta 368 zcmX?ll5ziO#tkMClG7W@=gzT~y&}W_2C32ipwF@_2yGUi@i`CjFa#CN`T4Q9vn-vraJHP{AOQf_t^%jLl&Y#xCo>J04uY8J^%m! delta 62 zcmV-E0Kxyi%K^p70kAX}0g|?}jK{u~zrvn?P90kcgZfCQ7}C4vGC!LcFu7qKu{ U3bR2-jRysRwmy7psXq1lP~q z>?$q6EpQ=OYGye9rUg)?J12*#SqNPH`XW5s`=l8}aKq}&t!jx({13ItTc0zfzQuEd11k7%@>lIl{>;#09oIOXLXGsD9IA7YpOGuJlwb1~R9)$0QQZdu zKlkPvo)ca@9jdT-^IP2=ECRw?@9duNVbyb}Qv1nsjWYS0Ua0d<^KXNye82gx5eKt? zTHh+qE5_b4AflV1H~%%A$i%O^+r?<|Usj0V`t-@I7AFKOPkefCTUFvURM2p;tK~!f zzTeHQUj0r`-Kv{qtvpx-Vs@IH=(LIAf{3pBJvr9?A^-k4=g;Q2|AXqjyxG)Y0gFKO zyU**lt@Lw)syw>+tP2w(lYZbt#RHoiJvb#Oa6A!FD z+-=P9hw74r=n^iPteB_?iQdWniBc*brS?Un@?L$gZ2wV-g8QpK?=e^^1<|r?D_9Hj z$Jdix`@mXul}t{|l2X}!TXE}|?!BC^IO`hI7KN#2-;L3MXxXCx*1~&f;pBzE!u5T> zJ+@6=9R20|%6~hXmsu>T-Wv!}cN!R`K;XIg50FHQ{u_KLyt`NwU-?eD delta 126 zcmV-^0D=FJ0<$GIi2{?xIlq&gI@z<1J3j@JJ==Xe|qj{%#yXv}T{`mbduIq5S@6WwF&%J!lb)U08PJVx!e3_%2 zp&!$8wwoJE$TkMJ+h;MZgza5W~*x!yM{;HLmt}8QhI{pw@Iuw7! ze=12Ped8AI5FXvvGl0kA26_8=ZSwN*3J4G}L|n<)6xmn~0A$s{bkOn%ocHBTunG=A^7I2w#7MIPXv6(Cmjm2hDgiJO~M5EKF3?au{ z$Y63=91(}fqcZt?b2gn#;n4UrHlNO53mJT|!@w$cjv19KqEfj$sL5hd1Oldz!e#M9 zd?uA`P7#Q>JQ1D8r&G90Dwn(tzh=I#K)6=8!IW-Bh02ng%rKZZr`YKFGpnkp8f+K8 z?c(b*yu=#w3$XvkZvP9-0CXc~mGtBugAU2D`5%DSJ93hiO_VW!4S{on? z^!GMp(9EE!#BdD3WYNr7Ja`s9jV}q>M;OHYBw|tfLKVhjgXO*TvB8+<>~~_Y%6b`Ym%(BSMLY(Z z$KuerbS6*4;ET8%k&wq>)441^r`j;(f%PTnN6;S)yP^-Km@;sGWFC)4=Wu8gwt&WF!zvT@n<7>nRMUfM zrbtcV^p~!8S6{u{?0=SITcw(+D=(fm=-~EG)ITw)n`~3nWx4*`>WPozcbNEz+Xt7r z{QdGLW~7&`-x)h^`%jv(do7l*W@0&(z}ES1S3fax?$8lN3vcSv@Pnj9zs~_;{ZOl= zf2a6~gVwdH`7_gt+C#QJnD@{n{m;^O|0hbHSQkwB={jN2i^Jh#CZ0C56aBaF1)tRI zKT`O_&?gV&&n|H!4d=PH+207S`&(tN{b$(|f7!0$zIpY6Su%-UM703Eqj=tq6?oO# zh?kD2{*#qI>66MQR`&$m)6@puxk)$lCiwe4$Ks4YgjST@h{-+(vrRA(I$ z^wUOe@;qbuaA2Wh6YOAg1nC53P(gidH`rXFfEc z_e|pTXSot#g#y@Xvmw}LiLW5oTL_yqgeygyw}^a}`fS0e1D0pAvbz10CD5Y^U=I#; z_WcvswQ>wezwhnUAGl}eO{o*EOMt&Bg55aKMYw6yVCAlTYfL+oPE;Np)TYUKZ;Fxt z6BJ~mh+7xvuAvyWSz345I=r~0vl7JG3pWRjDwfA-m@{09xaO(8V>^#ee=0d{4PPoM zh|BX921-Q-2>HGNfUQ#2{<8O@csLtQ+HG+qNFxLR|4{G5@sQRiJ21%VTmD6TzqQ*YcLV5ms2wZ@nS z1$tWkOK?f!>EHYGqxxiqG^+(s$j=TEj3i+l&~lI>?kL=Nu`YO?Nw$UatBZ}H?<9x| z6Tm)K2VXun$jf)bC;m$A$`RFKnRhz6GmrF>2dZ}=i*0Hk9h>6~wC$ycAx!5vJG*>- zu4@aG(Ykx|l^7vfNkHtnOc)UOnY|6AiajTNe&`QrI7`29q4-feLU%6!Nv>Ef1E_^A z3T$?GGWg+I|IqcHy@pe_V+e3t7o@l@3-A?rc?$zzu0M(K1bay8eRf+-MTYkDea_0E z5|t;)V6UrlVBjavGK-kQp8IA`k=+?Cww_R;A%PxN1F5bqT$npPX4D3h^(7_OuVGc% zY}j{G-#t3`mFBkebQH?&aUc_G&jwod5|oF$iLB_>4)X7_l()B@WdAhLs0H zxfJmUd&%~NkD{{jY1sAk^NlYYk~o`y&834$+UuCSm{YR%H>aOmYH9y6YKlbqNExP| z`WW7=B;Y&qjW{IILofBm`a7%694SAHY@9X#3GQE%TenMcqg&CLn}+Jo&yR`F^^#bO zHwOC<_KQ^556qk+i!Eo~sM?tJE33qI)V3nTFYv|q6fi-Hzh{|+&IdQ|JBep0PmfZV z6_O*6uq+19)bc1WZY0S+l79L2&eg|De=n{=(qtX%A_Gj+>JJjk|MhxxDC=5z@iS`c z^J*kLVuS%EJYGk@7yyjq7$4%{7=>hNKS`f_T>jpV}d{*>+yx zNasbF#{Ax$z47F42${14b20`R>ux+vt0u}nPhUg&Pqd0~xTpq6k6S@IAE&@*Jd^!f z8xIyVmNhML@UYvjy5b~4W?6yVquu=xw>mMFrlBIM=Xh%Sq==bI&LiBFwb)f-pfw+> z`rx6JR4-E$(HpI1`AGIMk~S;^dp91x2)`lyLv`n&-7HIAYO{rSg^+v=Qqf zM_~y^Bdhx+-HCRVEP7bNaRum^T9Es{y#yCLYmX-TYYA2~7McF?%#F0_)W#V?g# zAb6u0cGU!Ehq8^QRfV58K7~E;Xv|%YlU@>OvMJc@ZWSz8EBu&Un`e4QO0t-S+sYVf zQeIw>QQ>$kbd$j@)J~(J<=(1T)bVz!b&&RxWA*3b#bShtnKRm;pI9t<+2cS7U2d=Q z=2)OiG0}EqIs!kXk9Md8{G*T?Flu~@NWh1pKQN@0uT?K-s&xFv= zYO|@$^;+!FrH&ueDqak~;s02TkPjJPkNfC|AC2{Pft0syNJjipzR!WCkP8}T5HOd8 z0SllJdfa9~)X7((gsXk4dulQ)TrMN&)4A|6|MGU=rWZr0HsoG&zD^0tlAvO86QQmf zfjG%f7!Ftd>h5OOqMFN3UG^m=>mKbGDX%)KFJkh**oWNAI`RXSSLaZAA~eQmkh zy>W9O?`cf#IO|t3Au(5N@28&g2ax6dUh0Z-_RP-G@sB;EOSYs#)}@+(fMuPXi?!-c z6Ksx9AIkzMDH8E7^P#e|5?12Z=EHxG^n2z*Ekb^KKAc0iug!;xNctV~;T8gZZ9a4$ z={M%Xa|HV4e0YUm-#s4&5&UcOVHiojJsohLI+k4-8TCfoWKTy>zNv3QyaZ0b9CZg|ZXDq@#@$_Euz779Imx zTcg)F{gP@br(vVpGs{YKhzEK41HOBQD=%D`?{!PQbctarWH}B#wp>#~G>^IQeDYc+ zP9bFVa9Z*nF6cQuKe2_v5vj=G^FcQZTTKF**a!(2OK-~%m-iOIKNTzc^Z@?vwth08 ziHT2KUa#OpR5$`BjEpBDZ+>D>sZx@*d@dDgZ{8OTydW?S>8MLK4L`JTR?Jth^h z9?Kk3G@TYiGvM2Vf~jq(<&eiCri@tDB`n*ObHe($&6!&Kp>9@CMWO(QvETe)Q`rW) zI1AWRU6=*xRftg|D*0&!w{kEO#;ZBJ);A028B zO9`%0bpw;Mh%ZbZk9Xaw;I=42^@^(8!V_5eUSNWS-3E%-;afndD%=NjX%HW&vk6Ct zFSf*=@b0o$)uDpzUF2>$L!y0E;{Y1SE_7mSk;ys22qqhFg*-RCuDs%0affVFoTeX z$jvzS^)SvYz`#^O{|?;dWeiNwIURv3CaJ(ne74OZ)rXOg@?n7VyjJ~;8a6HkOd@0< zr_>Zcl}G+5FSW4De4weWXwjOqJ8!3Dwswi`!QAB)Bk{P=p#s(jSp>wwZbNf~2INFK9ZVtAA<{S< z7!r;n(m5R%5sn}-G#!|Xl4a@e=%t8zKOJ7kuZUF40Mir^NjW+mWMEEP;NcuIfEJ+; z$-Oh6hde~?%Yf(1LS%ggw3UX)o($+W8IkIlFt9{K&dCH*b@t#S<(NE7>BidJlogi} z?+=XcD@>?}T!?MY1T4jt_plNuF(zccGbZV;n+Q>Ol`9Pnb3pCt=V9@ z;^|1-Pc0LMWY7jkSYtLUiF-ToIPPWx2JuJ~E>F+}X_EC8=6?g8k)8ulUAPEaoCB*R z3n^^E$T35$cBUY^LQy7ZG^kv2(bEWR&hV`LH7EMsTj-eh9dP#)Z><*rE++qQuj_ zXwk)v)x|?UMr8&Vi)f``ZvL0>5};gj`q-lN`{B8I@a$qO`(f#};B}E)0DT@qNi-_} zhO&4LG1mfExLt_cRsg-%p`08l0A_>{MBc->O(HG zW`F5Oc`Wt-#JAuQEc*a-eH;ZVT2$Y@v12D`6L>d&qwtS69yCN9z5tJyuBG{Ha zI7xXm87AsMRqL7%a@T?h!&d^UlIs<)vLc`#`fw2MwFCHiE&WJp@+&jBgVmg49ptPK zb;uf8hJ2EK#S4KW;Juz?^tb0>a-jVExEJ>csXRONUO>;z8L z@w;BuIfpB(E6m@N>Ztd;AD{n}vM3q+nd+NLmy%jJ9lrGNSNb=Q%E2 zfl~SLpFg%hHP*fqJ}bA`1BEKeQSe6bizfh-!JOIwqpIW< vaMdDyUYk{_{ov5}FV0(aK~|a!W_=25tHL?v@`%_c(+>WQsmx-s!lv@!- z3p$0|V0#-oUQk5v7LH#ahZ7Ou%M0}19vHoaE2)hUj|u@S6azzCb}QF9e0OWk?8fy| z>DoZdN?(|Bk^U6W(pCoM=Sy#Fs-Dy6k$jq-;AM!iz-g=U33^wGu|{uS`O#lrhJe#KOJmNvI`0=3 zf}ivVoPDh8m6QZ0sGae$846$|E&0$YU>#CZk6L#iaff9-TwgX^y>9#COOmxyg7{jM zjPHR-C!aG?!EgfA!|XT-M<6qm#$?7cTlj_Buj#MKQ8+uI>;Xw`+}KDgbqt5b{21DD z%^*sy;L`ei=YKtZYA&jyl1K@oB}Q?!gm5Ei3E{k8UL+h~yKq9oCpP&$Jh1H1EA3x~ z5872feOtY)xR%;<+W-WF<;U|ij1J|7MNQECKRU2GiZ|PAF-M0ij|?hj7xR2S^}}EOb-{+h`6EZSd*wE~vFWcQ%nn5y zc9O~Gg>WaLM(na&E0<_;bj{ALhk7YzzLl^aPse`$&GY3%1@Xct<`R4eU7QEgK6+f2 zZ-1_9@8eN1ew;YIG6N2=S9AH15+dfgYxSROKE0gnlP%aUH9I3iOn7gr@zBA|Ce0 z!$J014pwgB7{-^fZknHW+oUIV=7>(2(%2P3YthGtMrgjgu&BSJnz2DxeOGm@3gd8_ zse8#hjh#giOwZj! zA1KSPociLb`AZ4APYw=xe&ZJ%GT9=#Y43XTT)cC)_Wq)zztS%5CUIJ)2!}kKqx}N7 zlf1ZNZpx7>Qx-LdM)RC%8jpHNi07Gb!1I#^6L!1*sYJo4bj-qlS=5 zSbuXltYci~(NK`p{BPU&(dq?WJ%oEz9x^`RuIF<2)Pcs~E~p!uwK?0N@vYTJ*wl(2 z2J8FChD)*_ARBP^f7-MIojL;_v>E?t*qF+nf2X@*fUxtmAce3$X;|wxR_y%Xror)7 zy8;vnxgio}nKWijwzs*SWNO*d+?p0yXK&iPc!{V;nCkdn;&itP2$B1C+&~lB-xtP~ zI*(YEIPJ7Gc++_%ZJ5xW%)+O-l*{$wl9F&m@$(1l&9^8N(yMBB-4%POz9PIH9Z2^4 zd)Ko4H6U2w_q7+TD?>vZ1IES(F;NYdzJ?nR6dA=QbA^}-K{~E#;qgMZth_6g$NsqJ z>TK%tfsiliVX4;qHKvwVWJ5C=brPjoXC^H;|8V`Egq0?Z8|2eAez>+dQon7QzSZ_k z36VPaJNA%!>dAbZq9-2FiDAaIT!~>G{#h@5k-Wi$#s=}?-}4d)b7&gA3021YIugaL z_SH!p^`gdmjwp-?MjF;{UDr!}Eb|(zyL`<-P}5mSHVhh~N+xKDXR^Re&R~03C?~{j zYj6yIOHiXcm#jq5mgC6HymJz___l$C@^zg4)5#>tU_CKKk-M+khH33}?|q4CO<3LBlhWlrp^ZRMH{ zC1Dn;2I(R&p(j%xkQ)M1dK!VTlr`-~%36xRh`u|8f;SNuYULlIHl{1!6W-jo=&<`; z=>@j-UWVJAE14qsEYP863MsB-7Ffy*QSn)?HBeqLsH-v--b+6uN^mTgc}%;aXx)it zB)iNk9JQaorYta~_Yydq1#{^S3Dn63V`~Cg$7fJitK^dQ4dFya(wMcWzisFYb$|cz zPOzNUJ5lC+Y7gtE5oDsr4WNn+W`h#FjW{aK#+69mjcgpWnOHw$gZ>26&w<%8jl{vI zI*Ka=b&Ud%X3&b^p5v{4v%Syies#B=tRgv7T?$$#GY6P564L`2^cZhIm$8X{ns~mC z-O=j^oFc^Ubv1$WgkV5FO5hqH%%O`2j1z(xJ)giDAuc_Kz#bt!kW2y@xnRslqaf>~ z66BJ}N2_u{gPu&*LvnG11OhX1ah;>tlnM>G*w+w&L%BF^FM+CgI57!alm|vyEtHjY zn)>H;|^H5gQoZ$7Bg`$<#9;dOfF0g76a4_04~kWT7%g!Bnb*KmD#d_VIE zWe=TNe7f#hxV%D4y%9S6n@kR&r&a-Euva7fLQqlt<6DvU?SdJXTz|@Q|L}`}TuUZ#hg+e=PtTW_~KQo~jKwl1CCnbbvCl zF2t-+Y6-0O{gX_U3B5T9*7fp-hRoG~t-++4E7;y77@8uIA_I+|02y_BU> ze8(bS(Vr0*RfG?%jpC!CA~2K7%%Ha3p9PtoNH-tv9V!AQqn%h^ECUg$9RPh~Dx&hv zq;@%paBLBxAWwt`y_3KK5sr|VMOiyUI6@17P>fT~A;Mb}gPB$%QTyCXtaj3E7q6LS zZAJ4$3k-K&Oy{7OV$h}E-$!}KDaIk%iLlow4{cNrps`}yk!?hIgAz<=B+9y%;1R8+ zlx3w@eKDfpnj`P!wq4u0LD>F7`x@);mV*?rb@k+kHk9DHnkjWrX9;fIG)lV6QXI3F zh-h9422$h#VwX~lOW^mVIC>e;q_Pyu>HP#gq^!+Ev>9cXn@r@fEyJ_XOrSTmN|A%# zR|az!y+pHpb8#wqAMtH*y$qD(k|~W?zZyfjCn_w)J^V)*p6M2%oKiWif1JQY7&5Af zM*Gb_nMfIwRF3((iBJXQIP`l0ua@K5>WNSzc&fRWhTJ_G;%k4xpM?f#`;T|f{@;R8$?qh%5u(|T^(x2j*-uBdI zV3TXSY142ET)U{)Ie+Isb2B#0z7TnYvpmPHd;0lq|8YLNA_4O$J_;*3VkX>9n0Drtmsvyvu<0;NR{)#qr|H!AOYN)8f*r- z7j)X)dv$HeqokS6Wu;VBHHlNDfJWnGThnM8P4K@i^)LLVrjM_pTV>*eg}7wqTi)Vr;6Ta_CI08J5XGIy(+~?v)8dr zfgt$ebD9i~BSugcK9}mj+i&nvBQMDTdtn9D;criNIM?dcCo@|SVPXYe!X~&F-e|<9 zl!fNAD>L(smZe>D8`0f^2@7b+hL^w;FH#({C`P6_e#JO*sP=U0zZuh=2o%jg#3gCH zW85pg`CU<0$TyfvBNBND*5Ia4cFo{p54n`ANbeV6pJ>QKUc`8#cAd_@rqx%C>eA8% z_lwhro4f>f!{m}AcPBZ+gSs&-r`Y3&Fsz1_uqpB_1|gQe3UXCgF`?k9&XD_OK4wOFw~6T6W#{jCQQ*XucF|ovs>NsT7U~;~j`tEC-~VnC$+P zGD(pSsZI*FVWTR%l+p9)EM@{zSnu7W*n;kb?lG=p{9EX}RFJZa-=WE*u zhjWUcVpNe+_ZSoNNgrMW!4l*}vOa&@%(AnX`}NiV{#;3OdyJ%#2tg?H!y9d|YVjT_ z77c5?eO!NtF445vhKW83Afy98z*Z)^;`QXc&Y(F9ZFTcXHhspEWV{dA$gSt?^{7>6 z;05RHExLaO4Ap*#Uxa(ThzSW^qP}}u%ZZzoR#VbNpC-P#;%PE2BMAXGuP&f%tEuWr z%>^al_e$rloOd(!xnq?#?iWWQdj_nsHdRe*PCXKJuP@WC&TeU3uU;o*)M%H4oJ$LX z*PcvvVOXN-g@Tw9+_xj!jtzEWn^5+!vu*rz{8$kp~$LX6te1B~ee;~Fm^ z`=CdQ?`HFoK8+szt91t^F#+p|TBa&Byhu^fgCoVAIntUE%;rjqOK9_Gw7X0q1R+kA z7cH#Ob3?65_;k$Ft>ii{^6=iAtnJyQs3ub0*56+j)>+YJ}@Y7vzTwgI#(tmX36e(n8-suq<#V| zTT|7jlVVdX*Ai24zLXgEsYCV( zHo~b@&IF&fncA#<(=Km$K4Z*3;MC`Ohn+gu=mzDQ5F&SRn(zJDqJFv^3=mW(&hOFF zB87=;OxT0hmQ0oFT@5Bb|B1JdJ0feWchm#h;Hnqt2F~_OwvN*E-GV|^n_?IAhZPZf zu??OT=^4t4lWkFM*6`>gC(*%sBBm2ATx!%&$g>zMH+rl!$30(WH#G$N?%r@?mq9l? zk0=5jI8@b3Ea63N?TCxEZQwLC=jXV;85nbz9y()&b;3TJwI=QDfc~FTD`jsVcfE}X zoDg}q-_XPA(c8u9XDb@n+2xiN+Lvg%O&^KGLtf;Sws-0K0^-{418d6Cbwp&R6XJHf zL^6wz*|s{v$j!@t^}M2eFt60u@yse6ArEKT)aE@Gl9WE7-}P?rLg9$^DBSNL(qu9l zTEZp&aWoySdnK1u_&r!`t_}gw4J7;row1 zJT0h`?BwTziPeY@6yYTf>D&AsJ>VBw+0Evce|~ce6HI7H=7-V2ixe2dUiV5`GhZM& z9IRvJp_ynhk%N}7iIL-=4cSp-iGatmNbS3;8P4?vZ%VKe6$&7PGIy;-foHkx5I3;I!o;fD)WC@ZVpR~aaJ6`I)b54%+ z`g~h)#`u5>CiuxXU`l7hRZB-kWY^}msSiI@{Uhe!nB4JHjLanwf)EymH<}awe6f#J zemh1E-LKPo^eDFn6J+18sl$n<6MOYtVyoE#FOQ^FSsGb<=FZ0m&W{l6f{tu*Qkhy? zZ{BkGudjZpLmHOT!;*f@OKd#Qwz=>7RLjVCYpC}`GTQ9_Um9~dXZYS8v^`U^J*)Pq zy3B_LVUCjb^sr)*b3)gv=KT+w~J#7K~vNlt4SdwI)^+<$dCK45}e=`e+a^bDC6`8v@R zqW*sV>B-#8h4K36bEe7oB{YXkV}{Kk<5|(hci)b!3sUU6b*CW#AScG~NjBwJ>g+C= za+Lq;4u2MBC`Q_-2d0Y5o3RzL(O3(gv`lO4IekJ`Rzg6<8ED)jh7z{eV z&&HckWy8u{F*dXEt9pfk{^y!3Y}n>I0V_vS_EYa=jEX}q+Ahw`TW%ys9%hv9r^ra! z7CvddQ_o+l6)7JruF)AdEnzWl115?PAw#Y>8e!4FVo8m*kFD=m6EIw1$iRdvv=oGw zayI-fVzMt2zDkGACs?}rU9CU#2ycnTwW!;~_U>T% z;VNvi64@;Ho3~fTGiNK_9ThddqFEW4WvKQmCRm8jaN;FO*PC*y#yk?A4Db0^e%=7i z9Tj;qNh~J_6)#@oM!f8bW!tixS0wM7-CMe_A0Z~VkaWtyGbi-lQwZ=oYmxs#qYQvP zR++#PDYhXS*G$0jG4H=*SijC#~XBRDT*h{!S85BXxJ4T)yo2<%m$9Hls1ZsNd=7(($fH9Lq69o{9T7Zr#6*Jc#*t;UX z2H+%8;qBlKQrvtnj8zWMaHH(F<6t{dF+zZge|rFKV|5w~VwDDz+!65xSYg!;!riIZ zxnEEuLSzBZVrMzX{?O8uw2L(=ZQg%QkKBe~?A#GVFx|ihcNF_6Am@QRWP*)Yy#U9s zY5{pzodGYg`U0dp5s?GdVO0nYVl@e_Vs!;P!>SU@_Cmyc@H{bcAOovH(27+G z5cEbwJ6M6$1K^ESJxE0=S`0KI#qkGINQHg`I(sQLvJki;#ZCc9NO9+YTBO2$0pF2| z7yz0+6cN${9FXEX00~G%odEZIsC3jG5__)%3I3IBkQ zP3a4{k$}g3sH*3HK4cl83>5q+I-(F*AQinAgdi2h0oRd=900G8;+_D^eH0O$3DzSO zr3elq#TfwE`0W?ag%rC9i0?-u@drjoMK*x|q(aYti}-CjXv1$e0pS2NCNZ!IsnA)# zCqPR8<|-1L4_Hbr&d5p7j9y0H2Yi9lOAgQtq+UjZ0{1{_HX;mB4rDm+Nvr-N`>oRN zmN#0*-C-2h+;`~4D;MtdWE1fQPXejg2>k+n1X2-k0)f^6O0hG+9;Cv}KqCGv4OAf& zqYTEd5(5i^v{t}?kH10vN-u;@S|nu&ai1$~!bSI9xfq;mr9z(lkcbHcaY2gmtrJ2@ z2Np5>%9|IjnirPThF`XWiXg>5whK4J*5ni)t4Z+MTd>r+6u-p21j&ybnlD3PAM*gB ZE$TP-uv5pw{(;p>`9f98FG_v?{udxJB=rCQ delta 5525 zcmZvg3piC-8^@2_Gj8XokXxEu%25c(h|wv95h1x36XjMYr9Pcp4-Q3Z+|s><(M6a@ z7le=$g-E_gDuk4VRMNNhUaRk!*?ZRW?6v>T-tTX{?|Ro|uX8TH5%@ABP_$fL;MJdo z^2_FcD7K?OQt^VRdBw}pX8rl|x=JCgjd8Kj*?y;qCxWtJe{tkZ7z_cP>e9?346+F8 z!<()FthC{^fVgCmS3VPZqwFW=)z`BpX|Q1m5jg<9ghl8QtSE%mrxLGsl>x7Mfu*;> z4JPw%1eZXf>B#QQeBJ@QlLGgx#tJv@@2mYALJ)>@f`7AW=m$`g(0DVh$xhHcheELE zMAsT=3GQf}Sj>H9=iO*K!4e8$Lq}>??Gw*>I>p<{zjCu*<5)6Iilrk!UVCQ6_N((dUms`wrlMs}fxL zj0vIxut>ax6(y`E8=ce^@Tzz9eOptW_Ru38ht*F43@L-xbmVA8&y4!vhdMD88P#jf z+m&J`nh22`0(!nI)fx3?l4ruz8tkTvrZ%~6!ZxdsjjTR+Y|l}%Z#`;caP?(%K`*Dr z^8WBn?0XD1^c9#maJa7ilcKC5JEgzME#CUspM>v-yk+A|OZ-a`LJ#RVO7Jueva zQ9DxZf{BZ$S&^;qPDw)7)@LHq&iAESM^%lzoeO3#aRpim!%L(AY;|X;_VBHqe^Blm zOED@OoGRRljqm`p266dN@+4Z)D>^<{Nd19Mhat&I-qO=e2oj7VUYnQd?R@iu`NtFMglE?grjmT6p7&7<3m=lMq*B~C8 zQKP~WYEn!#spxUVM&D3Nf=A(Z;S=HIe6Bb1^7o2fiErbi0cQZHxSX`^^tt0As z<|X1y=MJkBEW$R#q=QA2m6)H#NR9$>N?K0F{MchZ*>Uua`)3WJJ{!$;)|BHpWX8u6H5^> zSBO~gl%B}M45$R{u>ZsUUE9p|v<$osbI5ct7*d<*1ZO5Lscg`9z};)&p<}GTPuK|_ zL|eEYQhn&P^=F)U((jSM)!t~af74aff2K=vl8#(mUi)#M7_0TkSQ9_;v@a7AI4rg$ zop9uxd6%J_SJS;mI5VViLIo2x&=M9^lHd|cLmOV`{C&5eE$5S-*1P61Pmk&HTL&=$ zr!G!$>83M5NAjbOOdh|K_@K}# zb@-5T=M{ux6XvkU%fO0~lKVUBtQTH=s-~5%)Q~YHg3mhHED~VM(V-JYk8U5b>ziA_ zu~jW=kMfxfcV43JS#22cr6c}PywCMtCxUG{IuA5lD#Kr~tQJHpk^#e>95q|%aO-a> zW6_R#?uDTCTU)5^MK z>1*#9x|~?gQ}bIEg9*Gl{BVj+G}?KHKl>tZXMbTxvQelR{1}q`BR&&EB4vr=Cnbwb zmIJ2*1{tP58*U!kyDH8cJ0Vg5i!29L6vFk({i2K=%N3P(`Rw=V+Z^A%=%CEXCV^pB1u(h|#eNUW^Ftm)zsT6C_fS>t+Pe>(Bf+c|@5qlJPBE_o&N03U+ z1l56Lz7xh#_Eg~!nVRp^QchV(<1Q)bh#QNt(q4+;xpE8Vo zB&1S~ft&bQ02sy3<^t7V)C+y!fK(h4#0Ik^;T%lzL+vV00tY`9co@tiRte7<3?R!y zCQt|=>BN)31}Xko5QS8H2e^V%(hTTBDy0Unc9I0Y1FS(RSp)1viuVE(AeEvEx{->v z1d_W@PYwceq>^5MP^9AQz&WJ&v%q8gb}bMMMSYS2CP>A$g1}I=5YZ=aJXDul>{6fw zz2uJrfiUtV59o)HFBAR1wlH!u5;af`=D;rnbu?yzqgfZF-7USu{){Vb+6K=%#LA5) z{t$pgY#DeIMvg|@QSc>A42{7eeeB9)p6Ca{VCn!DM?u-)h$ z)UF(HqM@wAJ5|dEx=lKao_uIr^E_D*p23Jnj^+XWZbkVp4dpv=vg@AhfB&Gtvh_hE o`Oq$K3I=m)*)ZQ#CECsKZLpxy8r+H diff --git a/.gradle/7.3/fileHashes/fileHashes.lock b/.gradle/7.3/fileHashes/fileHashes.lock index 4c3c69313c03573b169c0cd354cd92d049461a17..fdabc9558db685517f87b3f38fd7b594ec0c0b87 100644 GIT binary patch literal 17 VcmZR+b>-OQXGPyM8Nh&<4**K41=9ck literal 17 VcmZR+b>-OQXGPyM8Nh(?I{-_M2D$(M diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index ae1f22f9bf38b563d25c70d3e74c28a63be8521a..d44f7df4d47c48025ac53319583d9283ddfa8f9f 100644 GIT binary patch literal 17 UcmZRc6ZMAOWyLE-1_($805FLJD*ylh literal 17 UcmZRc6ZMAOWyLE-1_%fR05Eq182|tP diff --git a/.gradle/buildOutputCleanup/outputFiles.bin b/.gradle/buildOutputCleanup/outputFiles.bin index 129b103dd5d3db036232cf9b2e7173ae0f754920..3b0f606e6cb35a3e02e830dd9b77e4f530df1a68 100644 GIT binary patch delta 61 zcmexAm2u)U#tkMCj2fFwB`TTu-+f-cZKa<camp.t_salesprofile. - */ - public final TSalesprofile T_SALESPROFILE = TSalesprofile.T_SALESPROFILE; - - /** - * The table camp.v_adult. - */ - public final VAdult V_ADULT = VAdult.V_ADULT; - /** * The table camp.v_budget. */ @@ -171,16 +157,6 @@ public class Camp extends SchemaImpl { */ public final VDocument V_DOCUMENT = VDocument.V_DOCUMENT; - /** - * The table camp.v_dsgvo_delete_candidate. - */ - public final VDsgvoDeleteCandidate V_DSGVO_DELETE_CANDIDATE = VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE; - - /** - * The table camp.v_feeder. - */ - public final VFeeder V_FEEDER = VFeeder.V_FEEDER; - /** * The table camp.v_profile. */ @@ -236,8 +212,6 @@ public class Camp extends SchemaImpl { TSales.T_SALES, TSalescontent.T_SALESCONTENT, TSalescontenttype.T_SALESCONTENTTYPE, - TSalesprofile.T_SALESPROFILE, - VAdult.V_ADULT, VBudget.V_BUDGET, VCamp.V_CAMP, VCampBudget.V_CAMP_BUDGET, @@ -245,8 +219,6 @@ public class Camp extends SchemaImpl { VCampdocument.V_CAMPDOCUMENT, VCamprole.V_CAMPROLE, VDocument.V_DOCUMENT, - VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE, - VFeeder.V_FEEDER, VProfile.V_PROFILE, VRegistration.V_REGISTRATION, VRole.V_ROLE, diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/DefaultCatalog.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/DefaultCatalog.java index 7df6216..253db3c 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/DefaultCatalog.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/DefaultCatalog.java @@ -45,10 +45,10 @@ public class DefaultCatalog extends CatalogImpl { } /** - * A reference to the 3.16 minor release of the code generator. If this + * A reference to the 3.19 minor release of the code generator. If this * doesn't compile, it's because the runtime library uses an older minor - * release, namely: 3.16. You can turn off the generation of this reference + * release, namely: 3.19. You can turn off the generation of this reference * by specifying /configuration/generator/generate/jooqVersionReference */ - private static final String REQUIRE_RUNTIME_JOOQ_VERSION = Constants.VERSION_3_16; + private static final String REQUIRE_RUNTIME_JOOQ_VERSION = Constants.VERSION_3_19; } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/Keys.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/Keys.java index eafd011..8039e1a 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/Keys.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/Keys.java @@ -18,7 +18,6 @@ import de.jottyfan.camporganizer.db.jooq.tables.TRss; import de.jottyfan.camporganizer.db.jooq.tables.TSales; import de.jottyfan.camporganizer.db.jooq.tables.TSalescontent; import de.jottyfan.camporganizer.db.jooq.tables.TSalescontenttype; -import de.jottyfan.camporganizer.db.jooq.tables.TSalesprofile; import de.jottyfan.camporganizer.db.jooq.tables.records.TCampRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TCampdocumentRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TCampprofileRecord; @@ -33,7 +32,6 @@ import de.jottyfan.camporganizer.db.jooq.tables.records.TRssRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TSalesRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TSalescontentRecord; import de.jottyfan.camporganizer.db.jooq.tables.records.TSalescontenttypeRecord; -import de.jottyfan.camporganizer.db.jooq.tables.records.TSalesprofileRecord; import org.jooq.ForeignKey; import org.jooq.TableField; @@ -75,8 +73,6 @@ public class Keys { public static final UniqueKey T_SALES_PKEY = Internal.createUniqueKey(TSales.T_SALES, DSL.name("t_sales_pkey"), new TableField[] { TSales.T_SALES.PK }, true); public static final UniqueKey T_SALESCONTENT_FK_SALES_FK_SALESCONTENTTYPE_KEY = Internal.createUniqueKey(TSalescontent.T_SALESCONTENT, DSL.name("t_salescontent_fk_sales_fk_salescontenttype_key"), new TableField[] { TSalescontent.T_SALESCONTENT.FK_SALES, TSalescontent.T_SALESCONTENT.FK_SALESCONTENTTYPE }, true); public static final UniqueKey T_SALESCONTENTTYPE_PKEY = Internal.createUniqueKey(TSalescontenttype.T_SALESCONTENTTYPE, DSL.name("t_salescontenttype_pkey"), new TableField[] { TSalescontenttype.T_SALESCONTENTTYPE.NAME }, true); - public static final UniqueKey T_SALESPROFILE_FK_CAMP_FK_PROFILE_KEY = Internal.createUniqueKey(TSalesprofile.T_SALESPROFILE, DSL.name("t_salesprofile_fk_camp_fk_profile_key"), new TableField[] { TSalesprofile.T_SALESPROFILE.FK_CAMP, TSalesprofile.T_SALESPROFILE.FK_PROFILE }, true); - public static final UniqueKey T_SALESPROFILE_PKEY = Internal.createUniqueKey(TSalesprofile.T_SALESPROFILE, DSL.name("t_salesprofile_pkey"), new TableField[] { TSalesprofile.T_SALESPROFILE.PK }, true); // ------------------------------------------------------------------------- // FOREIGN KEY definitions @@ -97,6 +93,4 @@ public class Keys { public static final ForeignKey T_PERSONDOCUMENT__T_PERSONDOCUMENT_FK_PERSON_FKEY = Internal.createForeignKey(TPersondocument.T_PERSONDOCUMENT, DSL.name("t_persondocument_fk_person_fkey"), new TableField[] { TPersondocument.T_PERSONDOCUMENT.FK_PERSON }, Keys.T_PERSON_PKEY, new TableField[] { TPerson.T_PERSON.PK }, true); public static final ForeignKey T_PROFILEROLE__T_PROFILEROLE_FK_PROFILE_FKEY = Internal.createForeignKey(TProfilerole.T_PROFILEROLE, DSL.name("t_profilerole_fk_profile_fkey"), new TableField[] { TProfilerole.T_PROFILEROLE.FK_PROFILE }, Keys.T_PROFILE_PKEY, new TableField[] { TProfile.T_PROFILE.PK }, true); public static final ForeignKey T_SALES__T_SALES_FK_CAMP_FKEY = Internal.createForeignKey(TSales.T_SALES, DSL.name("t_sales_fk_camp_fkey"), new TableField[] { TSales.T_SALES.FK_CAMP }, Keys.T_CAMP_PKEY, new TableField[] { TCamp.T_CAMP.PK }, true); - public static final ForeignKey T_SALESPROFILE__T_SALESPROFILE_FK_CAMP_FKEY = Internal.createForeignKey(TSalesprofile.T_SALESPROFILE, DSL.name("t_salesprofile_fk_camp_fkey"), new TableField[] { TSalesprofile.T_SALESPROFILE.FK_CAMP }, Keys.T_CAMP_PKEY, new TableField[] { TCamp.T_CAMP.PK }, true); - public static final ForeignKey T_SALESPROFILE__T_SALESPROFILE_FK_PROFILE_FKEY = Internal.createForeignKey(TSalesprofile.T_SALESPROFILE, DSL.name("t_salesprofile_fk_profile_fkey"), new TableField[] { TSalesprofile.T_SALESPROFILE.FK_PROFILE }, Keys.T_PROFILE_PKEY, new TableField[] { TProfile.T_PROFILE.PK }, true); } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/Tables.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/Tables.java index 54140d6..811f8a0 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/Tables.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/Tables.java @@ -18,8 +18,6 @@ import de.jottyfan.camporganizer.db.jooq.tables.TRss; import de.jottyfan.camporganizer.db.jooq.tables.TSales; import de.jottyfan.camporganizer.db.jooq.tables.TSalescontent; import de.jottyfan.camporganizer.db.jooq.tables.TSalescontenttype; -import de.jottyfan.camporganizer.db.jooq.tables.TSalesprofile; -import de.jottyfan.camporganizer.db.jooq.tables.VAdult; import de.jottyfan.camporganizer.db.jooq.tables.VBudget; import de.jottyfan.camporganizer.db.jooq.tables.VCamp; import de.jottyfan.camporganizer.db.jooq.tables.VCampBudget; @@ -27,8 +25,6 @@ import de.jottyfan.camporganizer.db.jooq.tables.VCampBudgetYear; import de.jottyfan.camporganizer.db.jooq.tables.VCampdocument; import de.jottyfan.camporganizer.db.jooq.tables.VCamprole; import de.jottyfan.camporganizer.db.jooq.tables.VDocument; -import de.jottyfan.camporganizer.db.jooq.tables.VDsgvoDeleteCandidate; -import de.jottyfan.camporganizer.db.jooq.tables.VFeeder; import de.jottyfan.camporganizer.db.jooq.tables.VProfile; import de.jottyfan.camporganizer.db.jooq.tables.VRegistration; import de.jottyfan.camporganizer.db.jooq.tables.VRole; @@ -112,16 +108,6 @@ public class Tables { */ public static final TSalescontenttype T_SALESCONTENTTYPE = TSalescontenttype.T_SALESCONTENTTYPE; - /** - * The table camp.t_salesprofile. - */ - public static final TSalesprofile T_SALESPROFILE = TSalesprofile.T_SALESPROFILE; - - /** - * The table camp.v_adult. - */ - public static final VAdult V_ADULT = VAdult.V_ADULT; - /** * The table camp.v_budget. */ @@ -157,16 +143,6 @@ public class Tables { */ public static final VDocument V_DOCUMENT = VDocument.V_DOCUMENT; - /** - * The table camp.v_dsgvo_delete_candidate. - */ - public static final VDsgvoDeleteCandidate V_DSGVO_DELETE_CANDIDATE = VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE; - - /** - * The table camp.v_feeder. - */ - public static final VFeeder V_FEEDER = VFeeder.V_FEEDER; - /** * The table camp.v_profile. */ diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumCamprole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumCamprole.java index 5541112..9ed193d 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumCamprole.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumCamprole.java @@ -54,7 +54,9 @@ public enum EnumCamprole implements EnumType { } /** - * Lookup a value of this EnumType by its literal + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. */ public static EnumCamprole lookupLiteral(String literal) { return EnumType.lookupLiteral(EnumCamprole.class, literal); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumDocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumDocument.java index c207c98..c121b66 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumDocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumDocument.java @@ -50,7 +50,9 @@ public enum EnumDocument implements EnumType { } /** - * Lookup a value of this EnumType by its literal + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. */ public static EnumDocument lookupLiteral(String literal) { return EnumType.lookupLiteral(EnumDocument.class, literal); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumFiletype.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumFiletype.java index f577c90..a987120 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumFiletype.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumFiletype.java @@ -50,7 +50,9 @@ public enum EnumFiletype implements EnumType { } /** - * Lookup a value of this EnumType by its literal + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. */ public static EnumFiletype lookupLiteral(String literal) { return EnumType.lookupLiteral(EnumFiletype.class, literal); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumModule.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumModule.java index b6c6e4c..3c0ae9b 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumModule.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumModule.java @@ -48,7 +48,9 @@ public enum EnumModule implements EnumType { } /** - * Lookup a value of this EnumType by its literal + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. */ public static EnumModule lookupLiteral(String literal) { return EnumType.lookupLiteral(EnumModule.class, literal); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumRole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumRole.java index d448e23..74eafbc 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumRole.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumRole.java @@ -56,7 +56,9 @@ public enum EnumRole implements EnumType { } /** - * Lookup a value of this EnumType by its literal + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. */ public static EnumRole lookupLiteral(String literal) { return EnumType.lookupLiteral(EnumRole.class, literal); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumSex.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumSex.java index f5fcc15..3bbec97 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumSex.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/enums/EnumSex.java @@ -48,7 +48,9 @@ public enum EnumSex implements EnumType { } /** - * Lookup a value of this EnumType by its literal + * Lookup a value of this EnumType by its literal. Returns + * null, if no such value could be found, see {@link + * EnumType#lookupLiteral(Class, String)}. */ public static EnumSex lookupLiteral(String literal) { return EnumType.lookupLiteral(EnumSex.class, literal); diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCamp.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCamp.java index 1c97e2a..bb03940 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCamp.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCamp.java @@ -6,19 +6,34 @@ package de.jottyfan.camporganizer.db.jooq.tables; import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.tables.TCampdocument.TCampdocumentPath; +import de.jottyfan.camporganizer.db.jooq.tables.TCampprofile.TCampprofilePath; +import de.jottyfan.camporganizer.db.jooq.tables.TDocument.TDocumentPath; +import de.jottyfan.camporganizer.db.jooq.tables.TLocation.TLocationPath; +import de.jottyfan.camporganizer.db.jooq.tables.TPerson.TPersonPath; +import de.jottyfan.camporganizer.db.jooq.tables.TProfile.TProfilePath; +import de.jottyfan.camporganizer.db.jooq.tables.TSales.TSalesPath; import de.jottyfan.camporganizer.db.jooq.tables.records.TCampRecord; import java.time.LocalDateTime; import java.util.Arrays; +import java.util.Collection; import java.util.List; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row12; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -102,7 +117,7 @@ public class TCamp extends TableImpl { /** * The column camp.t_camp.lock_sales. */ - public final TableField LOCK_SALES = createField(DSL.name("lock_sales"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field("false", SQLDataType.BOOLEAN)), this, ""); + public final TableField LOCK_SALES = createField(DSL.name("lock_sales"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); /** * The column camp.t_camp.fk_profile. @@ -110,11 +125,11 @@ public class TCamp extends TableImpl { public final TableField FK_PROFILE = createField(DSL.name("fk_profile"), SQLDataType.INTEGER.nullable(false), this, ""); private TCamp(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private TCamp(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + private TCamp(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -138,8 +153,35 @@ public class TCamp extends TableImpl { this(DSL.name("t_camp"), null); } - public TCamp(Table child, ForeignKey key) { - super(child, key, T_CAMP); + public TCamp(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_CAMP); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TCampPath extends TCamp implements Path { + public TCampPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TCampPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TCampPath as(String alias) { + return new TCampPath(DSL.name(alias), this); + } + + @Override + public TCampPath as(Name alias) { + return new TCampPath(alias, this); + } + + @Override + public TCampPath as(Table alias) { + return new TCampPath(alias.getQualifiedName(), this); + } } @Override @@ -162,40 +204,93 @@ public class TCamp extends TableImpl { return Arrays.asList(Keys.T_CAMP__T_CAMP_FK_LOCATION_FKEY, Keys.T_CAMP__T_CAMP_FK_DOCUMENT_FKEY, Keys.T_CAMP__T_CAMP_FK_PROFILE_FKEY); } - private transient TLocation _tLocation; - private transient TDocument _tDocument; - private transient TProfile _tProfile; + private transient TLocationPath _tLocation; /** * Get the implicit join path to the camp.t_location table. */ - public TLocation tLocation() { + public TLocationPath tLocation() { if (_tLocation == null) - _tLocation = new TLocation(this, Keys.T_CAMP__T_CAMP_FK_LOCATION_FKEY); + _tLocation = new TLocationPath(this, Keys.T_CAMP__T_CAMP_FK_LOCATION_FKEY, null); return _tLocation; } + private transient TDocumentPath _tDocument; + /** * Get the implicit join path to the camp.t_document table. */ - public TDocument tDocument() { + public TDocumentPath tDocument() { if (_tDocument == null) - _tDocument = new TDocument(this, Keys.T_CAMP__T_CAMP_FK_DOCUMENT_FKEY); + _tDocument = new TDocumentPath(this, Keys.T_CAMP__T_CAMP_FK_DOCUMENT_FKEY, null); return _tDocument; } + private transient TProfilePath _tProfile; + /** * Get the implicit join path to the camp.t_profile table. */ - public TProfile tProfile() { + public TProfilePath tProfile() { if (_tProfile == null) - _tProfile = new TProfile(this, Keys.T_CAMP__T_CAMP_FK_PROFILE_FKEY); + _tProfile = new TProfilePath(this, Keys.T_CAMP__T_CAMP_FK_PROFILE_FKEY, null); return _tProfile; } + private transient TCampdocumentPath _tCampdocument; + + /** + * Get the implicit to-many join path to the + * camp.t_campdocument table + */ + public TCampdocumentPath tCampdocument() { + if (_tCampdocument == null) + _tCampdocument = new TCampdocumentPath(this, null, Keys.T_CAMPDOCUMENT__T_CAMPDOCUMENT_FK_CAMP_FKEY.getInverseKey()); + + return _tCampdocument; + } + + private transient TCampprofilePath _tCampprofile; + + /** + * Get the implicit to-many join path to the camp.t_campprofile + * table + */ + public TCampprofilePath tCampprofile() { + if (_tCampprofile == null) + _tCampprofile = new TCampprofilePath(this, null, Keys.T_CAMPPROFILE__T_CAMPPROFILE_FK_CAMP_FKEY.getInverseKey()); + + return _tCampprofile; + } + + private transient TPersonPath _tPerson; + + /** + * Get the implicit to-many join path to the camp.t_person + * table + */ + public TPersonPath tPerson() { + if (_tPerson == null) + _tPerson = new TPersonPath(this, null, Keys.T_PERSON__T_PERSON_FK_CAMP_FKEY.getInverseKey()); + + return _tPerson; + } + + private transient TSalesPath _tSales; + + /** + * Get the implicit to-many join path to the camp.t_sales table + */ + public TSalesPath tSales() { + if (_tSales == null) + _tSales = new TSalesPath(this, null, Keys.T_SALES__T_SALES_FK_CAMP_FKEY.getInverseKey()); + + return _tSales; + } + @Override public TCamp as(String alias) { return new TCamp(DSL.name(alias), this); @@ -206,6 +301,11 @@ public class TCamp extends TableImpl { return new TCamp(alias, this); } + @Override + public TCamp as(Table alias) { + return new TCamp(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -222,12 +322,95 @@ public class TCamp extends TableImpl { return new TCamp(name, null); } - // ------------------------------------------------------------------------- - // Row12 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row12 fieldsRow() { - return (Row12) super.fieldsRow(); + public TCamp rename(Table name) { + return new TCamp(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCamp where(Condition condition) { + return new TCamp(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCamp where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCamp where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCamp where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TCamp where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TCamp where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TCamp where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TCamp where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCamp whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCamp whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCampdocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCampdocument.java index d7b3289..219cce5 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCampdocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCampdocument.java @@ -6,18 +6,28 @@ package de.jottyfan.camporganizer.db.jooq.tables; import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.tables.TCamp.TCampPath; +import de.jottyfan.camporganizer.db.jooq.tables.TDocument.TDocumentPath; import de.jottyfan.camporganizer.db.jooq.tables.records.TCampdocumentRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row3; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -64,11 +74,11 @@ public class TCampdocument extends TableImpl { public final TableField FK_DOCUMENT = createField(DSL.name("fk_document"), SQLDataType.INTEGER.nullable(false), this, ""); private TCampdocument(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private TCampdocument(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + private TCampdocument(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -92,8 +102,35 @@ public class TCampdocument extends TableImpl { this(DSL.name("t_campdocument"), null); } - public TCampdocument(Table child, ForeignKey key) { - super(child, key, T_CAMPDOCUMENT); + public TCampdocument(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_CAMPDOCUMENT); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TCampdocumentPath extends TCampdocument implements Path { + public TCampdocumentPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TCampdocumentPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TCampdocumentPath as(String alias) { + return new TCampdocumentPath(DSL.name(alias), this); + } + + @Override + public TCampdocumentPath as(Name alias) { + return new TCampdocumentPath(alias, this); + } + + @Override + public TCampdocumentPath as(Table alias) { + return new TCampdocumentPath(alias.getQualifiedName(), this); + } } @Override @@ -121,25 +158,26 @@ public class TCampdocument extends TableImpl { return Arrays.asList(Keys.T_CAMPDOCUMENT__T_CAMPDOCUMENT_FK_CAMP_FKEY, Keys.T_CAMPDOCUMENT__T_CAMPDOCUMENT_FK_DOCUMENT_FKEY); } - private transient TCamp _tCamp; - private transient TDocument _tDocument; + private transient TCampPath _tCamp; /** * Get the implicit join path to the camp.t_camp table. */ - public TCamp tCamp() { + public TCampPath tCamp() { if (_tCamp == null) - _tCamp = new TCamp(this, Keys.T_CAMPDOCUMENT__T_CAMPDOCUMENT_FK_CAMP_FKEY); + _tCamp = new TCampPath(this, Keys.T_CAMPDOCUMENT__T_CAMPDOCUMENT_FK_CAMP_FKEY, null); return _tCamp; } + private transient TDocumentPath _tDocument; + /** * Get the implicit join path to the camp.t_document table. */ - public TDocument tDocument() { + public TDocumentPath tDocument() { if (_tDocument == null) - _tDocument = new TDocument(this, Keys.T_CAMPDOCUMENT__T_CAMPDOCUMENT_FK_DOCUMENT_FKEY); + _tDocument = new TDocumentPath(this, Keys.T_CAMPDOCUMENT__T_CAMPDOCUMENT_FK_DOCUMENT_FKEY, null); return _tDocument; } @@ -154,6 +192,11 @@ public class TCampdocument extends TableImpl { return new TCampdocument(alias, this); } + @Override + public TCampdocument as(Table alias) { + return new TCampdocument(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -170,12 +213,95 @@ public class TCampdocument extends TableImpl { return new TCampdocument(name, null); } - // ------------------------------------------------------------------------- - // Row3 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); + public TCampdocument rename(Table name) { + return new TCampdocument(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCampdocument where(Condition condition) { + return new TCampdocument(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCampdocument where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCampdocument where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCampdocument where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TCampdocument where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TCampdocument where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TCampdocument where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TCampdocument where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCampdocument whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCampdocument whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCampprofile.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCampprofile.java index 583f863..9748fa7 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCampprofile.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TCampprofile.java @@ -7,18 +7,28 @@ package de.jottyfan.camporganizer.db.jooq.tables; import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; import de.jottyfan.camporganizer.db.jooq.enums.EnumModule; +import de.jottyfan.camporganizer.db.jooq.tables.TCamp.TCampPath; +import de.jottyfan.camporganizer.db.jooq.tables.TProfile.TProfilePath; import de.jottyfan.camporganizer.db.jooq.tables.records.TCampprofileRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row4; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -67,14 +77,14 @@ public class TCampprofile extends TableImpl { /** * The column camp.t_campprofile.module. */ - public final TableField MODULE = createField(DSL.name("module"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumModule.class), this, ""); + public final TableField MODULE = createField(DSL.name("module"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(EnumModule.class), this, ""); private TCampprofile(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private TCampprofile(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + private TCampprofile(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -98,8 +108,35 @@ public class TCampprofile extends TableImpl { this(DSL.name("t_campprofile"), null); } - public TCampprofile(Table child, ForeignKey key) { - super(child, key, T_CAMPPROFILE); + public TCampprofile(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_CAMPPROFILE); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TCampprofilePath extends TCampprofile implements Path { + public TCampprofilePath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TCampprofilePath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TCampprofilePath as(String alias) { + return new TCampprofilePath(DSL.name(alias), this); + } + + @Override + public TCampprofilePath as(Name alias) { + return new TCampprofilePath(alias, this); + } + + @Override + public TCampprofilePath as(Table alias) { + return new TCampprofilePath(alias.getQualifiedName(), this); + } } @Override @@ -127,25 +164,26 @@ public class TCampprofile extends TableImpl { return Arrays.asList(Keys.T_CAMPPROFILE__T_CAMPPROFILE_FK_PROFILE_FKEY, Keys.T_CAMPPROFILE__T_CAMPPROFILE_FK_CAMP_FKEY); } - private transient TProfile _tProfile; - private transient TCamp _tCamp; + private transient TProfilePath _tProfile; /** * Get the implicit join path to the camp.t_profile table. */ - public TProfile tProfile() { + public TProfilePath tProfile() { if (_tProfile == null) - _tProfile = new TProfile(this, Keys.T_CAMPPROFILE__T_CAMPPROFILE_FK_PROFILE_FKEY); + _tProfile = new TProfilePath(this, Keys.T_CAMPPROFILE__T_CAMPPROFILE_FK_PROFILE_FKEY, null); return _tProfile; } + private transient TCampPath _tCamp; + /** * Get the implicit join path to the camp.t_camp table. */ - public TCamp tCamp() { + public TCampPath tCamp() { if (_tCamp == null) - _tCamp = new TCamp(this, Keys.T_CAMPPROFILE__T_CAMPPROFILE_FK_CAMP_FKEY); + _tCamp = new TCampPath(this, Keys.T_CAMPPROFILE__T_CAMPPROFILE_FK_CAMP_FKEY, null); return _tCamp; } @@ -160,6 +198,11 @@ public class TCampprofile extends TableImpl { return new TCampprofile(alias, this); } + @Override + public TCampprofile as(Table alias) { + return new TCampprofile(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -176,12 +219,95 @@ public class TCampprofile extends TableImpl { return new TCampprofile(name, null); } - // ------------------------------------------------------------------------- - // Row4 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); + public TCampprofile rename(Table name) { + return new TCampprofile(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCampprofile where(Condition condition) { + return new TCampprofile(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCampprofile where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCampprofile where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCampprofile where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TCampprofile where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TCampprofile where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TCampprofile where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TCampprofile where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCampprofile whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TCampprofile whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TDocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TDocument.java index 4cb774d..0d30d39 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TDocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TDocument.java @@ -8,18 +8,30 @@ import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; import de.jottyfan.camporganizer.db.jooq.enums.EnumDocument; import de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype; +import de.jottyfan.camporganizer.db.jooq.tables.TCamp.TCampPath; +import de.jottyfan.camporganizer.db.jooq.tables.TCampdocument.TCampdocumentPath; +import de.jottyfan.camporganizer.db.jooq.tables.TDocumentrole.TDocumentrolePath; +import de.jottyfan.camporganizer.db.jooq.tables.TLocation.TLocationPath; import de.jottyfan.camporganizer.db.jooq.tables.records.TDocumentRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row5; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -58,7 +70,7 @@ public class TDocument extends TableImpl { /** * The column camp.t_document.doctype. */ - public final TableField DOCTYPE = createField(DSL.name("doctype"), SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumDocument.class), this, ""); + public final TableField DOCTYPE = createField(DSL.name("doctype"), SQLDataType.VARCHAR.asEnumDataType(EnumDocument.class), this, ""); /** * The column camp.t_document.name. @@ -73,14 +85,14 @@ public class TDocument extends TableImpl { /** * The column camp.t_document.filetype. */ - public final TableField FILETYPE = createField(DSL.name("filetype"), SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype.class), this, ""); + public final TableField FILETYPE = createField(DSL.name("filetype"), SQLDataType.VARCHAR.asEnumDataType(EnumFiletype.class), this, ""); private TDocument(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private TDocument(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + private TDocument(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -104,8 +116,35 @@ public class TDocument extends TableImpl { this(DSL.name("t_document"), null); } - public TDocument(Table child, ForeignKey key) { - super(child, key, T_DOCUMENT); + public TDocument(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_DOCUMENT); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TDocumentPath extends TDocument implements Path { + public TDocumentPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TDocumentPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TDocumentPath as(String alias) { + return new TDocumentPath(DSL.name(alias), this); + } + + @Override + public TDocumentPath as(Name alias) { + return new TDocumentPath(alias, this); + } + + @Override + public TDocumentPath as(Table alias) { + return new TDocumentPath(alias.getQualifiedName(), this); + } } @Override @@ -128,6 +167,57 @@ public class TDocument extends TableImpl { return Arrays.asList(Keys.T_DOCUMENT_NAME_KEY); } + private transient TCampPath _tCamp; + + /** + * Get the implicit to-many join path to the camp.t_camp table + */ + public TCampPath tCamp() { + if (_tCamp == null) + _tCamp = new TCampPath(this, null, Keys.T_CAMP__T_CAMP_FK_DOCUMENT_FKEY.getInverseKey()); + + return _tCamp; + } + + private transient TCampdocumentPath _tCampdocument; + + /** + * Get the implicit to-many join path to the + * camp.t_campdocument table + */ + public TCampdocumentPath tCampdocument() { + if (_tCampdocument == null) + _tCampdocument = new TCampdocumentPath(this, null, Keys.T_CAMPDOCUMENT__T_CAMPDOCUMENT_FK_DOCUMENT_FKEY.getInverseKey()); + + return _tCampdocument; + } + + private transient TDocumentrolePath _tDocumentrole; + + /** + * Get the implicit to-many join path to the + * camp.t_documentrole table + */ + public TDocumentrolePath tDocumentrole() { + if (_tDocumentrole == null) + _tDocumentrole = new TDocumentrolePath(this, null, Keys.T_DOCUMENTROLE__T_DOCUMENTROLE_FK_DOCUMENT_FKEY.getInverseKey()); + + return _tDocumentrole; + } + + private transient TLocationPath _tLocation; + + /** + * Get the implicit to-many join path to the camp.t_location + * table + */ + public TLocationPath tLocation() { + if (_tLocation == null) + _tLocation = new TLocationPath(this, null, Keys.T_LOCATION__T_LOCATION_FK_DOCUMENT_FKEY.getInverseKey()); + + return _tLocation; + } + @Override public TDocument as(String alias) { return new TDocument(DSL.name(alias), this); @@ -138,6 +228,11 @@ public class TDocument extends TableImpl { return new TDocument(alias, this); } + @Override + public TDocument as(Table alias) { + return new TDocument(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -154,12 +249,95 @@ public class TDocument extends TableImpl { return new TDocument(name, null); } - // ------------------------------------------------------------------------- - // Row5 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); + public TDocument rename(Table name) { + return new TDocument(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TDocument where(Condition condition) { + return new TDocument(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TDocument where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TDocument where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TDocument where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TDocument where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TDocument where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TDocument where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TDocument where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TDocument whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TDocument whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TDocumentrole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TDocumentrole.java index ea12575..7723659 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TDocumentrole.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TDocumentrole.java @@ -7,18 +7,27 @@ package de.jottyfan.camporganizer.db.jooq.tables; import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; +import de.jottyfan.camporganizer.db.jooq.tables.TDocument.TDocumentPath; import de.jottyfan.camporganizer.db.jooq.tables.records.TDocumentroleRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row3; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -62,14 +71,14 @@ public class TDocumentrole extends TableImpl { /** * The column camp.t_documentrole.camprole. */ - public final TableField CAMPROLE = createField(DSL.name("camprole"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole.class), this, ""); + public final TableField CAMPROLE = createField(DSL.name("camprole"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(EnumCamprole.class), this, ""); private TDocumentrole(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private TDocumentrole(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + private TDocumentrole(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -93,8 +102,35 @@ public class TDocumentrole extends TableImpl { this(DSL.name("t_documentrole"), null); } - public TDocumentrole(Table child, ForeignKey key) { - super(child, key, T_DOCUMENTROLE); + public TDocumentrole(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_DOCUMENTROLE); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TDocumentrolePath extends TDocumentrole implements Path { + public TDocumentrolePath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TDocumentrolePath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TDocumentrolePath as(String alias) { + return new TDocumentrolePath(DSL.name(alias), this); + } + + @Override + public TDocumentrolePath as(Name alias) { + return new TDocumentrolePath(alias, this); + } + + @Override + public TDocumentrolePath as(Table alias) { + return new TDocumentrolePath(alias.getQualifiedName(), this); + } } @Override @@ -122,14 +158,14 @@ public class TDocumentrole extends TableImpl { return Arrays.asList(Keys.T_DOCUMENTROLE__T_DOCUMENTROLE_FK_DOCUMENT_FKEY); } - private transient TDocument _tDocument; + private transient TDocumentPath _tDocument; /** * Get the implicit join path to the camp.t_document table. */ - public TDocument tDocument() { + public TDocumentPath tDocument() { if (_tDocument == null) - _tDocument = new TDocument(this, Keys.T_DOCUMENTROLE__T_DOCUMENTROLE_FK_DOCUMENT_FKEY); + _tDocument = new TDocumentPath(this, Keys.T_DOCUMENTROLE__T_DOCUMENTROLE_FK_DOCUMENT_FKEY, null); return _tDocument; } @@ -144,6 +180,11 @@ public class TDocumentrole extends TableImpl { return new TDocumentrole(alias, this); } + @Override + public TDocumentrole as(Table alias) { + return new TDocumentrole(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -160,12 +201,95 @@ public class TDocumentrole extends TableImpl { return new TDocumentrole(name, null); } - // ------------------------------------------------------------------------- - // Row3 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); + public TDocumentrole rename(Table name) { + return new TDocumentrole(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TDocumentrole where(Condition condition) { + return new TDocumentrole(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TDocumentrole where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TDocumentrole where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TDocumentrole where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TDocumentrole where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TDocumentrole where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TDocumentrole where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TDocumentrole where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TDocumentrole whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TDocumentrole whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TLocation.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TLocation.java index 6eefee0..2a0aa61 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TLocation.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TLocation.java @@ -6,18 +6,28 @@ package de.jottyfan.camporganizer.db.jooq.tables; import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.tables.TCamp.TCampPath; +import de.jottyfan.camporganizer.db.jooq.tables.TDocument.TDocumentPath; import de.jottyfan.camporganizer.db.jooq.tables.records.TLocationRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row4; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -69,11 +79,11 @@ public class TLocation extends TableImpl { public final TableField FK_DOCUMENT = createField(DSL.name("fk_document"), SQLDataType.INTEGER, this, ""); private TLocation(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private TLocation(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + private TLocation(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -97,8 +107,35 @@ public class TLocation extends TableImpl { this(DSL.name("t_location"), null); } - public TLocation(Table child, ForeignKey key) { - super(child, key, T_LOCATION); + public TLocation(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_LOCATION); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TLocationPath extends TLocation implements Path { + public TLocationPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TLocationPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TLocationPath as(String alias) { + return new TLocationPath(DSL.name(alias), this); + } + + @Override + public TLocationPath as(Name alias) { + return new TLocationPath(alias, this); + } + + @Override + public TLocationPath as(Table alias) { + return new TLocationPath(alias.getQualifiedName(), this); + } } @Override @@ -121,18 +158,30 @@ public class TLocation extends TableImpl { return Arrays.asList(Keys.T_LOCATION__T_LOCATION_FK_DOCUMENT_FKEY); } - private transient TDocument _tDocument; + private transient TDocumentPath _tDocument; /** * Get the implicit join path to the camp.t_document table. */ - public TDocument tDocument() { + public TDocumentPath tDocument() { if (_tDocument == null) - _tDocument = new TDocument(this, Keys.T_LOCATION__T_LOCATION_FK_DOCUMENT_FKEY); + _tDocument = new TDocumentPath(this, Keys.T_LOCATION__T_LOCATION_FK_DOCUMENT_FKEY, null); return _tDocument; } + private transient TCampPath _tCamp; + + /** + * Get the implicit to-many join path to the camp.t_camp table + */ + public TCampPath tCamp() { + if (_tCamp == null) + _tCamp = new TCampPath(this, null, Keys.T_CAMP__T_CAMP_FK_LOCATION_FKEY.getInverseKey()); + + return _tCamp; + } + @Override public TLocation as(String alias) { return new TLocation(DSL.name(alias), this); @@ -143,6 +192,11 @@ public class TLocation extends TableImpl { return new TLocation(alias, this); } + @Override + public TLocation as(Table alias) { + return new TLocation(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -159,12 +213,95 @@ public class TLocation extends TableImpl { return new TLocation(name, null); } - // ------------------------------------------------------------------------- - // Row4 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); + public TLocation rename(Table name) { + return new TLocation(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TLocation where(Condition condition) { + return new TLocation(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TLocation where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TLocation where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TLocation where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TLocation where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TLocation where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TLocation where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TLocation where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TLocation whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TLocation whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPerson.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPerson.java index 882baf9..f10752d 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPerson.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPerson.java @@ -8,21 +8,32 @@ import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; import de.jottyfan.camporganizer.db.jooq.enums.EnumSex; +import de.jottyfan.camporganizer.db.jooq.tables.TCamp.TCampPath; +import de.jottyfan.camporganizer.db.jooq.tables.TPersondocument.TPersondocumentPath; +import de.jottyfan.camporganizer.db.jooq.tables.TProfile.TProfilePath; import de.jottyfan.camporganizer.db.jooq.tables.records.TPersonRecord; import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; import java.util.Arrays; +import java.util.Collection; import java.util.List; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row20; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -96,7 +107,7 @@ public class TPerson extends TableImpl { /** * The column camp.t_person.camprole. */ - public final TableField CAMPROLE = createField(DSL.name("camprole"), SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole.class), this, ""); + public final TableField CAMPROLE = createField(DSL.name("camprole"), SQLDataType.VARCHAR.asEnumDataType(EnumCamprole.class), this, ""); /** * The column camp.t_person.email. @@ -121,12 +132,12 @@ public class TPerson extends TableImpl { /** * The column camp.t_person.created. */ - public final TableField CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field("now()", SQLDataType.LOCALDATETIME)), this, ""); + public final TableField CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); /** * The column camp.t_person.sex. */ - public final TableField SEX = createField(DSL.name("sex"), SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumSex.class), this, ""); + public final TableField SEX = createField(DSL.name("sex"), SQLDataType.VARCHAR.asEnumDataType(EnumSex.class), this, ""); /** * The column camp.t_person.fk_registrator. @@ -146,7 +157,7 @@ public class TPerson extends TableImpl { /** * The column camp.t_person.consent_catalog_photo. */ - public final TableField CONSENT_CATALOG_PHOTO = createField(DSL.name("consent_catalog_photo"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field("false", SQLDataType.BOOLEAN)), this, ""); + public final TableField CONSENT_CATALOG_PHOTO = createField(DSL.name("consent_catalog_photo"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, ""); /** * The column camp.t_person.required_price. @@ -154,11 +165,11 @@ public class TPerson extends TableImpl { public final TableField REQUIRED_PRICE = createField(DSL.name("required_price"), SQLDataType.NUMERIC(7, 2), this, ""); private TPerson(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private TPerson(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + private TPerson(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -182,8 +193,35 @@ public class TPerson extends TableImpl { this(DSL.name("t_person"), null); } - public TPerson(Table child, ForeignKey key) { - super(child, key, T_PERSON); + public TPerson(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_PERSON); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TPersonPath extends TPerson implements Path { + public TPersonPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TPersonPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TPersonPath as(String alias) { + return new TPersonPath(DSL.name(alias), this); + } + + @Override + public TPersonPath as(Name alias) { + return new TPersonPath(alias, this); + } + + @Override + public TPersonPath as(Table alias) { + return new TPersonPath(alias.getQualifiedName(), this); + } } @Override @@ -211,42 +249,57 @@ public class TPerson extends TableImpl { return Arrays.asList(Keys.T_PERSON__T_PERSON_FK_CAMP_FKEY, Keys.T_PERSON__T_PERSON_FK_PROFILE_FKEY, Keys.T_PERSON__T_PERSON_FK_REGISTRATOR_FKEY); } - private transient TCamp _tCamp; - private transient TProfile _tPersonFkProfileFkey; - private transient TProfile _tPersonFkRegistratorFkey; + private transient TCampPath _tCamp; /** * Get the implicit join path to the camp.t_camp table. */ - public TCamp tCamp() { + public TCampPath tCamp() { if (_tCamp == null) - _tCamp = new TCamp(this, Keys.T_PERSON__T_PERSON_FK_CAMP_FKEY); + _tCamp = new TCampPath(this, Keys.T_PERSON__T_PERSON_FK_CAMP_FKEY, null); return _tCamp; } + private transient TProfilePath _tPersonFkProfileFkey; + /** * Get the implicit join path to the camp.t_profile table, via * the t_person_fk_profile_fkey key. */ - public TProfile tPersonFkProfileFkey() { + public TProfilePath tPersonFkProfileFkey() { if (_tPersonFkProfileFkey == null) - _tPersonFkProfileFkey = new TProfile(this, Keys.T_PERSON__T_PERSON_FK_PROFILE_FKEY); + _tPersonFkProfileFkey = new TProfilePath(this, Keys.T_PERSON__T_PERSON_FK_PROFILE_FKEY, null); return _tPersonFkProfileFkey; } + private transient TProfilePath _tPersonFkRegistratorFkey; + /** * Get the implicit join path to the camp.t_profile table, via * the t_person_fk_registrator_fkey key. */ - public TProfile tPersonFkRegistratorFkey() { + public TProfilePath tPersonFkRegistratorFkey() { if (_tPersonFkRegistratorFkey == null) - _tPersonFkRegistratorFkey = new TProfile(this, Keys.T_PERSON__T_PERSON_FK_REGISTRATOR_FKEY); + _tPersonFkRegistratorFkey = new TProfilePath(this, Keys.T_PERSON__T_PERSON_FK_REGISTRATOR_FKEY, null); return _tPersonFkRegistratorFkey; } + private transient TPersondocumentPath _tPersondocument; + + /** + * Get the implicit to-many join path to the + * camp.t_persondocument table + */ + public TPersondocumentPath tPersondocument() { + if (_tPersondocument == null) + _tPersondocument = new TPersondocumentPath(this, null, Keys.T_PERSONDOCUMENT__T_PERSONDOCUMENT_FK_PERSON_FKEY.getInverseKey()); + + return _tPersondocument; + } + @Override public TPerson as(String alias) { return new TPerson(DSL.name(alias), this); @@ -257,6 +310,11 @@ public class TPerson extends TableImpl { return new TPerson(alias, this); } + @Override + public TPerson as(Table alias) { + return new TPerson(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -273,12 +331,95 @@ public class TPerson extends TableImpl { return new TPerson(name, null); } - // ------------------------------------------------------------------------- - // Row20 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row20 fieldsRow() { - return (Row20) super.fieldsRow(); + public TPerson rename(Table name) { + return new TPerson(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPerson where(Condition condition) { + return new TPerson(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPerson where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPerson where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPerson where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TPerson where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TPerson where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TPerson where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TPerson where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPerson whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPerson whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPersondocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPersondocument.java index 93a1ed4..2d501b5 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPersondocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TPersondocument.java @@ -7,18 +7,27 @@ package de.jottyfan.camporganizer.db.jooq.tables; import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; import de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype; +import de.jottyfan.camporganizer.db.jooq.tables.TPerson.TPersonPath; import de.jottyfan.camporganizer.db.jooq.tables.records.TPersondocumentRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row5; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -72,14 +81,14 @@ public class TPersondocument extends TableImpl { /** * The column camp.t_persondocument.filetype. */ - public final TableField FILETYPE = createField(DSL.name("filetype"), SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype.class), this, ""); + public final TableField FILETYPE = createField(DSL.name("filetype"), SQLDataType.VARCHAR.asEnumDataType(EnumFiletype.class), this, ""); private TPersondocument(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private TPersondocument(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + private TPersondocument(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -103,8 +112,35 @@ public class TPersondocument extends TableImpl { this(DSL.name("t_persondocument"), null); } - public TPersondocument(Table child, ForeignKey key) { - super(child, key, T_PERSONDOCUMENT); + public TPersondocument(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_PERSONDOCUMENT); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TPersondocumentPath extends TPersondocument implements Path { + public TPersondocumentPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TPersondocumentPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TPersondocumentPath as(String alias) { + return new TPersondocumentPath(DSL.name(alias), this); + } + + @Override + public TPersondocumentPath as(Name alias) { + return new TPersondocumentPath(alias, this); + } + + @Override + public TPersondocumentPath as(Table alias) { + return new TPersondocumentPath(alias.getQualifiedName(), this); + } } @Override @@ -132,14 +168,14 @@ public class TPersondocument extends TableImpl { return Arrays.asList(Keys.T_PERSONDOCUMENT__T_PERSONDOCUMENT_FK_PERSON_FKEY); } - private transient TPerson _tPerson; + private transient TPersonPath _tPerson; /** * Get the implicit join path to the camp.t_person table. */ - public TPerson tPerson() { + public TPersonPath tPerson() { if (_tPerson == null) - _tPerson = new TPerson(this, Keys.T_PERSONDOCUMENT__T_PERSONDOCUMENT_FK_PERSON_FKEY); + _tPerson = new TPersonPath(this, Keys.T_PERSONDOCUMENT__T_PERSONDOCUMENT_FK_PERSON_FKEY, null); return _tPerson; } @@ -154,6 +190,11 @@ public class TPersondocument extends TableImpl { return new TPersondocument(alias, this); } + @Override + public TPersondocument as(Table alias) { + return new TPersondocument(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -170,12 +211,95 @@ public class TPersondocument extends TableImpl { return new TPersondocument(name, null); } - // ------------------------------------------------------------------------- - // Row5 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); + public TPersondocument rename(Table name) { + return new TPersondocument(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPersondocument where(Condition condition) { + return new TPersondocument(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPersondocument where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPersondocument where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPersondocument where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TPersondocument where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TPersondocument where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TPersondocument where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TPersondocument where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPersondocument whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TPersondocument whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TProfile.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TProfile.java index 710bce6..59978f8 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TProfile.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TProfile.java @@ -6,19 +6,31 @@ package de.jottyfan.camporganizer.db.jooq.tables; import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.tables.TCamp.TCampPath; +import de.jottyfan.camporganizer.db.jooq.tables.TCampprofile.TCampprofilePath; +import de.jottyfan.camporganizer.db.jooq.tables.TPerson.TPersonPath; +import de.jottyfan.camporganizer.db.jooq.tables.TProfilerole.TProfilerolePath; import de.jottyfan.camporganizer.db.jooq.tables.records.TProfileRecord; import java.time.LocalDateTime; import java.util.Arrays; +import java.util.Collection; import java.util.List; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row7; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -77,7 +89,7 @@ public class TProfile extends TableImpl { /** * The column camp.t_profile.duedate. */ - public final TableField DUEDATE = createField(DSL.name("duedate"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field("(now() + '1 year'::interval)", SQLDataType.LOCALDATETIME)), this, ""); + public final TableField DUEDATE = createField(DSL.name("duedate"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("(now() + '1 year'::interval)"), SQLDataType.LOCALDATETIME)), this, ""); /** * The column camp.t_profile.uuid. @@ -85,11 +97,11 @@ public class TProfile extends TableImpl { public final TableField UUID = createField(DSL.name("uuid"), SQLDataType.CLOB.nullable(false), this, ""); private TProfile(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private TProfile(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + private TProfile(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -113,8 +125,35 @@ public class TProfile extends TableImpl { this(DSL.name("t_profile"), null); } - public TProfile(Table child, ForeignKey key) { - super(child, key, T_PROFILE); + public TProfile(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_PROFILE); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TProfilePath extends TProfile implements Path { + public TProfilePath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TProfilePath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TProfilePath as(String alias) { + return new TProfilePath(DSL.name(alias), this); + } + + @Override + public TProfilePath as(Name alias) { + return new TProfilePath(alias, this); + } + + @Override + public TProfilePath as(Table alias) { + return new TProfilePath(alias.getQualifiedName(), this); + } } @Override @@ -137,6 +176,70 @@ public class TProfile extends TableImpl { return Arrays.asList(Keys.T_PROFILE_USERNAME_KEY, Keys.T_PROFILE_UUID_KEY); } + private transient TCampPath _tCamp; + + /** + * Get the implicit to-many join path to the camp.t_camp table + */ + public TCampPath tCamp() { + if (_tCamp == null) + _tCamp = new TCampPath(this, null, Keys.T_CAMP__T_CAMP_FK_PROFILE_FKEY.getInverseKey()); + + return _tCamp; + } + + private transient TCampprofilePath _tCampprofile; + + /** + * Get the implicit to-many join path to the camp.t_campprofile + * table + */ + public TCampprofilePath tCampprofile() { + if (_tCampprofile == null) + _tCampprofile = new TCampprofilePath(this, null, Keys.T_CAMPPROFILE__T_CAMPPROFILE_FK_PROFILE_FKEY.getInverseKey()); + + return _tCampprofile; + } + + private transient TPersonPath _tPersonFkProfileFkey; + + /** + * Get the implicit to-many join path to the camp.t_person + * table, via the t_person_fk_profile_fkey key + */ + public TPersonPath tPersonFkProfileFkey() { + if (_tPersonFkProfileFkey == null) + _tPersonFkProfileFkey = new TPersonPath(this, null, Keys.T_PERSON__T_PERSON_FK_PROFILE_FKEY.getInverseKey()); + + return _tPersonFkProfileFkey; + } + + private transient TPersonPath _tPersonFkRegistratorFkey; + + /** + * Get the implicit to-many join path to the camp.t_person + * table, via the t_person_fk_registrator_fkey key + */ + public TPersonPath tPersonFkRegistratorFkey() { + if (_tPersonFkRegistratorFkey == null) + _tPersonFkRegistratorFkey = new TPersonPath(this, null, Keys.T_PERSON__T_PERSON_FK_REGISTRATOR_FKEY.getInverseKey()); + + return _tPersonFkRegistratorFkey; + } + + private transient TProfilerolePath _tProfilerole; + + /** + * Get the implicit to-many join path to the camp.t_profilerole + * table + */ + public TProfilerolePath tProfilerole() { + if (_tProfilerole == null) + _tProfilerole = new TProfilerolePath(this, null, Keys.T_PROFILEROLE__T_PROFILEROLE_FK_PROFILE_FKEY.getInverseKey()); + + return _tProfilerole; + } + @Override public TProfile as(String alias) { return new TProfile(DSL.name(alias), this); @@ -147,6 +250,11 @@ public class TProfile extends TableImpl { return new TProfile(alias, this); } + @Override + public TProfile as(Table alias) { + return new TProfile(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -163,12 +271,95 @@ public class TProfile extends TableImpl { return new TProfile(name, null); } - // ------------------------------------------------------------------------- - // Row7 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row7 fieldsRow() { - return (Row7) super.fieldsRow(); + public TProfile rename(Table name) { + return new TProfile(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TProfile where(Condition condition) { + return new TProfile(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TProfile where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TProfile where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TProfile where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TProfile where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TProfile where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TProfile where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TProfile where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TProfile whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TProfile whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TProfilerole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TProfilerole.java index 4facf8a..d1ecfcf 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TProfilerole.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TProfilerole.java @@ -7,17 +7,26 @@ package de.jottyfan.camporganizer.db.jooq.tables; import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; import de.jottyfan.camporganizer.db.jooq.enums.EnumRole; +import de.jottyfan.camporganizer.db.jooq.tables.TProfile.TProfilePath; import de.jottyfan.camporganizer.db.jooq.tables.records.TProfileroleRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row2; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -56,14 +65,14 @@ public class TProfilerole extends TableImpl { /** * The column camp.t_profilerole.role. */ - public final TableField ROLE = createField(DSL.name("role"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumRole.class), this, ""); + public final TableField ROLE = createField(DSL.name("role"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(EnumRole.class), this, ""); private TProfilerole(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private TProfilerole(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + private TProfilerole(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -87,8 +96,35 @@ public class TProfilerole extends TableImpl { this(DSL.name("t_profilerole"), null); } - public TProfilerole(Table child, ForeignKey key) { - super(child, key, T_PROFILEROLE); + public TProfilerole(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_PROFILEROLE); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TProfilerolePath extends TProfilerole implements Path { + public TProfilerolePath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TProfilerolePath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TProfilerolePath as(String alias) { + return new TProfilerolePath(DSL.name(alias), this); + } + + @Override + public TProfilerolePath as(Name alias) { + return new TProfilerolePath(alias, this); + } + + @Override + public TProfilerolePath as(Table alias) { + return new TProfilerolePath(alias.getQualifiedName(), this); + } } @Override @@ -106,14 +142,14 @@ public class TProfilerole extends TableImpl { return Arrays.asList(Keys.T_PROFILEROLE__T_PROFILEROLE_FK_PROFILE_FKEY); } - private transient TProfile _tProfile; + private transient TProfilePath _tProfile; /** * Get the implicit join path to the camp.t_profile table. */ - public TProfile tProfile() { + public TProfilePath tProfile() { if (_tProfile == null) - _tProfile = new TProfile(this, Keys.T_PROFILEROLE__T_PROFILEROLE_FK_PROFILE_FKEY); + _tProfile = new TProfilePath(this, Keys.T_PROFILEROLE__T_PROFILEROLE_FK_PROFILE_FKEY, null); return _tProfile; } @@ -128,6 +164,11 @@ public class TProfilerole extends TableImpl { return new TProfilerole(alias, this); } + @Override + public TProfilerole as(Table alias) { + return new TProfilerole(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -144,12 +185,95 @@ public class TProfilerole extends TableImpl { return new TProfilerole(name, null); } - // ------------------------------------------------------------------------- - // Row2 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); + public TProfilerole rename(Table name) { + return new TProfilerole(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TProfilerole where(Condition condition) { + return new TProfilerole(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TProfilerole where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TProfilerole where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TProfilerole where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TProfilerole where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TProfilerole where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TProfilerole where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TProfilerole where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TProfilerole whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TProfilerole whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TRss.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TRss.java index 9c91b1c..184cd15 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TRss.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TRss.java @@ -9,14 +9,18 @@ import de.jottyfan.camporganizer.db.jooq.Keys; import de.jottyfan.camporganizer.db.jooq.tables.records.TRssRecord; import java.time.LocalDateTime; +import java.util.Collection; +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Identity; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row4; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -55,7 +59,7 @@ public class TRss extends TableImpl { /** * The column camp.t_rss.regdate. */ - public final TableField REGDATE = createField(DSL.name("regdate"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field("now()", SQLDataType.LOCALDATETIME)), this, ""); + public final TableField REGDATE = createField(DSL.name("regdate"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.LOCALDATETIME)), this, ""); /** * The column camp.t_rss.recipient. @@ -68,11 +72,11 @@ public class TRss extends TableImpl { public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); private TRss(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private TRss(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + private TRss(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -96,10 +100,6 @@ public class TRss extends TableImpl { this(DSL.name("t_rss"), null); } - public TRss(Table child, ForeignKey key) { - super(child, key, T_RSS); - } - @Override public Schema getSchema() { return aliased() ? null : Camp.CAMP; @@ -125,6 +125,11 @@ public class TRss extends TableImpl { return new TRss(alias, this); } + @Override + public TRss as(Table alias) { + return new TRss(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -141,12 +146,95 @@ public class TRss extends TableImpl { return new TRss(name, null); } - // ------------------------------------------------------------------------- - // Row4 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); + public TRss rename(Table name) { + return new TRss(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TRss where(Condition condition) { + return new TRss(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TRss where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TRss where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TRss where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TRss where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TRss where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TRss where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TRss where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TRss whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TRss whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSales.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSales.java index 412c488..a30051f 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSales.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSales.java @@ -6,20 +6,29 @@ package de.jottyfan.camporganizer.db.jooq.tables; import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; +import de.jottyfan.camporganizer.db.jooq.tables.TCamp.TCampPath; import de.jottyfan.camporganizer.db.jooq.tables.records.TSalesRecord; import java.math.BigDecimal; import java.time.LocalDateTime; import java.util.Arrays; +import java.util.Collection; import java.util.List; +import org.jooq.Condition; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; +import org.jooq.InverseForeignKey; import org.jooq.Name; +import org.jooq.Path; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; import org.jooq.Record; -import org.jooq.Row11; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -106,11 +115,11 @@ public class TSales extends TableImpl { public final TableField RECIPEFILENAME = createField(DSL.name("recipefilename"), SQLDataType.CLOB, this, ""); private TSales(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private TSales(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + private TSales(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -134,8 +143,35 @@ public class TSales extends TableImpl { this(DSL.name("t_sales"), null); } - public TSales(Table child, ForeignKey key) { - super(child, key, T_SALES); + public TSales(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath, T_SALES); + } + + /** + * A subtype implementing {@link Path} for simplified path-based joins. + */ + public static class TSalesPath extends TSales implements Path { + public TSalesPath(Table path, ForeignKey childPath, InverseForeignKey parentPath) { + super(path, childPath, parentPath); + } + private TSalesPath(Name alias, Table aliased) { + super(alias, aliased); + } + + @Override + public TSalesPath as(String alias) { + return new TSalesPath(DSL.name(alias), this); + } + + @Override + public TSalesPath as(Name alias) { + return new TSalesPath(alias, this); + } + + @Override + public TSalesPath as(Table alias) { + return new TSalesPath(alias.getQualifiedName(), this); + } } @Override @@ -158,14 +194,14 @@ public class TSales extends TableImpl { return Arrays.asList(Keys.T_SALES__T_SALES_FK_CAMP_FKEY); } - private transient TCamp _tCamp; + private transient TCampPath _tCamp; /** * Get the implicit join path to the camp.t_camp table. */ - public TCamp tCamp() { + public TCampPath tCamp() { if (_tCamp == null) - _tCamp = new TCamp(this, Keys.T_SALES__T_SALES_FK_CAMP_FKEY); + _tCamp = new TCampPath(this, Keys.T_SALES__T_SALES_FK_CAMP_FKEY, null); return _tCamp; } @@ -180,6 +216,11 @@ public class TSales extends TableImpl { return new TSales(alias, this); } + @Override + public TSales as(Table alias) { + return new TSales(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -196,12 +237,95 @@ public class TSales extends TableImpl { return new TSales(name, null); } - // ------------------------------------------------------------------------- - // Row11 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row11 fieldsRow() { - return (Row11) super.fieldsRow(); + public TSales rename(Table name) { + return new TSales(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSales where(Condition condition) { + return new TSales(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSales where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSales where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSales where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TSales where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TSales where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TSales where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TSales where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSales whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSales whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalescontent.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalescontent.java index 2a2e127..c215f2a 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalescontent.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalescontent.java @@ -9,14 +9,18 @@ import de.jottyfan.camporganizer.db.jooq.Keys; import de.jottyfan.camporganizer.db.jooq.tables.records.TSalescontentRecord; import java.util.Arrays; +import java.util.Collection; import java.util.List; +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row2; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -58,11 +62,11 @@ public class TSalescontent extends TableImpl { public final TableField FK_SALESCONTENTTYPE = createField(DSL.name("fk_salescontenttype"), SQLDataType.CLOB.nullable(false), this, ""); private TSalescontent(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private TSalescontent(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + private TSalescontent(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -86,10 +90,6 @@ public class TSalescontent extends TableImpl { this(DSL.name("t_salescontent"), null); } - public TSalescontent(Table child, ForeignKey key) { - super(child, key, T_SALESCONTENT); - } - @Override public Schema getSchema() { return aliased() ? null : Camp.CAMP; @@ -110,6 +110,11 @@ public class TSalescontent extends TableImpl { return new TSalescontent(alias, this); } + @Override + public TSalescontent as(Table alias) { + return new TSalescontent(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -126,12 +131,95 @@ public class TSalescontent extends TableImpl { return new TSalescontent(name, null); } - // ------------------------------------------------------------------------- - // Row2 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); + public TSalescontent rename(Table name) { + return new TSalescontent(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSalescontent where(Condition condition) { + return new TSalescontent(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSalescontent where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSalescontent where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSalescontent where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TSalescontent where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TSalescontent where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TSalescontent where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TSalescontent where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSalescontent whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSalescontent whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalescontenttype.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalescontenttype.java index a3a02cf..ed05e47 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalescontenttype.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalescontenttype.java @@ -8,12 +8,17 @@ import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.Keys; import de.jottyfan.camporganizer.db.jooq.tables.records.TSalescontenttypeRecord; +import java.util.Collection; + +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row1; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -50,11 +55,11 @@ public class TSalescontenttype extends TableImpl { public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, ""); private TSalescontenttype(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private TSalescontenttype(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + private TSalescontenttype(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); } /** @@ -78,10 +83,6 @@ public class TSalescontenttype extends TableImpl { this(DSL.name("t_salescontenttype"), null); } - public TSalescontenttype(Table child, ForeignKey key) { - super(child, key, T_SALESCONTENTTYPE); - } - @Override public Schema getSchema() { return aliased() ? null : Camp.CAMP; @@ -102,6 +103,11 @@ public class TSalescontenttype extends TableImpl { return new TSalescontenttype(alias, this); } + @Override + public TSalescontenttype as(Table alias) { + return new TSalescontenttype(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -118,12 +124,95 @@ public class TSalescontenttype extends TableImpl { return new TSalescontenttype(name, null); } - // ------------------------------------------------------------------------- - // Row1 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row1 fieldsRow() { - return (Row1) super.fieldsRow(); + public TSalescontenttype rename(Table name) { + return new TSalescontenttype(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSalescontenttype where(Condition condition) { + return new TSalescontenttype(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSalescontenttype where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSalescontenttype where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSalescontenttype where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TSalescontenttype where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TSalescontenttype where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TSalescontenttype where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public TSalescontenttype where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSalescontenttype whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public TSalescontenttype whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalesprofile.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalesprofile.java deleted file mode 100644 index 30960a2..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/TSalesprofile.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package de.jottyfan.camporganizer.db.jooq.tables; - - -import de.jottyfan.camporganizer.db.jooq.Camp; -import de.jottyfan.camporganizer.db.jooq.Keys; -import de.jottyfan.camporganizer.db.jooq.tables.records.TSalesprofileRecord; - -import java.util.Arrays; -import java.util.List; - -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Identity; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row3; -import org.jooq.Schema; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.TableOptions; -import org.jooq.UniqueKey; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TSalesprofile extends TableImpl { - - private static final long serialVersionUID = 1L; - - /** - * The reference instance of camp.t_salesprofile - */ - public static final TSalesprofile T_SALESPROFILE = new TSalesprofile(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return TSalesprofileRecord.class; - } - - /** - * The column camp.t_salesprofile.pk. - */ - public final TableField PK = createField(DSL.name("pk"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); - - /** - * The column camp.t_salesprofile.fk_camp. - */ - public final TableField FK_CAMP = createField(DSL.name("fk_camp"), SQLDataType.INTEGER.nullable(false), this, ""); - - /** - * The column camp.t_salesprofile.fk_profile. - */ - public final TableField FK_PROFILE = createField(DSL.name("fk_profile"), SQLDataType.INTEGER.nullable(false), this, ""); - - private TSalesprofile(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private TSalesprofile(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); - } - - /** - * Create an aliased camp.t_salesprofile table reference - */ - public TSalesprofile(String alias) { - this(DSL.name(alias), T_SALESPROFILE); - } - - /** - * Create an aliased camp.t_salesprofile table reference - */ - public TSalesprofile(Name alias) { - this(alias, T_SALESPROFILE); - } - - /** - * Create a camp.t_salesprofile table reference - */ - public TSalesprofile() { - this(DSL.name("t_salesprofile"), null); - } - - public TSalesprofile(Table child, ForeignKey key) { - super(child, key, T_SALESPROFILE); - } - - @Override - public Schema getSchema() { - return aliased() ? null : Camp.CAMP; - } - - @Override - public Identity getIdentity() { - return (Identity) super.getIdentity(); - } - - @Override - public UniqueKey getPrimaryKey() { - return Keys.T_SALESPROFILE_PKEY; - } - - @Override - public List> getUniqueKeys() { - return Arrays.asList(Keys.T_SALESPROFILE_FK_CAMP_FK_PROFILE_KEY); - } - - @Override - public List> getReferences() { - return Arrays.asList(Keys.T_SALESPROFILE__T_SALESPROFILE_FK_CAMP_FKEY, Keys.T_SALESPROFILE__T_SALESPROFILE_FK_PROFILE_FKEY); - } - - private transient TCamp _tCamp; - private transient TProfile _tProfile; - - /** - * Get the implicit join path to the camp.t_camp table. - */ - public TCamp tCamp() { - if (_tCamp == null) - _tCamp = new TCamp(this, Keys.T_SALESPROFILE__T_SALESPROFILE_FK_CAMP_FKEY); - - return _tCamp; - } - - /** - * Get the implicit join path to the camp.t_profile table. - */ - public TProfile tProfile() { - if (_tProfile == null) - _tProfile = new TProfile(this, Keys.T_SALESPROFILE__T_SALESPROFILE_FK_PROFILE_FKEY); - - return _tProfile; - } - - @Override - public TSalesprofile as(String alias) { - return new TSalesprofile(DSL.name(alias), this); - } - - @Override - public TSalesprofile as(Name alias) { - return new TSalesprofile(alias, this); - } - - /** - * Rename this table - */ - @Override - public TSalesprofile rename(String name) { - return new TSalesprofile(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public TSalesprofile rename(Name name) { - return new TSalesprofile(name, null); - } - - // ------------------------------------------------------------------------- - // Row3 type methods - // ------------------------------------------------------------------------- - - @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); - } -} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VAdult.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VAdult.java deleted file mode 100644 index 227f286..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VAdult.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package de.jottyfan.camporganizer.db.jooq.tables; - - -import de.jottyfan.camporganizer.db.jooq.Camp; -import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; -import de.jottyfan.camporganizer.db.jooq.tables.records.VAdultRecord; - -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row5; -import org.jooq.Schema; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.TableOptions; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; -import org.jooq.types.YearToSecond; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VAdult extends TableImpl { - - private static final long serialVersionUID = 1L; - - /** - * The reference instance of camp.v_adult - */ - public static final VAdult V_ADULT = new VAdult(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return VAdultRecord.class; - } - - /** - * The column camp.v_adult.age. - */ - public final TableField AGE = createField(DSL.name("age"), SQLDataType.INTERVAL, this, ""); - - /** - * The column camp.v_adult.forename. - */ - public final TableField FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB, this, ""); - - /** - * The column camp.v_adult.surname. - */ - public final TableField SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB, this, ""); - - /** - * The column camp.v_adult.camprole. - */ - public final TableField CAMPROLE = createField(DSL.name("camprole"), SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole.class), this, ""); - - /** - * The column camp.v_adult.adult. - */ - public final TableField ADULT = createField(DSL.name("adult"), SQLDataType.BOOLEAN, this, ""); - - private VAdult(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private VAdult(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view()); - } - - /** - * Create an aliased camp.v_adult table reference - */ - public VAdult(String alias) { - this(DSL.name(alias), V_ADULT); - } - - /** - * Create an aliased camp.v_adult table reference - */ - public VAdult(Name alias) { - this(alias, V_ADULT); - } - - /** - * Create a camp.v_adult table reference - */ - public VAdult() { - this(DSL.name("v_adult"), null); - } - - public VAdult(Table child, ForeignKey key) { - super(child, key, V_ADULT); - } - - @Override - public Schema getSchema() { - return aliased() ? null : Camp.CAMP; - } - - @Override - public VAdult as(String alias) { - return new VAdult(DSL.name(alias), this); - } - - @Override - public VAdult as(Name alias) { - return new VAdult(alias, this); - } - - /** - * Rename this table - */ - @Override - public VAdult rename(String name) { - return new VAdult(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public VAdult rename(Name name) { - return new VAdult(name, null); - } - - // ------------------------------------------------------------------------- - // Row5 type methods - // ------------------------------------------------------------------------- - - @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); - } -} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VBudget.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VBudget.java index a25f485..9a4da1f 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VBudget.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VBudget.java @@ -8,13 +8,17 @@ import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.tables.records.VBudgetRecord; import java.math.BigDecimal; +import java.util.Collection; +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row5; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -70,11 +74,19 @@ public class VBudget extends TableImpl { public final TableField YEAR = createField(DSL.name("year"), SQLDataType.DOUBLE, this, ""); private VBudget(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private VBudget(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view()); + private VBudget(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" + create view "v_budget" as SELECT sum(cash) AS budget, + fk_camp, + name, + location, + year + FROM camp.v_sales + GROUP BY fk_camp, name, location, year; + """), where); } /** @@ -98,10 +110,6 @@ public class VBudget extends TableImpl { this(DSL.name("v_budget"), null); } - public VBudget(Table child, ForeignKey key) { - super(child, key, V_BUDGET); - } - @Override public Schema getSchema() { return aliased() ? null : Camp.CAMP; @@ -117,6 +125,11 @@ public class VBudget extends TableImpl { return new VBudget(alias, this); } + @Override + public VBudget as(Table alias) { + return new VBudget(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -133,12 +146,95 @@ public class VBudget extends TableImpl { return new VBudget(name, null); } - // ------------------------------------------------------------------------- - // Row5 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); + public VBudget rename(Table name) { + return new VBudget(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VBudget where(Condition condition) { + return new VBudget(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VBudget where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VBudget where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VBudget where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VBudget where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VBudget where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VBudget where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VBudget where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VBudget whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VBudget whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCamp.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCamp.java index 313d0c4..b7617cb 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCamp.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCamp.java @@ -8,13 +8,17 @@ import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.tables.records.VCampRecord; import java.time.LocalDateTime; +import java.util.Collection; +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row13; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -110,11 +114,27 @@ public class VCamp extends TableImpl { public final TableField FK_DOCUMENT = createField(DSL.name("fk_document"), SQLDataType.INTEGER, this, ""); private VCamp(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private VCamp(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view()); + private VCamp(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" + create view "v_camp" as SELECT c.pk, + (c.depart < now()) AS is_over, + c.name, + c.arrive, + c.depart, + date_part('isoyear'::text, c.arrive) AS year, + l.name AS location_name, + c.min_age, + c.max_age, + l.url, + c.price, + c.countries, + c.fk_document + FROM (camp.t_camp c + LEFT JOIN camp.t_location l ON ((c.fk_location = l.pk))); + """), where); } /** @@ -138,10 +158,6 @@ public class VCamp extends TableImpl { this(DSL.name("v_camp"), null); } - public VCamp(Table child, ForeignKey key) { - super(child, key, V_CAMP); - } - @Override public Schema getSchema() { return aliased() ? null : Camp.CAMP; @@ -157,6 +173,11 @@ public class VCamp extends TableImpl { return new VCamp(alias, this); } + @Override + public VCamp as(Table alias) { + return new VCamp(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -173,12 +194,95 @@ public class VCamp extends TableImpl { return new VCamp(name, null); } - // ------------------------------------------------------------------------- - // Row13 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row13 fieldsRow() { - return (Row13) super.fieldsRow(); + public VCamp rename(Table name) { + return new VCamp(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCamp where(Condition condition) { + return new VCamp(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCamp where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCamp where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCamp where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCamp where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCamp where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCamp where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCamp where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCamp whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCamp whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampBudget.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampBudget.java index 8ab7240..bd81040 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampBudget.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampBudget.java @@ -8,13 +8,17 @@ import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.tables.records.VCampBudgetRecord; import java.math.BigDecimal; +import java.util.Collection; +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row4; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -65,11 +69,29 @@ public class VCampBudget extends TableImpl { public final TableField YEAR = createField(DSL.name("year"), SQLDataType.DOUBLE, this, ""); private VCampBudget(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private VCampBudget(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view()); + private VCampBudget(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" + create view "v_camp_budget" as WITH x(money, camp) AS ( + SELECT COALESCE(t_person.paid, 0.0) AS cash, + t_person.fk_camp + FROM camp.t_person + UNION ALL + SELECT (t_sales.cash * ('-1'::integer)::numeric), + t_sales.fk_camp + FROM camp.t_sales + ) + SELECT sum(x.money) AS budget, + c.pk AS fk_camp, + c.name AS camp_name, + date_part('year'::text, c.arrive) AS year + FROM (x + LEFT JOIN camp.t_camp c ON ((c.pk = x.camp))) + GROUP BY c.pk, c.name, c.arrive + ORDER BY c.arrive; + """), where); } /** @@ -93,10 +115,6 @@ public class VCampBudget extends TableImpl { this(DSL.name("v_camp_budget"), null); } - public VCampBudget(Table child, ForeignKey key) { - super(child, key, V_CAMP_BUDGET); - } - @Override public Schema getSchema() { return aliased() ? null : Camp.CAMP; @@ -112,6 +130,11 @@ public class VCampBudget extends TableImpl { return new VCampBudget(alias, this); } + @Override + public VCampBudget as(Table alias) { + return new VCampBudget(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -128,12 +151,95 @@ public class VCampBudget extends TableImpl { return new VCampBudget(name, null); } - // ------------------------------------------------------------------------- - // Row4 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); + public VCampBudget rename(Table name) { + return new VCampBudget(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampBudget where(Condition condition) { + return new VCampBudget(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampBudget where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampBudget where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampBudget where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCampBudget where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCampBudget where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCampBudget where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCampBudget where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampBudget whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampBudget whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampBudgetYear.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampBudgetYear.java index a1fdf3a..4038c66 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampBudgetYear.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampBudgetYear.java @@ -8,13 +8,17 @@ import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.tables.records.VCampBudgetYearRecord; import java.math.BigDecimal; +import java.util.Collection; +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row2; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -55,11 +59,17 @@ public class VCampBudgetYear extends TableImpl { public final TableField YEAR = createField(DSL.name("year"), SQLDataType.DOUBLE, this, ""); private VCampBudgetYear(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private VCampBudgetYear(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view()); + private VCampBudgetYear(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" + create view "v_camp_budget_year" as SELECT sum(budget) AS sum, + year + FROM camp.v_camp_budget + GROUP BY year + ORDER BY year; + """), where); } /** @@ -83,10 +93,6 @@ public class VCampBudgetYear extends TableImpl { this(DSL.name("v_camp_budget_year"), null); } - public VCampBudgetYear(Table child, ForeignKey key) { - super(child, key, V_CAMP_BUDGET_YEAR); - } - @Override public Schema getSchema() { return aliased() ? null : Camp.CAMP; @@ -102,6 +108,11 @@ public class VCampBudgetYear extends TableImpl { return new VCampBudgetYear(alias, this); } + @Override + public VCampBudgetYear as(Table alias) { + return new VCampBudgetYear(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -118,12 +129,95 @@ public class VCampBudgetYear extends TableImpl { return new VCampBudgetYear(name, null); } - // ------------------------------------------------------------------------- - // Row2 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); + public VCampBudgetYear rename(Table name) { + return new VCampBudgetYear(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampBudgetYear where(Condition condition) { + return new VCampBudgetYear(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampBudgetYear where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampBudgetYear where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampBudgetYear where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCampBudgetYear where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCampBudgetYear where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCampBudgetYear where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCampBudgetYear where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampBudgetYear whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampBudgetYear whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampdocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampdocument.java index b4e84ed..30ae7a6 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampdocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCampdocument.java @@ -10,13 +10,17 @@ import de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype; import de.jottyfan.camporganizer.db.jooq.tables.records.VCampdocumentRecord; import java.time.LocalDateTime; +import java.util.Collection; +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row8; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -79,19 +83,31 @@ public class VCampdocument extends TableImpl { /** * The column camp.v_campdocument.doctype. */ - public final TableField DOCTYPE = createField(DSL.name("doctype"), SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumDocument.class), this, ""); + public final TableField DOCTYPE = createField(DSL.name("doctype"), SQLDataType.VARCHAR.asEnumDataType(EnumDocument.class), this, ""); /** * The column camp.v_campdocument.filetype. */ - public final TableField FILETYPE = createField(DSL.name("filetype"), SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype.class), this, ""); + public final TableField FILETYPE = createField(DSL.name("filetype"), SQLDataType.VARCHAR.asEnumDataType(EnumFiletype.class), this, ""); private VCampdocument(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private VCampdocument(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view()); + private VCampdocument(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" + create view "v_campdocument" as SELECT cd.fk_camp, + c.name AS campname, + c.arrive, + cd.fk_document, + d.document, + d.name AS documentname, + d.doctype, + d.filetype + FROM ((camp.t_campdocument cd + LEFT JOIN camp.t_camp c ON ((c.pk = cd.fk_camp))) + LEFT JOIN camp.t_document d ON ((d.pk = cd.fk_document))); + """), where); } /** @@ -115,10 +131,6 @@ public class VCampdocument extends TableImpl { this(DSL.name("v_campdocument"), null); } - public VCampdocument(Table child, ForeignKey key) { - super(child, key, V_CAMPDOCUMENT); - } - @Override public Schema getSchema() { return aliased() ? null : Camp.CAMP; @@ -134,6 +146,11 @@ public class VCampdocument extends TableImpl { return new VCampdocument(alias, this); } + @Override + public VCampdocument as(Table alias) { + return new VCampdocument(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -150,12 +167,95 @@ public class VCampdocument extends TableImpl { return new VCampdocument(name, null); } - // ------------------------------------------------------------------------- - // Row8 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row8 fieldsRow() { - return (Row8) super.fieldsRow(); + public VCampdocument rename(Table name) { + return new VCampdocument(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampdocument where(Condition condition) { + return new VCampdocument(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampdocument where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampdocument where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampdocument where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCampdocument where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCampdocument where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCampdocument where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCampdocument where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampdocument whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCampdocument whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCamprole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCamprole.java index a12884f..10fe272 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCamprole.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VCamprole.java @@ -8,12 +8,17 @@ import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; import de.jottyfan.camporganizer.db.jooq.tables.records.VCamproleRecord; +import java.util.Collection; + +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row1; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -46,14 +51,16 @@ public class VCamprole extends TableImpl { /** * The column camp.v_camprole.name. */ - public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole.class), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR.asEnumDataType(EnumCamprole.class), this, ""); private VCamprole(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private VCamprole(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view()); + private VCamprole(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" + create view "v_camprole" as SELECT unnest(enum_range(NULL::camp.enum_camprole)) AS name; + """), where); } /** @@ -77,10 +84,6 @@ public class VCamprole extends TableImpl { this(DSL.name("v_camprole"), null); } - public VCamprole(Table child, ForeignKey key) { - super(child, key, V_CAMPROLE); - } - @Override public Schema getSchema() { return aliased() ? null : Camp.CAMP; @@ -96,6 +99,11 @@ public class VCamprole extends TableImpl { return new VCamprole(alias, this); } + @Override + public VCamprole as(Table alias) { + return new VCamprole(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -112,12 +120,95 @@ public class VCamprole extends TableImpl { return new VCamprole(name, null); } - // ------------------------------------------------------------------------- - // Row1 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row1 fieldsRow() { - return (Row1) super.fieldsRow(); + public VCamprole rename(Table name) { + return new VCamprole(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCamprole where(Condition condition) { + return new VCamprole(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCamprole where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCamprole where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCamprole where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCamprole where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCamprole where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCamprole where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VCamprole where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCamprole whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VCamprole whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VDocument.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VDocument.java index 657d4bb..4c67505 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VDocument.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VDocument.java @@ -9,12 +9,17 @@ import de.jottyfan.camporganizer.db.jooq.enums.EnumDocument; import de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype; import de.jottyfan.camporganizer.db.jooq.tables.records.VDocumentRecord; +import java.util.Collection; + +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row6; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -52,7 +57,7 @@ public class VDocument extends TableImpl { /** * The column camp.v_document.doctype. */ - public final TableField DOCTYPE = createField(DSL.name("doctype"), SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumDocument.class), this, ""); + public final TableField DOCTYPE = createField(DSL.name("doctype"), SQLDataType.VARCHAR.asEnumDataType(EnumDocument.class), this, ""); /** * The column camp.v_document.name. @@ -67,7 +72,7 @@ public class VDocument extends TableImpl { /** * The column camp.v_document.filetype. */ - public final TableField FILETYPE = createField(DSL.name("filetype"), SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype.class), this, ""); + public final TableField FILETYPE = createField(DSL.name("filetype"), SQLDataType.VARCHAR.asEnumDataType(EnumFiletype.class), this, ""); /** * The column camp.v_document.roles. @@ -75,11 +80,21 @@ public class VDocument extends TableImpl { public final TableField ROLES = createField(DSL.name("roles"), SQLDataType.CLOB, this, ""); private VDocument(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private VDocument(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view()); + private VDocument(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" + create view "v_document" as SELECT d.pk, + d.doctype, + d.name, + d.document, + d.filetype, + string_agg((r.camprole)::text, ','::text) AS roles + FROM (camp.t_document d + LEFT JOIN camp.t_documentrole r ON ((r.fk_document = d.pk))) + GROUP BY d.pk, d.doctype, d.name, d.document, d.filetype; + """), where); } /** @@ -103,10 +118,6 @@ public class VDocument extends TableImpl { this(DSL.name("v_document"), null); } - public VDocument(Table child, ForeignKey key) { - super(child, key, V_DOCUMENT); - } - @Override public Schema getSchema() { return aliased() ? null : Camp.CAMP; @@ -122,6 +133,11 @@ public class VDocument extends TableImpl { return new VDocument(alias, this); } + @Override + public VDocument as(Table alias) { + return new VDocument(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -138,12 +154,95 @@ public class VDocument extends TableImpl { return new VDocument(name, null); } - // ------------------------------------------------------------------------- - // Row6 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row6 fieldsRow() { - return (Row6) super.fieldsRow(); + public VDocument rename(Table name) { + return new VDocument(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VDocument where(Condition condition) { + return new VDocument(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VDocument where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VDocument where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VDocument where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VDocument where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VDocument where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VDocument where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VDocument where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VDocument whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VDocument whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VDsgvoDeleteCandidate.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VDsgvoDeleteCandidate.java deleted file mode 100644 index b93ad2a..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VDsgvoDeleteCandidate.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package de.jottyfan.camporganizer.db.jooq.tables; - - -import de.jottyfan.camporganizer.db.jooq.Camp; -import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; -import de.jottyfan.camporganizer.db.jooq.tables.records.VDsgvoDeleteCandidateRecord; - -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row9; -import org.jooq.Schema; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.TableOptions; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; -import org.jooq.types.YearToSecond; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VDsgvoDeleteCandidate extends TableImpl { - - private static final long serialVersionUID = 1L; - - /** - * The reference instance of camp.v_dsgvo_delete_candidate - */ - public static final VDsgvoDeleteCandidate V_DSGVO_DELETE_CANDIDATE = new VDsgvoDeleteCandidate(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return VDsgvoDeleteCandidateRecord.class; - } - - /** - * The column camp.v_dsgvo_delete_candidate.fk_person. - */ - public final TableField FK_PERSON = createField(DSL.name("fk_person"), SQLDataType.INTEGER, this, ""); - - /** - * The column camp.v_dsgvo_delete_candidate.forename. - */ - public final TableField FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB, this, ""); - - /** - * The column camp.v_dsgvo_delete_candidate.surname. - */ - public final TableField SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB, this, ""); - - /** - * The column camp.v_dsgvo_delete_candidate.fk_camp. - */ - public final TableField FK_CAMP = createField(DSL.name("fk_camp"), SQLDataType.INTEGER, this, ""); - - /** - * The column camp.v_dsgvo_delete_candidate.age. - */ - public final TableField AGE = createField(DSL.name("age"), SQLDataType.INTERVAL, this, ""); - - /** - * The column camp.v_dsgvo_delete_candidate.camprole. - */ - public final TableField CAMPROLE = createField(DSL.name("camprole"), SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole.class), this, ""); - - /** - * The column camp.v_dsgvo_delete_candidate.name. - */ - public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); - - /** - * The column camp.v_dsgvo_delete_candidate.year. - */ - public final TableField YEAR = createField(DSL.name("year"), SQLDataType.DOUBLE, this, ""); - - /** - * The column camp.v_dsgvo_delete_candidate.is_over. - */ - public final TableField IS_OVER = createField(DSL.name("is_over"), SQLDataType.BOOLEAN, this, ""); - - private VDsgvoDeleteCandidate(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private VDsgvoDeleteCandidate(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view()); - } - - /** - * Create an aliased camp.v_dsgvo_delete_candidate table - * reference - */ - public VDsgvoDeleteCandidate(String alias) { - this(DSL.name(alias), V_DSGVO_DELETE_CANDIDATE); - } - - /** - * Create an aliased camp.v_dsgvo_delete_candidate table - * reference - */ - public VDsgvoDeleteCandidate(Name alias) { - this(alias, V_DSGVO_DELETE_CANDIDATE); - } - - /** - * Create a camp.v_dsgvo_delete_candidate table reference - */ - public VDsgvoDeleteCandidate() { - this(DSL.name("v_dsgvo_delete_candidate"), null); - } - - public VDsgvoDeleteCandidate(Table child, ForeignKey key) { - super(child, key, V_DSGVO_DELETE_CANDIDATE); - } - - @Override - public Schema getSchema() { - return aliased() ? null : Camp.CAMP; - } - - @Override - public VDsgvoDeleteCandidate as(String alias) { - return new VDsgvoDeleteCandidate(DSL.name(alias), this); - } - - @Override - public VDsgvoDeleteCandidate as(Name alias) { - return new VDsgvoDeleteCandidate(alias, this); - } - - /** - * Rename this table - */ - @Override - public VDsgvoDeleteCandidate rename(String name) { - return new VDsgvoDeleteCandidate(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public VDsgvoDeleteCandidate rename(Name name) { - return new VDsgvoDeleteCandidate(name, null); - } - - // ------------------------------------------------------------------------- - // Row9 type methods - // ------------------------------------------------------------------------- - - @Override - public Row9 fieldsRow() { - return (Row9) super.fieldsRow(); - } -} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VFeeder.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VFeeder.java deleted file mode 100644 index 32d07e0..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VFeeder.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package de.jottyfan.camporganizer.db.jooq.tables; - - -import de.jottyfan.camporganizer.db.jooq.Camp; -import de.jottyfan.camporganizer.db.jooq.enums.EnumSex; -import de.jottyfan.camporganizer.db.jooq.tables.records.VFeederRecord; - -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row11; -import org.jooq.Schema; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.TableOptions; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; -import org.jooq.types.YearToSecond; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VFeeder extends TableImpl { - - private static final long serialVersionUID = 1L; - - /** - * The reference instance of camp.v_feeder - */ - public static final VFeeder V_FEEDER = new VFeeder(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return VFeederRecord.class; - } - - /** - * The column camp.v_feeder.forename. - */ - public final TableField FORENAME = createField(DSL.name("forename"), SQLDataType.CLOB, this, ""); - - /** - * The column camp.v_feeder.surname. - */ - public final TableField SURNAME = createField(DSL.name("surname"), SQLDataType.CLOB, this, ""); - - /** - * The column camp.v_feeder.street. - */ - public final TableField STREET = createField(DSL.name("street"), SQLDataType.CLOB, this, ""); - - /** - * The column camp.v_feeder.zip. - */ - public final TableField ZIP = createField(DSL.name("zip"), SQLDataType.CLOB, this, ""); - - /** - * The column camp.v_feeder.city. - */ - public final TableField CITY = createField(DSL.name("city"), SQLDataType.CLOB, this, ""); - - /** - * The column camp.v_feeder.phone. - */ - public final TableField PHONE = createField(DSL.name("phone"), SQLDataType.CLOB, this, ""); - - /** - * The column camp.v_feeder.age. - */ - public final TableField AGE = createField(DSL.name("age"), SQLDataType.INTERVAL, this, ""); - - /** - * The column camp.v_feeder.email. - */ - public final TableField EMAIL = createField(DSL.name("email"), SQLDataType.CLOB, this, ""); - - /** - * The column camp.v_feeder.sex. - */ - public final TableField SEX = createField(DSL.name("sex"), SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumSex.class), this, ""); - - /** - * The column camp.v_feeder.name. - */ - public final TableField NAME = createField(DSL.name("name"), SQLDataType.CLOB, this, ""); - - /** - * The column camp.v_feeder.year. - */ - public final TableField YEAR = createField(DSL.name("year"), SQLDataType.DOUBLE, this, ""); - - private VFeeder(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private VFeeder(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view()); - } - - /** - * Create an aliased camp.v_feeder table reference - */ - public VFeeder(String alias) { - this(DSL.name(alias), V_FEEDER); - } - - /** - * Create an aliased camp.v_feeder table reference - */ - public VFeeder(Name alias) { - this(alias, V_FEEDER); - } - - /** - * Create a camp.v_feeder table reference - */ - public VFeeder() { - this(DSL.name("v_feeder"), null); - } - - public VFeeder(Table child, ForeignKey key) { - super(child, key, V_FEEDER); - } - - @Override - public Schema getSchema() { - return aliased() ? null : Camp.CAMP; - } - - @Override - public VFeeder as(String alias) { - return new VFeeder(DSL.name(alias), this); - } - - @Override - public VFeeder as(Name alias) { - return new VFeeder(alias, this); - } - - /** - * Rename this table - */ - @Override - public VFeeder rename(String name) { - return new VFeeder(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public VFeeder rename(Name name) { - return new VFeeder(name, null); - } - - // ------------------------------------------------------------------------- - // Row11 type methods - // ------------------------------------------------------------------------- - - @Override - public Row11 fieldsRow() { - return (Row11) super.fieldsRow(); - } -} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VProfile.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VProfile.java index 748aed6..456f99f 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VProfile.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VProfile.java @@ -8,12 +8,17 @@ import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.enums.EnumRole; import de.jottyfan.camporganizer.db.jooq.tables.records.VProfileRecord; +import java.util.Collection; + +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row7; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -76,14 +81,26 @@ public class VProfile extends TableImpl { /** * The column camp.v_profile.roles. */ - public final TableField ROLES = createField(DSL.name("roles"), SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumRole.class).getArrayDataType(), this, ""); + public final TableField ROLES = createField(DSL.name("roles"), SQLDataType.VARCHAR.asEnumDataType(EnumRole.class).array(), this, ""); private VProfile(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private VProfile(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view()); + private VProfile(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" + create view "v_profile" as SELECT t_profile.pk, + t_profile.forename, + t_profile.surname, + t_profile.username, + t_profile.password, + t_profile.uuid, + array_agg(t_profilerole.role) AS roles + FROM (camp.t_profile + LEFT JOIN camp.t_profilerole ON ((t_profilerole.fk_profile = t_profile.pk))) + WHERE (t_profile.duedate > now()) + GROUP BY t_profile.pk, t_profile.forename, t_profile.surname, t_profile.username, t_profile.password; + """), where); } /** @@ -107,10 +124,6 @@ public class VProfile extends TableImpl { this(DSL.name("v_profile"), null); } - public VProfile(Table child, ForeignKey key) { - super(child, key, V_PROFILE); - } - @Override public Schema getSchema() { return aliased() ? null : Camp.CAMP; @@ -126,6 +139,11 @@ public class VProfile extends TableImpl { return new VProfile(alias, this); } + @Override + public VProfile as(Table alias) { + return new VProfile(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -142,12 +160,95 @@ public class VProfile extends TableImpl { return new VProfile(name, null); } - // ------------------------------------------------------------------------- - // Row7 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row7 fieldsRow() { - return (Row7) super.fieldsRow(); + public VProfile rename(Table name) { + return new VProfile(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VProfile where(Condition condition) { + return new VProfile(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VProfile where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VProfile where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VProfile where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VProfile where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VProfile where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VProfile where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VProfile where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VProfile whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VProfile whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VRegistration.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VRegistration.java index d396d26..8b1cd88 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VRegistration.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VRegistration.java @@ -9,13 +9,17 @@ import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; import de.jottyfan.camporganizer.db.jooq.tables.records.VRegistrationRecord; import java.time.LocalDate; +import java.util.Collection; +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row11; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -88,7 +92,7 @@ public class VRegistration extends TableImpl { /** * The column camp.v_registration.camprole. */ - public final TableField CAMPROLE = createField(DSL.name("camprole"), SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole.class), this, ""); + public final TableField CAMPROLE = createField(DSL.name("camprole"), SQLDataType.VARCHAR.asEnumDataType(EnumCamprole.class), this, ""); /** * The column camp.v_registration.email. @@ -101,11 +105,25 @@ public class VRegistration extends TableImpl { public final TableField CAMPNAME = createField(DSL.name("campname"), SQLDataType.CLOB, this, ""); private VRegistration(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private VRegistration(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view()); + private VRegistration(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" + create view "v_registration" as SELECT t_person.pk, + t_person.forename, + t_person.surname, + t_person.street, + t_person.zip, + t_person.city, + t_person.phone, + t_person.birthdate, + t_person.camprole, + t_person.email, + (t_camp.name || date_part('isoyear'::text, t_camp.arrive)) AS campname + FROM (camp.t_person + LEFT JOIN camp.t_camp ON ((t_camp.pk = t_person.fk_camp))); + """), where); } /** @@ -129,10 +147,6 @@ public class VRegistration extends TableImpl { this(DSL.name("v_registration"), null); } - public VRegistration(Table child, ForeignKey key) { - super(child, key, V_REGISTRATION); - } - @Override public Schema getSchema() { return aliased() ? null : Camp.CAMP; @@ -148,6 +162,11 @@ public class VRegistration extends TableImpl { return new VRegistration(alias, this); } + @Override + public VRegistration as(Table alias) { + return new VRegistration(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -164,12 +183,95 @@ public class VRegistration extends TableImpl { return new VRegistration(name, null); } - // ------------------------------------------------------------------------- - // Row11 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row11 fieldsRow() { - return (Row11) super.fieldsRow(); + public VRegistration rename(Table name) { + return new VRegistration(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VRegistration where(Condition condition) { + return new VRegistration(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VRegistration where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VRegistration where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VRegistration where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VRegistration where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VRegistration where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VRegistration where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VRegistration where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VRegistration whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VRegistration whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VRole.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VRole.java index 94bb945..cd5cf08 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VRole.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VRole.java @@ -8,12 +8,17 @@ import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.enums.EnumRole; import de.jottyfan.camporganizer.db.jooq.tables.records.VRoleRecord; +import java.util.Collection; + +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row1; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -46,14 +51,16 @@ public class VRole extends TableImpl { /** * The column camp.v_role.unnest. */ - public final TableField UNNEST = createField(DSL.name("unnest"), SQLDataType.VARCHAR.asEnumDataType(de.jottyfan.camporganizer.db.jooq.enums.EnumRole.class), this, ""); + public final TableField UNNEST = createField(DSL.name("unnest"), SQLDataType.VARCHAR.asEnumDataType(EnumRole.class), this, ""); private VRole(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private VRole(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view()); + private VRole(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" + create view "v_role" as SELECT unnest(enum_range(NULL::camp.enum_role)) AS unnest; + """), where); } /** @@ -77,10 +84,6 @@ public class VRole extends TableImpl { this(DSL.name("v_role"), null); } - public VRole(Table child, ForeignKey key) { - super(child, key, V_ROLE); - } - @Override public Schema getSchema() { return aliased() ? null : Camp.CAMP; @@ -96,6 +99,11 @@ public class VRole extends TableImpl { return new VRole(alias, this); } + @Override + public VRole as(Table alias) { + return new VRole(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -112,12 +120,95 @@ public class VRole extends TableImpl { return new VRole(name, null); } - // ------------------------------------------------------------------------- - // Row1 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row1 fieldsRow() { - return (Row1) super.fieldsRow(); + public VRole rename(Table name) { + return new VRole(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VRole where(Condition condition) { + return new VRole(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VRole where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VRole where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VRole where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VRole where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VRole where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VRole where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VRole where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VRole whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VRole whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VSales.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VSales.java index 484661f..28ffa29 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VSales.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VSales.java @@ -9,13 +9,17 @@ import de.jottyfan.camporganizer.db.jooq.tables.records.VSalesRecord; import java.math.BigDecimal; import java.time.LocalDateTime; +import java.util.Collection; +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row16; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -123,14 +127,36 @@ public class VSales extends TableImpl { /** * The column camp.v_sales.content. */ - public final TableField CONTENT = createField(DSL.name("content"), SQLDataType.CLOB.getArrayDataType(), this, ""); + public final TableField CONTENT = createField(DSL.name("content"), SQLDataType.CLOB.array(), this, ""); private VSales(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private VSales(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view()); + private VSales(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" + create view "v_sales" as SELECT s.pk, + s.trader, + c.pk AS fk_camp, + c.name, + l.pk AS fk_location, + l.name AS location, + s.incredients, + date_part('isoyear'::text, c.arrive) AS year, + s.pk AS fk_sales, + s.provider, + s.cash, + s.buydate, + s.recipenumber, + s.recipeshot, + s.recipenote, + array_agg(t.fk_salescontenttype) AS content + FROM (((camp.t_sales s + LEFT JOIN camp.t_camp c ON ((c.pk = s.fk_camp))) + LEFT JOIN camp.t_location l ON ((l.pk = c.fk_location))) + LEFT JOIN camp.t_salescontent t ON ((t.fk_sales = s.pk))) + GROUP BY s.pk, s.trader, c.pk, c.name, l.pk, l.name, s.incredients, (date_part('isoyear'::text, c.arrive)), s.provider, s.cash, s.buydate, s.recipenumber, s.recipeshot; + """), where); } /** @@ -154,10 +180,6 @@ public class VSales extends TableImpl { this(DSL.name("v_sales"), null); } - public VSales(Table child, ForeignKey key) { - super(child, key, V_SALES); - } - @Override public Schema getSchema() { return aliased() ? null : Camp.CAMP; @@ -173,6 +195,11 @@ public class VSales extends TableImpl { return new VSales(alias, this); } + @Override + public VSales as(Table alias) { + return new VSales(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -189,12 +216,95 @@ public class VSales extends TableImpl { return new VSales(name, null); } - // ------------------------------------------------------------------------- - // Row16 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row16 fieldsRow() { - return (Row16) super.fieldsRow(); + public VSales rename(Table name) { + return new VSales(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VSales where(Condition condition) { + return new VSales(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VSales where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VSales where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VSales where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VSales where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VSales where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VSales where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VSales where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VSales whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VSales whereNotExists(Select select) { + return where(DSL.notExists(select)); } } diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VVersion.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VVersion.java index 9696af4..b3566db 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VVersion.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/VVersion.java @@ -7,12 +7,17 @@ package de.jottyfan.camporganizer.db.jooq.tables; import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.tables.records.VVersionRecord; +import java.util.Collection; + +import org.jooq.Condition; import org.jooq.Field; -import org.jooq.ForeignKey; import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row1; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; import org.jooq.Table; import org.jooq.TableField; import org.jooq.TableOptions; @@ -48,11 +53,13 @@ public class VVersion extends TableImpl { public final TableField VERSION = createField(DSL.name("version"), SQLDataType.CLOB, this, ""); private VVersion(Name alias, Table aliased) { - this(alias, aliased, null); + this(alias, aliased, (Field[]) null, null); } - private VVersion(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view()); + private VVersion(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.view(""" + create view "v_version" as SELECT '2023.03'::text AS version; + """), where); } /** @@ -76,10 +83,6 @@ public class VVersion extends TableImpl { this(DSL.name("v_version"), null); } - public VVersion(Table child, ForeignKey key) { - super(child, key, V_VERSION); - } - @Override public Schema getSchema() { return aliased() ? null : Camp.CAMP; @@ -95,6 +98,11 @@ public class VVersion extends TableImpl { return new VVersion(alias, this); } + @Override + public VVersion as(Table alias) { + return new VVersion(alias.getQualifiedName(), this); + } + /** * Rename this table */ @@ -111,12 +119,95 @@ public class VVersion extends TableImpl { return new VVersion(name, null); } - // ------------------------------------------------------------------------- - // Row1 type methods - // ------------------------------------------------------------------------- - + /** + * Rename this table + */ @Override - public Row1 fieldsRow() { - return (Row1) super.fieldsRow(); + public VVersion rename(Table name) { + return new VVersion(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VVersion where(Condition condition) { + return new VVersion(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VVersion where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VVersion where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VVersion where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VVersion where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VVersion where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VVersion where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public VVersion where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VVersion whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public VVersion whereNotExists(Select select) { + return where(DSL.notExists(select)); } } 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 deleted file mode 100644 index 87bcbee..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCamp.java +++ /dev/null @@ -1,179 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index b0d09af..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampdocument.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index 3c1edcd..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TCampprofile.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index c107ad5..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocument.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index a890982..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TDocumentrole.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index 6a50590..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TLocation.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index 07461a3..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPerson.java +++ /dev/null @@ -1,280 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index 2a37bcf..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TPersondocument.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index 8e0641e..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfile.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index ddaafc0..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TProfilerole.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index 85088ad..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TRss.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index 36fdda4..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSales.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * 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; - - -/** - * 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 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 deleted file mode 100644 index 6d778dd..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontent.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index 3b9ece7..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalescontenttype.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 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/TSalesprofile.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalesprofile.java deleted file mode 100644 index 6f57f87..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/TSalesprofile.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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 TSalesprofile implements Serializable { - - private static final long serialVersionUID = 1L; - - private final Integer pk; - private final Integer fkCamp; - private final Integer fkProfile; - - public TSalesprofile(TSalesprofile value) { - this.pk = value.pk; - this.fkCamp = value.fkCamp; - this.fkProfile = value.fkProfile; - } - - public TSalesprofile( - Integer pk, - Integer fkCamp, - Integer fkProfile - ) { - this.pk = pk; - this.fkCamp = fkCamp; - this.fkProfile = fkProfile; - } - - /** - * Getter for camp.t_salesprofile.pk. - */ - public Integer getPk() { - return this.pk; - } - - /** - * Getter for camp.t_salesprofile.fk_camp. - */ - public Integer getFkCamp() { - return this.fkCamp; - } - - /** - * Getter for camp.t_salesprofile.fk_profile. - */ - public Integer getFkProfile() { - return this.fkProfile; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("TSalesprofile ("); - - sb.append(pk); - sb.append(", ").append(fkCamp); - sb.append(", ").append(fkProfile); - - sb.append(")"); - return sb.toString(); - } -} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VAdult.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VAdult.java deleted file mode 100644 index f8730f1..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VAdult.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package de.jottyfan.camporganizer.db.jooq.tables.pojos; - - -import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; - -import java.io.Serializable; - -import org.jooq.types.YearToSecond; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VAdult implements Serializable { - - private static final long serialVersionUID = 1L; - - private final YearToSecond age; - private final String forename; - private final String surname; - private final EnumCamprole camprole; - private final Boolean adult; - - public VAdult(VAdult value) { - this.age = value.age; - this.forename = value.forename; - this.surname = value.surname; - this.camprole = value.camprole; - this.adult = value.adult; - } - - public VAdult( - YearToSecond age, - String forename, - String surname, - EnumCamprole camprole, - Boolean adult - ) { - this.age = age; - this.forename = forename; - this.surname = surname; - this.camprole = camprole; - this.adult = adult; - } - - /** - * Getter for camp.v_adult.age. - */ - public YearToSecond getAge() { - return this.age; - } - - /** - * Getter for camp.v_adult.forename. - */ - public String getForename() { - return this.forename; - } - - /** - * Getter for camp.v_adult.surname. - */ - public String getSurname() { - return this.surname; - } - - /** - * Getter for camp.v_adult.camprole. - */ - public EnumCamprole getCamprole() { - return this.camprole; - } - - /** - * Getter for camp.v_adult.adult. - */ - public Boolean getAdult() { - return this.adult; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("VAdult ("); - - sb.append(age); - sb.append(", ").append(forename); - sb.append(", ").append(surname); - sb.append(", ").append(camprole); - sb.append(", ").append(adult); - - sb.append(")"); - return sb.toString(); - } -} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VBudget.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VBudget.java deleted file mode 100644 index c1f9f7d..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VBudget.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index 750d68d..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamp.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index 1799c9c..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudget.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index 3df060e..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampBudgetYear.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index 5388bd7..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCampdocument.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index a16fe02..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VCamprole.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index 10b3383..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VDocument.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * 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 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/VDsgvoDeleteCandidate.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VDsgvoDeleteCandidate.java deleted file mode 100644 index 760f314..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VDsgvoDeleteCandidate.java +++ /dev/null @@ -1,146 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package de.jottyfan.camporganizer.db.jooq.tables.pojos; - - -import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; - -import java.io.Serializable; - -import org.jooq.types.YearToSecond; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VDsgvoDeleteCandidate implements Serializable { - - private static final long serialVersionUID = 1L; - - private final Integer fkPerson; - private final String forename; - private final String surname; - private final Integer fkCamp; - private final YearToSecond age; - private final EnumCamprole camprole; - private final String name; - private final Double year; - private final Boolean isOver; - - public VDsgvoDeleteCandidate(VDsgvoDeleteCandidate value) { - this.fkPerson = value.fkPerson; - this.forename = value.forename; - this.surname = value.surname; - this.fkCamp = value.fkCamp; - this.age = value.age; - this.camprole = value.camprole; - this.name = value.name; - this.year = value.year; - this.isOver = value.isOver; - } - - public VDsgvoDeleteCandidate( - Integer fkPerson, - String forename, - String surname, - Integer fkCamp, - YearToSecond age, - EnumCamprole camprole, - String name, - Double year, - Boolean isOver - ) { - this.fkPerson = fkPerson; - this.forename = forename; - this.surname = surname; - this.fkCamp = fkCamp; - this.age = age; - this.camprole = camprole; - this.name = name; - this.year = year; - this.isOver = isOver; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.fk_person. - */ - public Integer getFkPerson() { - return this.fkPerson; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.forename. - */ - public String getForename() { - return this.forename; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.surname. - */ - public String getSurname() { - return this.surname; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.fk_camp. - */ - public Integer getFkCamp() { - return this.fkCamp; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.age. - */ - public YearToSecond getAge() { - return this.age; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.camprole. - */ - public EnumCamprole getCamprole() { - return this.camprole; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.name. - */ - public String getName() { - return this.name; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.year. - */ - public Double getYear() { - return this.year; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.is_over. - */ - public Boolean getIsOver() { - return this.isOver; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("VDsgvoDeleteCandidate ("); - - sb.append(fkPerson); - sb.append(", ").append(forename); - sb.append(", ").append(surname); - sb.append(", ").append(fkCamp); - sb.append(", ").append(age); - sb.append(", ").append(camprole); - sb.append(", ").append(name); - sb.append(", ").append(year); - sb.append(", ").append(isOver); - - sb.append(")"); - return sb.toString(); - } -} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VFeeder.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VFeeder.java deleted file mode 100644 index 1ee842d..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VFeeder.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package de.jottyfan.camporganizer.db.jooq.tables.pojos; - - -import de.jottyfan.camporganizer.db.jooq.enums.EnumSex; - -import java.io.Serializable; - -import org.jooq.types.YearToSecond; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VFeeder implements Serializable { - - private static final long serialVersionUID = 1L; - - private final String forename; - private final String surname; - private final String street; - private final String zip; - private final String city; - private final String phone; - private final YearToSecond age; - private final String email; - private final EnumSex sex; - private final String name; - private final Double year; - - public VFeeder(VFeeder value) { - this.forename = value.forename; - this.surname = value.surname; - this.street = value.street; - this.zip = value.zip; - this.city = value.city; - this.phone = value.phone; - this.age = value.age; - this.email = value.email; - this.sex = value.sex; - this.name = value.name; - this.year = value.year; - } - - public VFeeder( - String forename, - String surname, - String street, - String zip, - String city, - String phone, - YearToSecond age, - String email, - EnumSex sex, - String name, - Double year - ) { - this.forename = forename; - this.surname = surname; - this.street = street; - this.zip = zip; - this.city = city; - this.phone = phone; - this.age = age; - this.email = email; - this.sex = sex; - this.name = name; - this.year = year; - } - - /** - * Getter for camp.v_feeder.forename. - */ - public String getForename() { - return this.forename; - } - - /** - * Getter for camp.v_feeder.surname. - */ - public String getSurname() { - return this.surname; - } - - /** - * Getter for camp.v_feeder.street. - */ - public String getStreet() { - return this.street; - } - - /** - * Getter for camp.v_feeder.zip. - */ - public String getZip() { - return this.zip; - } - - /** - * Getter for camp.v_feeder.city. - */ - public String getCity() { - return this.city; - } - - /** - * Getter for camp.v_feeder.phone. - */ - public String getPhone() { - return this.phone; - } - - /** - * Getter for camp.v_feeder.age. - */ - public YearToSecond getAge() { - return this.age; - } - - /** - * Getter for camp.v_feeder.email. - */ - public String getEmail() { - return this.email; - } - - /** - * Getter for camp.v_feeder.sex. - */ - public EnumSex getSex() { - return this.sex; - } - - /** - * Getter for camp.v_feeder.name. - */ - public String getName() { - return this.name; - } - - /** - * Getter for camp.v_feeder.year. - */ - public Double getYear() { - return this.year; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("VFeeder ("); - - sb.append(forename); - sb.append(", ").append(surname); - sb.append(", ").append(street); - sb.append(", ").append(zip); - sb.append(", ").append(city); - sb.append(", ").append(phone); - sb.append(", ").append(age); - sb.append(", ").append(email); - sb.append(", ").append(sex); - sb.append(", ").append(name); - sb.append(", ").append(year); - - sb.append(")"); - return sb.toString(); - } -} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VProfile.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VProfile.java deleted file mode 100644 index 8c9bd44..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VProfile.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * 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 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.toString(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 deleted file mode 100644 index 9d90118..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRegistration.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index bc3f8c8..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VRole.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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 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 deleted file mode 100644 index d1cc079..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VSales.java +++ /dev/null @@ -1,229 +0,0 @@ -/* - * 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 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.toString(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 deleted file mode 100644 index 603d85a..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/pojos/VVersion.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 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 13b2c8e..a11c8d7 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 @@ -8,10 +8,7 @@ import de.jottyfan.camporganizer.db.jooq.tables.TCamp; import java.time.LocalDateTime; -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record12; -import org.jooq.Row12; import org.jooq.impl.UpdatableRecordImpl; @@ -19,7 +16,7 @@ import org.jooq.impl.UpdatableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TCampRecord extends UpdatableRecordImpl implements Record12 { +public class TCampRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; @@ -212,289 +209,6 @@ public class TCampRecord extends UpdatableRecordImpl implements Rec return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record12 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row12 fieldsRow() { - return (Row12) super.fieldsRow(); - } - - @Override - public Row12 valuesRow() { - return (Row12) super.valuesRow(); - } - - @Override - public Field field1() { - return TCamp.T_CAMP.PK; - } - - @Override - public Field field2() { - return TCamp.T_CAMP.NAME; - } - - @Override - public Field field3() { - return TCamp.T_CAMP.ARRIVE; - } - - @Override - public Field field4() { - return TCamp.T_CAMP.DEPART; - } - - @Override - public Field field5() { - return TCamp.T_CAMP.FK_LOCATION; - } - - @Override - public Field field6() { - return TCamp.T_CAMP.MIN_AGE; - } - - @Override - public Field field7() { - return TCamp.T_CAMP.MAX_AGE; - } - - @Override - public Field field8() { - return TCamp.T_CAMP.PRICE; - } - - @Override - public Field field9() { - return TCamp.T_CAMP.COUNTRIES; - } - - @Override - public Field field10() { - return TCamp.T_CAMP.FK_DOCUMENT; - } - - @Override - public Field field11() { - return TCamp.T_CAMP.LOCK_SALES; - } - - @Override - public Field field12() { - return TCamp.T_CAMP.FK_PROFILE; - } - - @Override - public Integer component1() { - return getPk(); - } - - @Override - public String component2() { - return getName(); - } - - @Override - public LocalDateTime component3() { - return getArrive(); - } - - @Override - public LocalDateTime component4() { - return getDepart(); - } - - @Override - public Integer component5() { - return getFkLocation(); - } - - @Override - public Integer component6() { - return getMinAge(); - } - - @Override - public Integer component7() { - return getMaxAge(); - } - - @Override - public String component8() { - return getPrice(); - } - - @Override - public String component9() { - return getCountries(); - } - - @Override - public Integer component10() { - return getFkDocument(); - } - - @Override - public Boolean component11() { - return getLockSales(); - } - - @Override - public Integer component12() { - return getFkProfile(); - } - - @Override - public Integer value1() { - return getPk(); - } - - @Override - public String value2() { - return getName(); - } - - @Override - public LocalDateTime value3() { - return getArrive(); - } - - @Override - public LocalDateTime value4() { - return getDepart(); - } - - @Override - public Integer value5() { - return getFkLocation(); - } - - @Override - public Integer value6() { - return getMinAge(); - } - - @Override - public Integer value7() { - return getMaxAge(); - } - - @Override - public String value8() { - return getPrice(); - } - - @Override - public String value9() { - return getCountries(); - } - - @Override - public Integer value10() { - return getFkDocument(); - } - - @Override - public Boolean value11() { - return getLockSales(); - } - - @Override - public Integer value12() { - return getFkProfile(); - } - - @Override - public TCampRecord value1(Integer value) { - setPk(value); - return this; - } - - @Override - public TCampRecord value2(String value) { - setName(value); - return this; - } - - @Override - public TCampRecord value3(LocalDateTime value) { - setArrive(value); - return this; - } - - @Override - public TCampRecord value4(LocalDateTime value) { - setDepart(value); - return this; - } - - @Override - public TCampRecord value5(Integer value) { - setFkLocation(value); - return this; - } - - @Override - public TCampRecord value6(Integer value) { - setMinAge(value); - return this; - } - - @Override - public TCampRecord value7(Integer value) { - setMaxAge(value); - return this; - } - - @Override - public TCampRecord value8(String value) { - setPrice(value); - return this; - } - - @Override - public TCampRecord value9(String value) { - setCountries(value); - return this; - } - - @Override - public TCampRecord value10(Integer value) { - setFkDocument(value); - return this; - } - - @Override - public TCampRecord value11(Boolean value) { - setLockSales(value); - return this; - } - - @Override - public TCampRecord value12(Integer value) { - setFkProfile(value); - return this; - } - - @Override - public TCampRecord values(Integer value1, String value2, LocalDateTime value3, LocalDateTime value4, Integer value5, Integer value6, Integer value7, String value8, String value9, Integer value10, Boolean value11, Integer value12) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - value11(value11); - value12(value12); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -524,27 +238,6 @@ public class TCampRecord extends UpdatableRecordImpl implements Rec setFkDocument(fkDocument); setLockSales(lockSales); setFkProfile(fkProfile); - } - - /** - * 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 c391a45..eee1957 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 @@ -6,10 +6,7 @@ package de.jottyfan.camporganizer.db.jooq.tables.records; import de.jottyfan.camporganizer.db.jooq.tables.TCampdocument; -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record3; -import org.jooq.Row3; import org.jooq.impl.UpdatableRecordImpl; @@ -17,7 +14,7 @@ import org.jooq.impl.UpdatableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TCampdocumentRecord extends UpdatableRecordImpl implements Record3 { +public class TCampdocumentRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; @@ -75,91 +72,6 @@ public class TCampdocumentRecord extends UpdatableRecordImpl fieldsRow() { - return (Row3) super.fieldsRow(); - } - - @Override - public Row3 valuesRow() { - return (Row3) super.valuesRow(); - } - - @Override - public Field field1() { - return TCampdocument.T_CAMPDOCUMENT.PK; - } - - @Override - public Field field2() { - return TCampdocument.T_CAMPDOCUMENT.FK_CAMP; - } - - @Override - public Field field3() { - return TCampdocument.T_CAMPDOCUMENT.FK_DOCUMENT; - } - - @Override - public Integer component1() { - return getPk(); - } - - @Override - public Integer component2() { - return getFkCamp(); - } - - @Override - public Integer component3() { - return getFkDocument(); - } - - @Override - public Integer value1() { - return getPk(); - } - - @Override - public Integer value2() { - return getFkCamp(); - } - - @Override - public Integer value3() { - return getFkDocument(); - } - - @Override - public TCampdocumentRecord value1(Integer value) { - setPk(value); - return this; - } - - @Override - public TCampdocumentRecord value2(Integer value) { - setFkCamp(value); - return this; - } - - @Override - public TCampdocumentRecord value3(Integer value) { - setFkDocument(value); - return this; - } - - @Override - public TCampdocumentRecord values(Integer value1, Integer value2, Integer value3) { - value1(value1); - value2(value2); - value3(value3); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -180,18 +92,6 @@ public class TCampdocumentRecord extends UpdatableRecordImpl implements Record4 { +public class TCampprofileRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; @@ -91,113 +88,6 @@ public class TCampprofileRecord extends UpdatableRecordImpl return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record4 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); - } - - @Override - public Field field1() { - return TCampprofile.T_CAMPPROFILE.PK; - } - - @Override - public Field field2() { - return TCampprofile.T_CAMPPROFILE.FK_PROFILE; - } - - @Override - public Field field3() { - return TCampprofile.T_CAMPPROFILE.FK_CAMP; - } - - @Override - public Field field4() { - return TCampprofile.T_CAMPPROFILE.MODULE; - } - - @Override - public Integer component1() { - return getPk(); - } - - @Override - public Integer component2() { - return getFkProfile(); - } - - @Override - public Integer component3() { - return getFkCamp(); - } - - @Override - public EnumModule component4() { - return getModule(); - } - - @Override - public Integer value1() { - return getPk(); - } - - @Override - public Integer value2() { - return getFkProfile(); - } - - @Override - public Integer value3() { - return getFkCamp(); - } - - @Override - public EnumModule value4() { - return getModule(); - } - - @Override - public TCampprofileRecord value1(Integer value) { - setPk(value); - return this; - } - - @Override - public TCampprofileRecord value2(Integer value) { - setFkProfile(value); - return this; - } - - @Override - public TCampprofileRecord value3(Integer value) { - setFkCamp(value); - return this; - } - - @Override - public TCampprofileRecord value4(EnumModule value) { - setModule(value); - return this; - } - - @Override - public TCampprofileRecord values(Integer value1, Integer value2, Integer value3, EnumModule value4) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -219,19 +109,6 @@ public class TCampprofileRecord extends UpdatableRecordImpl setFkProfile(fkProfile); setFkCamp(fkCamp); setModule(module); - } - - /** - * 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 764aab3..c55d04e 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 @@ -8,10 +8,7 @@ import de.jottyfan.camporganizer.db.jooq.enums.EnumDocument; import de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype; import de.jottyfan.camporganizer.db.jooq.tables.TDocument; -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record5; -import org.jooq.Row5; import org.jooq.impl.UpdatableRecordImpl; @@ -19,7 +16,7 @@ import org.jooq.impl.UpdatableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TDocumentRecord extends UpdatableRecordImpl implements Record5 { +public class TDocumentRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; @@ -107,135 +104,6 @@ public class TDocumentRecord extends UpdatableRecordImpl implem return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record5 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); - } - - @Override - public Row5 valuesRow() { - return (Row5) super.valuesRow(); - } - - @Override - public Field field1() { - return TDocument.T_DOCUMENT.PK; - } - - @Override - public Field field2() { - return TDocument.T_DOCUMENT.DOCTYPE; - } - - @Override - public Field field3() { - return TDocument.T_DOCUMENT.NAME; - } - - @Override - public Field field4() { - return TDocument.T_DOCUMENT.DOCUMENT; - } - - @Override - public Field field5() { - return TDocument.T_DOCUMENT.FILETYPE; - } - - @Override - public Integer component1() { - return getPk(); - } - - @Override - public EnumDocument component2() { - return getDoctype(); - } - - @Override - public String component3() { - return getName(); - } - - @Override - public String component4() { - return getDocument(); - } - - @Override - public EnumFiletype component5() { - return getFiletype(); - } - - @Override - public Integer value1() { - return getPk(); - } - - @Override - public EnumDocument value2() { - return getDoctype(); - } - - @Override - public String value3() { - return getName(); - } - - @Override - public String value4() { - return getDocument(); - } - - @Override - public EnumFiletype value5() { - return getFiletype(); - } - - @Override - public TDocumentRecord value1(Integer value) { - setPk(value); - return this; - } - - @Override - public TDocumentRecord value2(EnumDocument value) { - setDoctype(value); - return this; - } - - @Override - public TDocumentRecord value3(String value) { - setName(value); - return this; - } - - @Override - public TDocumentRecord value4(String value) { - setDocument(value); - return this; - } - - @Override - public TDocumentRecord value5(EnumFiletype value) { - setFiletype(value); - return this; - } - - @Override - public TDocumentRecord values(Integer value1, EnumDocument value2, String value3, String value4, EnumFiletype value5) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -258,20 +126,6 @@ public class TDocumentRecord extends UpdatableRecordImpl implem setName(name); setDocument(document); setFiletype(filetype); - } - - /** - * 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 a52f95a..6da806e 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 @@ -7,10 +7,7 @@ package de.jottyfan.camporganizer.db.jooq.tables.records; import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; import de.jottyfan.camporganizer.db.jooq.tables.TDocumentrole; -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record3; -import org.jooq.Row3; import org.jooq.impl.UpdatableRecordImpl; @@ -18,7 +15,7 @@ import org.jooq.impl.UpdatableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TDocumentroleRecord extends UpdatableRecordImpl implements Record3 { +public class TDocumentroleRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; @@ -76,91 +73,6 @@ public class TDocumentroleRecord extends UpdatableRecordImpl fieldsRow() { - return (Row3) super.fieldsRow(); - } - - @Override - public Row3 valuesRow() { - return (Row3) super.valuesRow(); - } - - @Override - public Field field1() { - return TDocumentrole.T_DOCUMENTROLE.PK; - } - - @Override - public Field field2() { - return TDocumentrole.T_DOCUMENTROLE.FK_DOCUMENT; - } - - @Override - public Field field3() { - return TDocumentrole.T_DOCUMENTROLE.CAMPROLE; - } - - @Override - public Integer component1() { - return getPk(); - } - - @Override - public Integer component2() { - return getFkDocument(); - } - - @Override - public EnumCamprole component3() { - return getCamprole(); - } - - @Override - public Integer value1() { - return getPk(); - } - - @Override - public Integer value2() { - return getFkDocument(); - } - - @Override - public EnumCamprole value3() { - return getCamprole(); - } - - @Override - public TDocumentroleRecord value1(Integer value) { - setPk(value); - return this; - } - - @Override - public TDocumentroleRecord value2(Integer value) { - setFkDocument(value); - return this; - } - - @Override - public TDocumentroleRecord value3(EnumCamprole value) { - setCamprole(value); - return this; - } - - @Override - public TDocumentroleRecord values(Integer value1, Integer value2, EnumCamprole value3) { - value1(value1); - value2(value2); - value3(value3); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -181,18 +93,6 @@ public class TDocumentroleRecord extends UpdatableRecordImpl implements Record4 { +public class TLocationRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; @@ -90,113 +87,6 @@ public class TLocationRecord extends UpdatableRecordImpl implem return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record4 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); - } - - @Override - public Field field1() { - return TLocation.T_LOCATION.PK; - } - - @Override - public Field field2() { - return TLocation.T_LOCATION.NAME; - } - - @Override - public Field field3() { - return TLocation.T_LOCATION.URL; - } - - @Override - public Field field4() { - return TLocation.T_LOCATION.FK_DOCUMENT; - } - - @Override - public Integer component1() { - return getPk(); - } - - @Override - public String component2() { - return getName(); - } - - @Override - public String component3() { - return getUrl(); - } - - @Override - public Integer component4() { - return getFkDocument(); - } - - @Override - public Integer value1() { - return getPk(); - } - - @Override - public String value2() { - return getName(); - } - - @Override - public String value3() { - return getUrl(); - } - - @Override - public Integer value4() { - return getFkDocument(); - } - - @Override - public TLocationRecord value1(Integer value) { - setPk(value); - return this; - } - - @Override - public TLocationRecord value2(String value) { - setName(value); - return this; - } - - @Override - public TLocationRecord value3(String value) { - setUrl(value); - return this; - } - - @Override - public TLocationRecord value4(Integer value) { - setFkDocument(value); - return this; - } - - @Override - public TLocationRecord values(Integer value1, String value2, String value3, Integer value4) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -218,19 +108,6 @@ public class TLocationRecord extends UpdatableRecordImpl implem setName(name); setUrl(url); setFkDocument(fkDocument); - } - - /** - * 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 b72db29..13b27ad 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 @@ -12,10 +12,7 @@ import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record20; -import org.jooq.Row20; import org.jooq.impl.UpdatableRecordImpl; @@ -23,7 +20,7 @@ import org.jooq.impl.UpdatableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TPersonRecord extends UpdatableRecordImpl implements Record20 { +public class TPersonRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; @@ -336,465 +333,6 @@ public class TPersonRecord extends UpdatableRecordImpl implements return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record20 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row20 fieldsRow() { - return (Row20) super.fieldsRow(); - } - - @Override - public Row20 valuesRow() { - return (Row20) super.valuesRow(); - } - - @Override - public Field field1() { - return TPerson.T_PERSON.PK; - } - - @Override - public Field field2() { - return TPerson.T_PERSON.FORENAME; - } - - @Override - public Field field3() { - return TPerson.T_PERSON.SURNAME; - } - - @Override - public Field field4() { - return TPerson.T_PERSON.STREET; - } - - @Override - public Field field5() { - return TPerson.T_PERSON.ZIP; - } - - @Override - public Field field6() { - return TPerson.T_PERSON.CITY; - } - - @Override - public Field field7() { - return TPerson.T_PERSON.PHONE; - } - - @Override - public Field field8() { - return TPerson.T_PERSON.BIRTHDATE; - } - - @Override - public Field field9() { - return TPerson.T_PERSON.CAMPROLE; - } - - @Override - public Field field10() { - return TPerson.T_PERSON.EMAIL; - } - - @Override - public Field field11() { - return TPerson.T_PERSON.FK_CAMP; - } - - @Override - public Field field12() { - return TPerson.T_PERSON.FK_PROFILE; - } - - @Override - public Field field13() { - return TPerson.T_PERSON.ACCEPT; - } - - @Override - public Field field14() { - return TPerson.T_PERSON.CREATED; - } - - @Override - public Field field15() { - return TPerson.T_PERSON.SEX; - } - - @Override - public Field field16() { - return TPerson.T_PERSON.FK_REGISTRATOR; - } - - @Override - public Field field17() { - return TPerson.T_PERSON.PAID; - } - - @Override - public Field field18() { - return TPerson.T_PERSON.COMMENT; - } - - @Override - public Field field19() { - return TPerson.T_PERSON.CONSENT_CATALOG_PHOTO; - } - - @Override - public Field field20() { - return TPerson.T_PERSON.REQUIRED_PRICE; - } - - @Override - public Integer component1() { - return getPk(); - } - - @Override - public String component2() { - return getForename(); - } - - @Override - public String component3() { - return getSurname(); - } - - @Override - public String component4() { - return getStreet(); - } - - @Override - public String component5() { - return getZip(); - } - - @Override - public String component6() { - return getCity(); - } - - @Override - public String component7() { - return getPhone(); - } - - @Override - public LocalDate component8() { - return getBirthdate(); - } - - @Override - public EnumCamprole component9() { - return getCamprole(); - } - - @Override - public String component10() { - return getEmail(); - } - - @Override - public Integer component11() { - return getFkCamp(); - } - - @Override - public Integer component12() { - return getFkProfile(); - } - - @Override - public Boolean component13() { - return getAccept(); - } - - @Override - public LocalDateTime component14() { - return getCreated(); - } - - @Override - public EnumSex component15() { - return getSex(); - } - - @Override - public Integer component16() { - return getFkRegistrator(); - } - - @Override - public BigDecimal component17() { - return getPaid(); - } - - @Override - public String component18() { - return getComment(); - } - - @Override - public Boolean component19() { - return getConsentCatalogPhoto(); - } - - @Override - public BigDecimal component20() { - return getRequiredPrice(); - } - - @Override - public Integer value1() { - return getPk(); - } - - @Override - public String value2() { - return getForename(); - } - - @Override - public String value3() { - return getSurname(); - } - - @Override - public String value4() { - return getStreet(); - } - - @Override - public String value5() { - return getZip(); - } - - @Override - public String value6() { - return getCity(); - } - - @Override - public String value7() { - return getPhone(); - } - - @Override - public LocalDate value8() { - return getBirthdate(); - } - - @Override - public EnumCamprole value9() { - return getCamprole(); - } - - @Override - public String value10() { - return getEmail(); - } - - @Override - public Integer value11() { - return getFkCamp(); - } - - @Override - public Integer value12() { - return getFkProfile(); - } - - @Override - public Boolean value13() { - return getAccept(); - } - - @Override - public LocalDateTime value14() { - return getCreated(); - } - - @Override - public EnumSex value15() { - return getSex(); - } - - @Override - public Integer value16() { - return getFkRegistrator(); - } - - @Override - public BigDecimal value17() { - return getPaid(); - } - - @Override - public String value18() { - return getComment(); - } - - @Override - public Boolean value19() { - return getConsentCatalogPhoto(); - } - - @Override - public BigDecimal value20() { - return getRequiredPrice(); - } - - @Override - public TPersonRecord value1(Integer value) { - setPk(value); - return this; - } - - @Override - public TPersonRecord value2(String value) { - setForename(value); - return this; - } - - @Override - public TPersonRecord value3(String value) { - setSurname(value); - return this; - } - - @Override - public TPersonRecord value4(String value) { - setStreet(value); - return this; - } - - @Override - public TPersonRecord value5(String value) { - setZip(value); - return this; - } - - @Override - public TPersonRecord value6(String value) { - setCity(value); - return this; - } - - @Override - public TPersonRecord value7(String value) { - setPhone(value); - return this; - } - - @Override - public TPersonRecord value8(LocalDate value) { - setBirthdate(value); - return this; - } - - @Override - public TPersonRecord value9(EnumCamprole value) { - setCamprole(value); - return this; - } - - @Override - public TPersonRecord value10(String value) { - setEmail(value); - return this; - } - - @Override - public TPersonRecord value11(Integer value) { - setFkCamp(value); - return this; - } - - @Override - public TPersonRecord value12(Integer value) { - setFkProfile(value); - return this; - } - - @Override - public TPersonRecord value13(Boolean value) { - setAccept(value); - return this; - } - - @Override - public TPersonRecord value14(LocalDateTime value) { - setCreated(value); - return this; - } - - @Override - public TPersonRecord value15(EnumSex value) { - setSex(value); - return this; - } - - @Override - public TPersonRecord value16(Integer value) { - setFkRegistrator(value); - return this; - } - - @Override - public TPersonRecord value17(BigDecimal value) { - setPaid(value); - return this; - } - - @Override - public TPersonRecord value18(String value) { - setComment(value); - return this; - } - - @Override - public TPersonRecord value19(Boolean value) { - setConsentCatalogPhoto(value); - return this; - } - - @Override - public TPersonRecord value20(BigDecimal value) { - setRequiredPrice(value); - return this; - } - - @Override - public TPersonRecord values(Integer value1, String value2, String value3, String value4, String value5, String value6, String value7, LocalDate value8, EnumCamprole value9, String value10, Integer value11, Integer value12, Boolean value13, LocalDateTime value14, EnumSex value15, Integer value16, BigDecimal value17, String value18, Boolean value19, BigDecimal value20) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - value11(value11); - value12(value12); - value13(value13); - value14(value14); - value15(value15); - value16(value16); - value17(value17); - value18(value18); - value19(value19); - value20(value20); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -832,35 +370,6 @@ public class TPersonRecord extends UpdatableRecordImpl implements setComment(comment); setConsentCatalogPhoto(consentCatalogPhoto); setRequiredPrice(requiredPrice); - } - - /** - * 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 eb734b7..00378e0 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 @@ -7,10 +7,7 @@ package de.jottyfan.camporganizer.db.jooq.tables.records; import de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype; import de.jottyfan.camporganizer.db.jooq.tables.TPersondocument; -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record5; -import org.jooq.Row5; import org.jooq.impl.UpdatableRecordImpl; @@ -18,7 +15,7 @@ import org.jooq.impl.UpdatableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TPersondocumentRecord extends UpdatableRecordImpl implements Record5 { +public class TPersondocumentRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; @@ -106,135 +103,6 @@ public class TPersondocumentRecord extends UpdatableRecordImpl fieldsRow() { - return (Row5) super.fieldsRow(); - } - - @Override - public Row5 valuesRow() { - return (Row5) super.valuesRow(); - } - - @Override - public Field field1() { - return TPersondocument.T_PERSONDOCUMENT.PK; - } - - @Override - public Field field2() { - return TPersondocument.T_PERSONDOCUMENT.FK_PERSON; - } - - @Override - public Field field3() { - return TPersondocument.T_PERSONDOCUMENT.NAME; - } - - @Override - public Field field4() { - return TPersondocument.T_PERSONDOCUMENT.DOCUMENT; - } - - @Override - public Field field5() { - return TPersondocument.T_PERSONDOCUMENT.FILETYPE; - } - - @Override - public Integer component1() { - return getPk(); - } - - @Override - public Integer component2() { - return getFkPerson(); - } - - @Override - public String component3() { - return getName(); - } - - @Override - public String component4() { - return getDocument(); - } - - @Override - public EnumFiletype component5() { - return getFiletype(); - } - - @Override - public Integer value1() { - return getPk(); - } - - @Override - public Integer value2() { - return getFkPerson(); - } - - @Override - public String value3() { - return getName(); - } - - @Override - public String value4() { - return getDocument(); - } - - @Override - public EnumFiletype value5() { - return getFiletype(); - } - - @Override - public TPersondocumentRecord value1(Integer value) { - setPk(value); - return this; - } - - @Override - public TPersondocumentRecord value2(Integer value) { - setFkPerson(value); - return this; - } - - @Override - public TPersondocumentRecord value3(String value) { - setName(value); - return this; - } - - @Override - public TPersondocumentRecord value4(String value) { - setDocument(value); - return this; - } - - @Override - public TPersondocumentRecord value5(EnumFiletype value) { - setFiletype(value); - return this; - } - - @Override - public TPersondocumentRecord values(Integer value1, Integer value2, String value3, String value4, EnumFiletype value5) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -257,20 +125,6 @@ public class TPersondocumentRecord extends UpdatableRecordImpl implements Record7 { +public class TProfileRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; @@ -137,179 +134,6 @@ public class TProfileRecord extends UpdatableRecordImpl implemen return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record7 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row7 fieldsRow() { - return (Row7) super.fieldsRow(); - } - - @Override - public Row7 valuesRow() { - return (Row7) super.valuesRow(); - } - - @Override - public Field field1() { - return TProfile.T_PROFILE.PK; - } - - @Override - public Field field2() { - return TProfile.T_PROFILE.FORENAME; - } - - @Override - public Field field3() { - return TProfile.T_PROFILE.SURNAME; - } - - @Override - public Field field4() { - return TProfile.T_PROFILE.USERNAME; - } - - @Override - public Field field5() { - return TProfile.T_PROFILE.PASSWORD; - } - - @Override - public Field field6() { - return TProfile.T_PROFILE.DUEDATE; - } - - @Override - public Field field7() { - return TProfile.T_PROFILE.UUID; - } - - @Override - public Integer component1() { - return getPk(); - } - - @Override - public String component2() { - return getForename(); - } - - @Override - public String component3() { - return getSurname(); - } - - @Override - public String component4() { - return getUsername(); - } - - @Override - public String component5() { - return getPassword(); - } - - @Override - public LocalDateTime component6() { - return getDuedate(); - } - - @Override - public String component7() { - return getUuid(); - } - - @Override - public Integer value1() { - return getPk(); - } - - @Override - public String value2() { - return getForename(); - } - - @Override - public String value3() { - return getSurname(); - } - - @Override - public String value4() { - return getUsername(); - } - - @Override - public String value5() { - return getPassword(); - } - - @Override - public LocalDateTime value6() { - return getDuedate(); - } - - @Override - public String value7() { - return getUuid(); - } - - @Override - public TProfileRecord value1(Integer value) { - setPk(value); - return this; - } - - @Override - public TProfileRecord value2(String value) { - setForename(value); - return this; - } - - @Override - public TProfileRecord value3(String value) { - setSurname(value); - return this; - } - - @Override - public TProfileRecord value4(String value) { - setUsername(value); - return this; - } - - @Override - public TProfileRecord value5(String value) { - setPassword(value); - return this; - } - - @Override - public TProfileRecord value6(LocalDateTime value) { - setDuedate(value); - return this; - } - - @Override - public TProfileRecord value7(String value) { - setUuid(value); - return this; - } - - @Override - public TProfileRecord values(Integer value1, String value2, String value3, String value4, String value5, LocalDateTime value6, String value7) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -334,22 +158,6 @@ public class TProfileRecord extends UpdatableRecordImpl implemen setPassword(password); setDuedate(duedate); setUuid(uuid); - } - - /** - * 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 20b0791..8e46065 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 @@ -7,9 +7,6 @@ package de.jottyfan.camporganizer.db.jooq.tables.records; import de.jottyfan.camporganizer.db.jooq.enums.EnumRole; import de.jottyfan.camporganizer.db.jooq.tables.TProfilerole; -import org.jooq.Field; -import org.jooq.Record2; -import org.jooq.Row2; import org.jooq.impl.TableRecordImpl; @@ -17,7 +14,7 @@ import org.jooq.impl.TableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TProfileroleRecord extends TableRecordImpl implements Record2 { +public class TProfileroleRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; @@ -51,69 +48,6 @@ public class TProfileroleRecord extends TableRecordImpl impl return (EnumRole) get(1); } - // ------------------------------------------------------------------------- - // Record2 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); - } - - @Override - public Row2 valuesRow() { - return (Row2) super.valuesRow(); - } - - @Override - public Field field1() { - return TProfilerole.T_PROFILEROLE.FK_PROFILE; - } - - @Override - public Field field2() { - return TProfilerole.T_PROFILEROLE.ROLE; - } - - @Override - public Integer component1() { - return getFkProfile(); - } - - @Override - public EnumRole component2() { - return getRole(); - } - - @Override - public Integer value1() { - return getFkProfile(); - } - - @Override - public EnumRole value2() { - return getRole(); - } - - @Override - public TProfileroleRecord value1(Integer value) { - setFkProfile(value); - return this; - } - - @Override - public TProfileroleRecord value2(EnumRole value) { - setRole(value); - return this; - } - - @Override - public TProfileroleRecord values(Integer value1, EnumRole value2) { - value1(value1); - value2(value2); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -133,17 +67,6 @@ public class TProfileroleRecord extends TableRecordImpl impl setFkProfile(fkProfile); setRole(role); - } - - /** - * 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 561180e..251f03e 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 @@ -8,10 +8,7 @@ import de.jottyfan.camporganizer.db.jooq.tables.TRss; import java.time.LocalDateTime; -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record4; -import org.jooq.Row4; import org.jooq.impl.UpdatableRecordImpl; @@ -19,7 +16,7 @@ import org.jooq.impl.UpdatableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TRssRecord extends UpdatableRecordImpl implements Record4 { +public class TRssRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; @@ -92,113 +89,6 @@ public class TRssRecord extends UpdatableRecordImpl implements Recor return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record4 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); - } - - @Override - public Field field1() { - return TRss.T_RSS.MSG; - } - - @Override - public Field field2() { - return TRss.T_RSS.REGDATE; - } - - @Override - public Field field3() { - return TRss.T_RSS.RECIPIENT; - } - - @Override - public Field field4() { - return TRss.T_RSS.PK; - } - - @Override - public String component1() { - return getMsg(); - } - - @Override - public LocalDateTime component2() { - return getRegdate(); - } - - @Override - public String component3() { - return getRecipient(); - } - - @Override - public Integer component4() { - return getPk(); - } - - @Override - public String value1() { - return getMsg(); - } - - @Override - public LocalDateTime value2() { - return getRegdate(); - } - - @Override - public String value3() { - return getRecipient(); - } - - @Override - public Integer value4() { - return getPk(); - } - - @Override - public TRssRecord value1(String value) { - setMsg(value); - return this; - } - - @Override - public TRssRecord value2(LocalDateTime value) { - setRegdate(value); - return this; - } - - @Override - public TRssRecord value3(String value) { - setRecipient(value); - return this; - } - - @Override - public TRssRecord value4(Integer value) { - setPk(value); - return this; - } - - @Override - public TRssRecord values(String value1, LocalDateTime value2, String value3, Integer value4) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -220,19 +110,6 @@ public class TRssRecord extends UpdatableRecordImpl implements Recor setRegdate(regdate); setRecipient(recipient); setPk(pk); - } - - /** - * 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 01d17c2..2d7b223 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 @@ -9,10 +9,7 @@ import de.jottyfan.camporganizer.db.jooq.tables.TSales; import java.math.BigDecimal; import java.time.LocalDateTime; -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record11; -import org.jooq.Row11; import org.jooq.impl.UpdatableRecordImpl; @@ -20,7 +17,7 @@ import org.jooq.impl.UpdatableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TSalesRecord extends UpdatableRecordImpl implements Record11 { +public class TSalesRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; @@ -198,267 +195,6 @@ public class TSalesRecord extends UpdatableRecordImpl implements R return (Record1) super.key(); } - // ------------------------------------------------------------------------- - // Record11 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row11 fieldsRow() { - return (Row11) super.fieldsRow(); - } - - @Override - public Row11 valuesRow() { - return (Row11) super.valuesRow(); - } - - @Override - public Field field1() { - return TSales.T_SALES.PK; - } - - @Override - public Field field2() { - return TSales.T_SALES.TRADER; - } - - @Override - public Field field3() { - return TSales.T_SALES.FK_CAMP; - } - - @Override - public Field field4() { - return TSales.T_SALES.PROVIDER; - } - - @Override - public Field field5() { - return TSales.T_SALES.CASH; - } - - @Override - public Field field6() { - return TSales.T_SALES.BUYDATE; - } - - @Override - public Field field7() { - return TSales.T_SALES.RECIPENUMBER; - } - - @Override - public Field field8() { - return TSales.T_SALES.RECIPESHOT; - } - - @Override - public Field field9() { - return TSales.T_SALES.RECIPENOTE; - } - - @Override - public Field field10() { - return TSales.T_SALES.INCREDIENTS; - } - - @Override - public Field field11() { - return TSales.T_SALES.RECIPEFILENAME; - } - - @Override - public Integer component1() { - return getPk(); - } - - @Override - public String component2() { - return getTrader(); - } - - @Override - public Integer component3() { - return getFkCamp(); - } - - @Override - public String component4() { - return getProvider(); - } - - @Override - public BigDecimal component5() { - return getCash(); - } - - @Override - public LocalDateTime component6() { - return getBuydate(); - } - - @Override - public String component7() { - return getRecipenumber(); - } - - @Override - public byte[] component8() { - return getRecipeshot(); - } - - @Override - public String component9() { - return getRecipenote(); - } - - @Override - public String component10() { - return getIncredients(); - } - - @Override - public String component11() { - return getRecipefilename(); - } - - @Override - public Integer value1() { - return getPk(); - } - - @Override - public String value2() { - return getTrader(); - } - - @Override - public Integer value3() { - return getFkCamp(); - } - - @Override - public String value4() { - return getProvider(); - } - - @Override - public BigDecimal value5() { - return getCash(); - } - - @Override - public LocalDateTime value6() { - return getBuydate(); - } - - @Override - public String value7() { - return getRecipenumber(); - } - - @Override - public byte[] value8() { - return getRecipeshot(); - } - - @Override - public String value9() { - return getRecipenote(); - } - - @Override - public String value10() { - return getIncredients(); - } - - @Override - public String value11() { - return getRecipefilename(); - } - - @Override - public TSalesRecord value1(Integer value) { - setPk(value); - return this; - } - - @Override - public TSalesRecord value2(String value) { - setTrader(value); - return this; - } - - @Override - public TSalesRecord value3(Integer value) { - setFkCamp(value); - return this; - } - - @Override - public TSalesRecord value4(String value) { - setProvider(value); - return this; - } - - @Override - public TSalesRecord value5(BigDecimal value) { - setCash(value); - return this; - } - - @Override - public TSalesRecord value6(LocalDateTime value) { - setBuydate(value); - return this; - } - - @Override - public TSalesRecord value7(String value) { - setRecipenumber(value); - return this; - } - - @Override - public TSalesRecord value8(byte[] value) { - setRecipeshot(value); - return this; - } - - @Override - public TSalesRecord value9(String value) { - setRecipenote(value); - return this; - } - - @Override - public TSalesRecord value10(String value) { - setIncredients(value); - return this; - } - - @Override - public TSalesRecord value11(String value) { - setRecipefilename(value); - return this; - } - - @Override - public TSalesRecord values(Integer value1, String value2, Integer value3, String value4, BigDecimal value5, LocalDateTime value6, String value7, byte[] value8, String value9, String value10, String value11) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - value11(value11); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -487,26 +223,6 @@ public class TSalesRecord extends UpdatableRecordImpl implements R setRecipenote(recipenote); setIncredients(incredients); setRecipefilename(recipefilename); - } - - /** - * 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 350dd8b..00b6c34 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 @@ -6,9 +6,6 @@ package de.jottyfan.camporganizer.db.jooq.tables.records; import de.jottyfan.camporganizer.db.jooq.tables.TSalescontent; -import org.jooq.Field; -import org.jooq.Record2; -import org.jooq.Row2; import org.jooq.impl.TableRecordImpl; @@ -16,7 +13,7 @@ import org.jooq.impl.TableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TSalescontentRecord extends TableRecordImpl implements Record2 { +public class TSalescontentRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; @@ -50,69 +47,6 @@ public class TSalescontentRecord extends TableRecordImpl im return (String) get(1); } - // ------------------------------------------------------------------------- - // Record2 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row2 fieldsRow() { - return (Row2) super.fieldsRow(); - } - - @Override - public Row2 valuesRow() { - return (Row2) super.valuesRow(); - } - - @Override - public Field field1() { - return TSalescontent.T_SALESCONTENT.FK_SALES; - } - - @Override - public Field field2() { - return TSalescontent.T_SALESCONTENT.FK_SALESCONTENTTYPE; - } - - @Override - public Integer component1() { - return getFkSales(); - } - - @Override - public String component2() { - return getFkSalescontenttype(); - } - - @Override - public Integer value1() { - return getFkSales(); - } - - @Override - public String value2() { - return getFkSalescontenttype(); - } - - @Override - public TSalescontentRecord value1(Integer value) { - setFkSales(value); - return this; - } - - @Override - public TSalescontentRecord value2(String value) { - setFkSalescontenttype(value); - return this; - } - - @Override - public TSalescontentRecord values(Integer value1, String value2) { - value1(value1); - value2(value2); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -132,17 +66,6 @@ public class TSalescontentRecord extends TableRecordImpl im setFkSales(fkSales); setFkSalescontenttype(fkSalescontenttype); - } - - /** - * 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 3c88f8d..aef4035 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 @@ -6,9 +6,7 @@ package de.jottyfan.camporganizer.db.jooq.tables.records; import de.jottyfan.camporganizer.db.jooq.tables.TSalescontenttype; -import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Row1; import org.jooq.impl.UpdatableRecordImpl; @@ -16,7 +14,7 @@ import org.jooq.impl.UpdatableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class TSalescontenttypeRecord extends UpdatableRecordImpl implements Record1 { +public class TSalescontenttypeRecord extends UpdatableRecordImpl { private static final long serialVersionUID = 1L; @@ -44,47 +42,6 @@ public class TSalescontenttypeRecord extends UpdatableRecordImpl fieldsRow() { - return (Row1) super.fieldsRow(); - } - - @Override - public Row1 valuesRow() { - return (Row1) super.valuesRow(); - } - - @Override - public Field field1() { - return TSalescontenttype.T_SALESCONTENTTYPE.NAME; - } - - @Override - public String component1() { - return getName(); - } - - @Override - public String value1() { - return getName(); - } - - @Override - public TSalescontenttypeRecord value1(String value) { - setName(value); - return this; - } - - @Override - public TSalescontenttypeRecord values(String value1) { - value1(value1); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -103,16 +60,6 @@ public class TSalescontenttypeRecord extends UpdatableRecordImpl implements Record3 { - - private static final long serialVersionUID = 1L; - - /** - * Setter for camp.t_salesprofile.pk. - */ - public TSalesprofileRecord setPk(Integer value) { - set(0, value); - return this; - } - - /** - * Getter for camp.t_salesprofile.pk. - */ - public Integer getPk() { - return (Integer) get(0); - } - - /** - * Setter for camp.t_salesprofile.fk_camp. - */ - public TSalesprofileRecord setFkCamp(Integer value) { - set(1, value); - return this; - } - - /** - * Getter for camp.t_salesprofile.fk_camp. - */ - public Integer getFkCamp() { - return (Integer) get(1); - } - - /** - * Setter for camp.t_salesprofile.fk_profile. - */ - public TSalesprofileRecord setFkProfile(Integer value) { - set(2, value); - return this; - } - - /** - * Getter for camp.t_salesprofile.fk_profile. - */ - public Integer getFkProfile() { - return (Integer) get(2); - } - - // ------------------------------------------------------------------------- - // Primary key information - // ------------------------------------------------------------------------- - - @Override - public Record1 key() { - return (Record1) super.key(); - } - - // ------------------------------------------------------------------------- - // Record3 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row3 fieldsRow() { - return (Row3) super.fieldsRow(); - } - - @Override - public Row3 valuesRow() { - return (Row3) super.valuesRow(); - } - - @Override - public Field field1() { - return TSalesprofile.T_SALESPROFILE.PK; - } - - @Override - public Field field2() { - return TSalesprofile.T_SALESPROFILE.FK_CAMP; - } - - @Override - public Field field3() { - return TSalesprofile.T_SALESPROFILE.FK_PROFILE; - } - - @Override - public Integer component1() { - return getPk(); - } - - @Override - public Integer component2() { - return getFkCamp(); - } - - @Override - public Integer component3() { - return getFkProfile(); - } - - @Override - public Integer value1() { - return getPk(); - } - - @Override - public Integer value2() { - return getFkCamp(); - } - - @Override - public Integer value3() { - return getFkProfile(); - } - - @Override - public TSalesprofileRecord value1(Integer value) { - setPk(value); - return this; - } - - @Override - public TSalesprofileRecord value2(Integer value) { - setFkCamp(value); - return this; - } - - @Override - public TSalesprofileRecord value3(Integer value) { - setFkProfile(value); - return this; - } - - @Override - public TSalesprofileRecord values(Integer value1, Integer value2, Integer value3) { - value1(value1); - value2(value2); - value3(value3); - return this; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached TSalesprofileRecord - */ - public TSalesprofileRecord() { - super(TSalesprofile.T_SALESPROFILE); - } - - /** - * Create a detached, initialised TSalesprofileRecord - */ - public TSalesprofileRecord(Integer pk, Integer fkCamp, Integer fkProfile) { - super(TSalesprofile.T_SALESPROFILE); - - setPk(pk); - setFkCamp(fkCamp); - setFkProfile(fkProfile); - } - - /** - * Create a detached, initialised TSalesprofileRecord - */ - public TSalesprofileRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.TSalesprofile value) { - super(TSalesprofile.T_SALESPROFILE); - - if (value != null) { - setPk(value.getPk()); - setFkCamp(value.getFkCamp()); - setFkProfile(value.getFkProfile()); - } - } -} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VAdultRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VAdultRecord.java deleted file mode 100644 index 8776ec1..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VAdultRecord.java +++ /dev/null @@ -1,267 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package de.jottyfan.camporganizer.db.jooq.tables.records; - - -import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; -import de.jottyfan.camporganizer.db.jooq.tables.VAdult; - -import org.jooq.Field; -import org.jooq.Record5; -import org.jooq.Row5; -import org.jooq.impl.TableRecordImpl; -import org.jooq.types.YearToSecond; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VAdultRecord extends TableRecordImpl implements Record5 { - - private static final long serialVersionUID = 1L; - - /** - * Setter for camp.v_adult.age. - */ - public VAdultRecord setAge(YearToSecond value) { - set(0, value); - return this; - } - - /** - * Getter for camp.v_adult.age. - */ - public YearToSecond getAge() { - return (YearToSecond) get(0); - } - - /** - * Setter for camp.v_adult.forename. - */ - public VAdultRecord setForename(String value) { - set(1, value); - return this; - } - - /** - * Getter for camp.v_adult.forename. - */ - public String getForename() { - return (String) get(1); - } - - /** - * Setter for camp.v_adult.surname. - */ - public VAdultRecord setSurname(String value) { - set(2, value); - return this; - } - - /** - * Getter for camp.v_adult.surname. - */ - public String getSurname() { - return (String) get(2); - } - - /** - * Setter for camp.v_adult.camprole. - */ - public VAdultRecord setCamprole(EnumCamprole value) { - set(3, value); - return this; - } - - /** - * Getter for camp.v_adult.camprole. - */ - public EnumCamprole getCamprole() { - return (EnumCamprole) get(3); - } - - /** - * Setter for camp.v_adult.adult. - */ - public VAdultRecord setAdult(Boolean value) { - set(4, value); - return this; - } - - /** - * Getter for camp.v_adult.adult. - */ - public Boolean getAdult() { - return (Boolean) get(4); - } - - // ------------------------------------------------------------------------- - // Record5 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); - } - - @Override - public Row5 valuesRow() { - return (Row5) super.valuesRow(); - } - - @Override - public Field field1() { - return VAdult.V_ADULT.AGE; - } - - @Override - public Field field2() { - return VAdult.V_ADULT.FORENAME; - } - - @Override - public Field field3() { - return VAdult.V_ADULT.SURNAME; - } - - @Override - public Field field4() { - return VAdult.V_ADULT.CAMPROLE; - } - - @Override - public Field field5() { - return VAdult.V_ADULT.ADULT; - } - - @Override - public YearToSecond component1() { - return getAge(); - } - - @Override - public String component2() { - return getForename(); - } - - @Override - public String component3() { - return getSurname(); - } - - @Override - public EnumCamprole component4() { - return getCamprole(); - } - - @Override - public Boolean component5() { - return getAdult(); - } - - @Override - public YearToSecond value1() { - return getAge(); - } - - @Override - public String value2() { - return getForename(); - } - - @Override - public String value3() { - return getSurname(); - } - - @Override - public EnumCamprole value4() { - return getCamprole(); - } - - @Override - public Boolean value5() { - return getAdult(); - } - - @Override - public VAdultRecord value1(YearToSecond value) { - setAge(value); - return this; - } - - @Override - public VAdultRecord value2(String value) { - setForename(value); - return this; - } - - @Override - public VAdultRecord value3(String value) { - setSurname(value); - return this; - } - - @Override - public VAdultRecord value4(EnumCamprole value) { - setCamprole(value); - return this; - } - - @Override - public VAdultRecord value5(Boolean value) { - setAdult(value); - return this; - } - - @Override - public VAdultRecord values(YearToSecond value1, String value2, String value3, EnumCamprole value4, Boolean value5) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - return this; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached VAdultRecord - */ - public VAdultRecord() { - super(VAdult.V_ADULT); - } - - /** - * Create a detached, initialised VAdultRecord - */ - public VAdultRecord(YearToSecond age, String forename, String surname, EnumCamprole camprole, Boolean adult) { - super(VAdult.V_ADULT); - - setAge(age); - setForename(forename); - setSurname(surname); - setCamprole(camprole); - setAdult(adult); - } - - /** - * Create a detached, initialised VAdultRecord - */ - public VAdultRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VAdult value) { - super(VAdult.V_ADULT); - - if (value != null) { - setAge(value.getAge()); - setForename(value.getForename()); - setSurname(value.getSurname()); - setCamprole(value.getCamprole()); - setAdult(value.getAdult()); - } - } -} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VBudgetRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VBudgetRecord.java index e0f58d5..0a05d16 100644 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VBudgetRecord.java +++ b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VBudgetRecord.java @@ -8,9 +8,6 @@ import de.jottyfan.camporganizer.db.jooq.tables.VBudget; import java.math.BigDecimal; -import org.jooq.Field; -import org.jooq.Record5; -import org.jooq.Row5; import org.jooq.impl.TableRecordImpl; @@ -18,7 +15,7 @@ import org.jooq.impl.TableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VBudgetRecord extends TableRecordImpl implements Record5 { +public class VBudgetRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; @@ -97,135 +94,6 @@ public class VBudgetRecord extends TableRecordImpl implements Rec return (Double) get(4); } - // ------------------------------------------------------------------------- - // Record5 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); - } - - @Override - public Row5 valuesRow() { - return (Row5) super.valuesRow(); - } - - @Override - public Field field1() { - return VBudget.V_BUDGET.BUDGET; - } - - @Override - public Field field2() { - return VBudget.V_BUDGET.FK_CAMP; - } - - @Override - public Field field3() { - return VBudget.V_BUDGET.NAME; - } - - @Override - public Field field4() { - return VBudget.V_BUDGET.LOCATION; - } - - @Override - public Field field5() { - return VBudget.V_BUDGET.YEAR; - } - - @Override - public BigDecimal component1() { - return getBudget(); - } - - @Override - public Integer component2() { - return getFkCamp(); - } - - @Override - public String component3() { - return getName(); - } - - @Override - public String component4() { - return getLocation(); - } - - @Override - public Double component5() { - return getYear(); - } - - @Override - public BigDecimal value1() { - return getBudget(); - } - - @Override - public Integer value2() { - return getFkCamp(); - } - - @Override - public String value3() { - return getName(); - } - - @Override - public String value4() { - return getLocation(); - } - - @Override - public Double value5() { - return getYear(); - } - - @Override - public VBudgetRecord value1(BigDecimal value) { - setBudget(value); - return this; - } - - @Override - public VBudgetRecord value2(Integer value) { - setFkCamp(value); - return this; - } - - @Override - public VBudgetRecord value3(String value) { - setName(value); - return this; - } - - @Override - public VBudgetRecord value4(String value) { - setLocation(value); - return this; - } - - @Override - public VBudgetRecord value5(Double value) { - setYear(value); - return this; - } - - @Override - public VBudgetRecord values(BigDecimal value1, Integer value2, String value3, String value4, Double value5) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -248,20 +116,6 @@ public class VBudgetRecord extends TableRecordImpl implements Rec setName(name); setLocation(location); setYear(year); - } - - /** - * 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 e5c4c52..eaf3add 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 @@ -8,9 +8,6 @@ import de.jottyfan.camporganizer.db.jooq.tables.VCampBudget; import java.math.BigDecimal; -import org.jooq.Field; -import org.jooq.Record4; -import org.jooq.Row4; import org.jooq.impl.TableRecordImpl; @@ -18,7 +15,7 @@ import org.jooq.impl.TableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VCampBudgetRecord extends TableRecordImpl implements Record4 { +public class VCampBudgetRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; @@ -82,113 +79,6 @@ public class VCampBudgetRecord extends TableRecordImpl implem return (Double) get(3); } - // ------------------------------------------------------------------------- - // Record4 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); - } - - @Override - public Field field1() { - return VCampBudget.V_CAMP_BUDGET.BUDGET; - } - - @Override - public Field field2() { - return VCampBudget.V_CAMP_BUDGET.FK_CAMP; - } - - @Override - public Field field3() { - return VCampBudget.V_CAMP_BUDGET.CAMP_NAME; - } - - @Override - public Field field4() { - return VCampBudget.V_CAMP_BUDGET.YEAR; - } - - @Override - public BigDecimal component1() { - return getBudget(); - } - - @Override - public Integer component2() { - return getFkCamp(); - } - - @Override - public String component3() { - return getCampName(); - } - - @Override - public Double component4() { - return getYear(); - } - - @Override - public BigDecimal value1() { - return getBudget(); - } - - @Override - public Integer value2() { - return getFkCamp(); - } - - @Override - public String value3() { - return getCampName(); - } - - @Override - public Double value4() { - return getYear(); - } - - @Override - public VCampBudgetRecord value1(BigDecimal value) { - setBudget(value); - return this; - } - - @Override - public VCampBudgetRecord value2(Integer value) { - setFkCamp(value); - return this; - } - - @Override - public VCampBudgetRecord value3(String value) { - setCampName(value); - return this; - } - - @Override - public VCampBudgetRecord value4(Double value) { - setYear(value); - return this; - } - - @Override - public VCampBudgetRecord values(BigDecimal value1, Integer value2, String value3, Double value4) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -210,19 +100,6 @@ public class VCampBudgetRecord extends TableRecordImpl implem setFkCamp(fkCamp); setCampName(campName); setYear(year); - } - - /** - * 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 35ab926..01832e0 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 @@ -8,9 +8,6 @@ import de.jottyfan.camporganizer.db.jooq.tables.VCampBudgetYear; import java.math.BigDecimal; -import org.jooq.Field; -import org.jooq.Record2; -import org.jooq.Row2; import org.jooq.impl.TableRecordImpl; @@ -18,7 +15,7 @@ import org.jooq.impl.TableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VCampBudgetYearRecord extends TableRecordImpl implements Record2 { +public class VCampBudgetYearRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; @@ -52,69 +49,6 @@ public class VCampBudgetYearRecord extends TableRecordImpl fieldsRow() { - return (Row2) super.fieldsRow(); - } - - @Override - public Row2 valuesRow() { - return (Row2) super.valuesRow(); - } - - @Override - public Field field1() { - return VCampBudgetYear.V_CAMP_BUDGET_YEAR.SUM; - } - - @Override - public Field field2() { - return VCampBudgetYear.V_CAMP_BUDGET_YEAR.YEAR; - } - - @Override - public BigDecimal component1() { - return getSum(); - } - - @Override - public Double component2() { - return getYear(); - } - - @Override - public BigDecimal value1() { - return getSum(); - } - - @Override - public Double value2() { - return getYear(); - } - - @Override - public VCampBudgetYearRecord value1(BigDecimal value) { - setSum(value); - return this; - } - - @Override - public VCampBudgetYearRecord value2(Double value) { - setYear(value); - return this; - } - - @Override - public VCampBudgetYearRecord values(BigDecimal value1, Double value2) { - value1(value1); - value2(value2); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -134,17 +68,6 @@ public class VCampBudgetYearRecord extends TableRecordImpl implements Record13 { +public class VCampRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; @@ -217,311 +214,6 @@ public class VCampRecord extends TableRecordImpl implements Record1 return (Integer) get(12); } - // ------------------------------------------------------------------------- - // Record13 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row13 fieldsRow() { - return (Row13) super.fieldsRow(); - } - - @Override - public Row13 valuesRow() { - return (Row13) super.valuesRow(); - } - - @Override - public Field field1() { - return VCamp.V_CAMP.PK; - } - - @Override - public Field field2() { - return VCamp.V_CAMP.IS_OVER; - } - - @Override - public Field field3() { - return VCamp.V_CAMP.NAME; - } - - @Override - public Field field4() { - return VCamp.V_CAMP.ARRIVE; - } - - @Override - public Field field5() { - return VCamp.V_CAMP.DEPART; - } - - @Override - public Field field6() { - return VCamp.V_CAMP.YEAR; - } - - @Override - public Field field7() { - return VCamp.V_CAMP.LOCATION_NAME; - } - - @Override - public Field field8() { - return VCamp.V_CAMP.MIN_AGE; - } - - @Override - public Field field9() { - return VCamp.V_CAMP.MAX_AGE; - } - - @Override - public Field field10() { - return VCamp.V_CAMP.URL; - } - - @Override - public Field field11() { - return VCamp.V_CAMP.PRICE; - } - - @Override - public Field field12() { - return VCamp.V_CAMP.COUNTRIES; - } - - @Override - public Field field13() { - return VCamp.V_CAMP.FK_DOCUMENT; - } - - @Override - public Integer component1() { - return getPk(); - } - - @Override - public Boolean component2() { - return getIsOver(); - } - - @Override - public String component3() { - return getName(); - } - - @Override - public LocalDateTime component4() { - return getArrive(); - } - - @Override - public LocalDateTime component5() { - return getDepart(); - } - - @Override - public Double component6() { - return getYear(); - } - - @Override - public String component7() { - return getLocationName(); - } - - @Override - public Integer component8() { - return getMinAge(); - } - - @Override - public Integer component9() { - return getMaxAge(); - } - - @Override - public String component10() { - return getUrl(); - } - - @Override - public String component11() { - return getPrice(); - } - - @Override - public String component12() { - return getCountries(); - } - - @Override - public Integer component13() { - return getFkDocument(); - } - - @Override - public Integer value1() { - return getPk(); - } - - @Override - public Boolean value2() { - return getIsOver(); - } - - @Override - public String value3() { - return getName(); - } - - @Override - public LocalDateTime value4() { - return getArrive(); - } - - @Override - public LocalDateTime value5() { - return getDepart(); - } - - @Override - public Double value6() { - return getYear(); - } - - @Override - public String value7() { - return getLocationName(); - } - - @Override - public Integer value8() { - return getMinAge(); - } - - @Override - public Integer value9() { - return getMaxAge(); - } - - @Override - public String value10() { - return getUrl(); - } - - @Override - public String value11() { - return getPrice(); - } - - @Override - public String value12() { - return getCountries(); - } - - @Override - public Integer value13() { - return getFkDocument(); - } - - @Override - public VCampRecord value1(Integer value) { - setPk(value); - return this; - } - - @Override - public VCampRecord value2(Boolean value) { - setIsOver(value); - return this; - } - - @Override - public VCampRecord value3(String value) { - setName(value); - return this; - } - - @Override - public VCampRecord value4(LocalDateTime value) { - setArrive(value); - return this; - } - - @Override - public VCampRecord value5(LocalDateTime value) { - setDepart(value); - return this; - } - - @Override - public VCampRecord value6(Double value) { - setYear(value); - return this; - } - - @Override - public VCampRecord value7(String value) { - setLocationName(value); - return this; - } - - @Override - public VCampRecord value8(Integer value) { - setMinAge(value); - return this; - } - - @Override - public VCampRecord value9(Integer value) { - setMaxAge(value); - return this; - } - - @Override - public VCampRecord value10(String value) { - setUrl(value); - return this; - } - - @Override - public VCampRecord value11(String value) { - setPrice(value); - return this; - } - - @Override - public VCampRecord value12(String value) { - setCountries(value); - return this; - } - - @Override - public VCampRecord value13(Integer value) { - setFkDocument(value); - return this; - } - - @Override - public VCampRecord values(Integer value1, Boolean value2, String value3, LocalDateTime value4, LocalDateTime value5, Double value6, String value7, Integer value8, Integer value9, String value10, String value11, String value12, Integer value13) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - value11(value11); - value12(value12); - value13(value13); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -552,28 +244,6 @@ public class VCampRecord extends TableRecordImpl implements Record1 setPrice(price); setCountries(countries); setFkDocument(fkDocument); - } - - /** - * 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 bd9848b..6304459 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 @@ -10,9 +10,6 @@ import de.jottyfan.camporganizer.db.jooq.tables.VCampdocument; import java.time.LocalDateTime; -import org.jooq.Field; -import org.jooq.Record8; -import org.jooq.Row8; import org.jooq.impl.TableRecordImpl; @@ -20,7 +17,7 @@ import org.jooq.impl.TableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VCampdocumentRecord extends TableRecordImpl implements Record8 { +public class VCampdocumentRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; @@ -144,201 +141,6 @@ public class VCampdocumentRecord extends TableRecordImpl im return (EnumFiletype) get(7); } - // ------------------------------------------------------------------------- - // Record8 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row8 fieldsRow() { - return (Row8) super.fieldsRow(); - } - - @Override - public Row8 valuesRow() { - return (Row8) super.valuesRow(); - } - - @Override - public Field field1() { - return VCampdocument.V_CAMPDOCUMENT.FK_CAMP; - } - - @Override - public Field field2() { - return VCampdocument.V_CAMPDOCUMENT.CAMPNAME; - } - - @Override - public Field field3() { - return VCampdocument.V_CAMPDOCUMENT.ARRIVE; - } - - @Override - public Field field4() { - return VCampdocument.V_CAMPDOCUMENT.FK_DOCUMENT; - } - - @Override - public Field field5() { - return VCampdocument.V_CAMPDOCUMENT.DOCUMENT; - } - - @Override - public Field field6() { - return VCampdocument.V_CAMPDOCUMENT.DOCUMENTNAME; - } - - @Override - public Field field7() { - return VCampdocument.V_CAMPDOCUMENT.DOCTYPE; - } - - @Override - public Field field8() { - return VCampdocument.V_CAMPDOCUMENT.FILETYPE; - } - - @Override - public Integer component1() { - return getFkCamp(); - } - - @Override - public String component2() { - return getCampname(); - } - - @Override - public LocalDateTime component3() { - return getArrive(); - } - - @Override - public Integer component4() { - return getFkDocument(); - } - - @Override - public String component5() { - return getDocument(); - } - - @Override - public String component6() { - return getDocumentname(); - } - - @Override - public EnumDocument component7() { - return getDoctype(); - } - - @Override - public EnumFiletype component8() { - return getFiletype(); - } - - @Override - public Integer value1() { - return getFkCamp(); - } - - @Override - public String value2() { - return getCampname(); - } - - @Override - public LocalDateTime value3() { - return getArrive(); - } - - @Override - public Integer value4() { - return getFkDocument(); - } - - @Override - public String value5() { - return getDocument(); - } - - @Override - public String value6() { - return getDocumentname(); - } - - @Override - public EnumDocument value7() { - return getDoctype(); - } - - @Override - public EnumFiletype value8() { - return getFiletype(); - } - - @Override - public VCampdocumentRecord value1(Integer value) { - setFkCamp(value); - return this; - } - - @Override - public VCampdocumentRecord value2(String value) { - setCampname(value); - return this; - } - - @Override - public VCampdocumentRecord value3(LocalDateTime value) { - setArrive(value); - return this; - } - - @Override - public VCampdocumentRecord value4(Integer value) { - setFkDocument(value); - return this; - } - - @Override - public VCampdocumentRecord value5(String value) { - setDocument(value); - return this; - } - - @Override - public VCampdocumentRecord value6(String value) { - setDocumentname(value); - return this; - } - - @Override - public VCampdocumentRecord value7(EnumDocument value) { - setDoctype(value); - return this; - } - - @Override - public VCampdocumentRecord value8(EnumFiletype value) { - setFiletype(value); - return this; - } - - @Override - public VCampdocumentRecord values(Integer value1, String value2, LocalDateTime value3, Integer value4, String value5, String value6, EnumDocument value7, EnumFiletype value8) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -364,23 +166,6 @@ public class VCampdocumentRecord extends TableRecordImpl im setDocumentname(documentname); setDoctype(doctype); setFiletype(filetype); - } - - /** - * 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 42fe77a..fda7b8d 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 @@ -7,9 +7,6 @@ package de.jottyfan.camporganizer.db.jooq.tables.records; import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; import de.jottyfan.camporganizer.db.jooq.tables.VCamprole; -import org.jooq.Field; -import org.jooq.Record1; -import org.jooq.Row1; import org.jooq.impl.TableRecordImpl; @@ -17,7 +14,7 @@ import org.jooq.impl.TableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VCamproleRecord extends TableRecordImpl implements Record1 { +public class VCamproleRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; @@ -36,47 +33,6 @@ public class VCamproleRecord extends TableRecordImpl implements return (EnumCamprole) get(0); } - // ------------------------------------------------------------------------- - // Record1 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row1 fieldsRow() { - return (Row1) super.fieldsRow(); - } - - @Override - public Row1 valuesRow() { - return (Row1) super.valuesRow(); - } - - @Override - public Field field1() { - return VCamprole.V_CAMPROLE.NAME; - } - - @Override - public EnumCamprole component1() { - return getName(); - } - - @Override - public EnumCamprole value1() { - return getName(); - } - - @Override - public VCamproleRecord value1(EnumCamprole value) { - setName(value); - return this; - } - - @Override - public VCamproleRecord values(EnumCamprole value1) { - value1(value1); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -95,16 +51,6 @@ public class VCamproleRecord extends TableRecordImpl implements super(VCamprole.V_CAMPROLE); setName(name); - } - - /** - * 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 caed125..9aa75c4 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 @@ -8,9 +8,6 @@ import de.jottyfan.camporganizer.db.jooq.enums.EnumDocument; import de.jottyfan.camporganizer.db.jooq.enums.EnumFiletype; import de.jottyfan.camporganizer.db.jooq.tables.VDocument; -import org.jooq.Field; -import org.jooq.Record6; -import org.jooq.Row6; import org.jooq.impl.TableRecordImpl; @@ -18,7 +15,7 @@ import org.jooq.impl.TableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VDocumentRecord extends TableRecordImpl implements Record6 { +public class VDocumentRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; @@ -112,157 +109,6 @@ public class VDocumentRecord extends TableRecordImpl implements return (String) get(5); } - // ------------------------------------------------------------------------- - // Record6 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row6 fieldsRow() { - return (Row6) super.fieldsRow(); - } - - @Override - public Row6 valuesRow() { - return (Row6) super.valuesRow(); - } - - @Override - public Field field1() { - return VDocument.V_DOCUMENT.PK; - } - - @Override - public Field field2() { - return VDocument.V_DOCUMENT.DOCTYPE; - } - - @Override - public Field field3() { - return VDocument.V_DOCUMENT.NAME; - } - - @Override - public Field field4() { - return VDocument.V_DOCUMENT.DOCUMENT; - } - - @Override - public Field field5() { - return VDocument.V_DOCUMENT.FILETYPE; - } - - @Override - public Field field6() { - return VDocument.V_DOCUMENT.ROLES; - } - - @Override - public Integer component1() { - return getPk(); - } - - @Override - public EnumDocument component2() { - return getDoctype(); - } - - @Override - public String component3() { - return getName(); - } - - @Override - public String component4() { - return getDocument(); - } - - @Override - public EnumFiletype component5() { - return getFiletype(); - } - - @Override - public String component6() { - return getRoles(); - } - - @Override - public Integer value1() { - return getPk(); - } - - @Override - public EnumDocument value2() { - return getDoctype(); - } - - @Override - public String value3() { - return getName(); - } - - @Override - public String value4() { - return getDocument(); - } - - @Override - public EnumFiletype value5() { - return getFiletype(); - } - - @Override - public String value6() { - return getRoles(); - } - - @Override - public VDocumentRecord value1(Integer value) { - setPk(value); - return this; - } - - @Override - public VDocumentRecord value2(EnumDocument value) { - setDoctype(value); - return this; - } - - @Override - public VDocumentRecord value3(String value) { - setName(value); - return this; - } - - @Override - public VDocumentRecord value4(String value) { - setDocument(value); - return this; - } - - @Override - public VDocumentRecord value5(EnumFiletype value) { - setFiletype(value); - return this; - } - - @Override - public VDocumentRecord value6(String value) { - setRoles(value); - return this; - } - - @Override - public VDocumentRecord values(Integer value1, EnumDocument value2, String value3, String value4, EnumFiletype value5, String value6) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -286,21 +132,6 @@ public class VDocumentRecord extends TableRecordImpl implements setDocument(document); setFiletype(filetype); setRoles(roles); - } - - /** - * 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/VDsgvoDeleteCandidateRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VDsgvoDeleteCandidateRecord.java deleted file mode 100644 index 057b2e1..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VDsgvoDeleteCandidateRecord.java +++ /dev/null @@ -1,423 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package de.jottyfan.camporganizer.db.jooq.tables.records; - - -import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; -import de.jottyfan.camporganizer.db.jooq.tables.VDsgvoDeleteCandidate; - -import org.jooq.Field; -import org.jooq.Record9; -import org.jooq.Row9; -import org.jooq.impl.TableRecordImpl; -import org.jooq.types.YearToSecond; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VDsgvoDeleteCandidateRecord extends TableRecordImpl implements Record9 { - - private static final long serialVersionUID = 1L; - - /** - * Setter for camp.v_dsgvo_delete_candidate.fk_person. - */ - public VDsgvoDeleteCandidateRecord setFkPerson(Integer value) { - set(0, value); - return this; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.fk_person. - */ - public Integer getFkPerson() { - return (Integer) get(0); - } - - /** - * Setter for camp.v_dsgvo_delete_candidate.forename. - */ - public VDsgvoDeleteCandidateRecord setForename(String value) { - set(1, value); - return this; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.forename. - */ - public String getForename() { - return (String) get(1); - } - - /** - * Setter for camp.v_dsgvo_delete_candidate.surname. - */ - public VDsgvoDeleteCandidateRecord setSurname(String value) { - set(2, value); - return this; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.surname. - */ - public String getSurname() { - return (String) get(2); - } - - /** - * Setter for camp.v_dsgvo_delete_candidate.fk_camp. - */ - public VDsgvoDeleteCandidateRecord setFkCamp(Integer value) { - set(3, value); - return this; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.fk_camp. - */ - public Integer getFkCamp() { - return (Integer) get(3); - } - - /** - * Setter for camp.v_dsgvo_delete_candidate.age. - */ - public VDsgvoDeleteCandidateRecord setAge(YearToSecond value) { - set(4, value); - return this; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.age. - */ - public YearToSecond getAge() { - return (YearToSecond) get(4); - } - - /** - * Setter for camp.v_dsgvo_delete_candidate.camprole. - */ - public VDsgvoDeleteCandidateRecord setCamprole(EnumCamprole value) { - set(5, value); - return this; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.camprole. - */ - public EnumCamprole getCamprole() { - return (EnumCamprole) get(5); - } - - /** - * Setter for camp.v_dsgvo_delete_candidate.name. - */ - public VDsgvoDeleteCandidateRecord setName(String value) { - set(6, value); - return this; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.name. - */ - public String getName() { - return (String) get(6); - } - - /** - * Setter for camp.v_dsgvo_delete_candidate.year. - */ - public VDsgvoDeleteCandidateRecord setYear(Double value) { - set(7, value); - return this; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.year. - */ - public Double getYear() { - return (Double) get(7); - } - - /** - * Setter for camp.v_dsgvo_delete_candidate.is_over. - */ - public VDsgvoDeleteCandidateRecord setIsOver(Boolean value) { - set(8, value); - return this; - } - - /** - * Getter for camp.v_dsgvo_delete_candidate.is_over. - */ - public Boolean getIsOver() { - return (Boolean) get(8); - } - - // ------------------------------------------------------------------------- - // Record9 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row9 fieldsRow() { - return (Row9) super.fieldsRow(); - } - - @Override - public Row9 valuesRow() { - return (Row9) super.valuesRow(); - } - - @Override - public Field field1() { - return VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE.FK_PERSON; - } - - @Override - public Field field2() { - return VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE.FORENAME; - } - - @Override - public Field field3() { - return VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE.SURNAME; - } - - @Override - public Field field4() { - return VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE.FK_CAMP; - } - - @Override - public Field field5() { - return VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE.AGE; - } - - @Override - public Field field6() { - return VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE.CAMPROLE; - } - - @Override - public Field field7() { - return VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE.NAME; - } - - @Override - public Field field8() { - return VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE.YEAR; - } - - @Override - public Field field9() { - return VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE.IS_OVER; - } - - @Override - public Integer component1() { - return getFkPerson(); - } - - @Override - public String component2() { - return getForename(); - } - - @Override - public String component3() { - return getSurname(); - } - - @Override - public Integer component4() { - return getFkCamp(); - } - - @Override - public YearToSecond component5() { - return getAge(); - } - - @Override - public EnumCamprole component6() { - return getCamprole(); - } - - @Override - public String component7() { - return getName(); - } - - @Override - public Double component8() { - return getYear(); - } - - @Override - public Boolean component9() { - return getIsOver(); - } - - @Override - public Integer value1() { - return getFkPerson(); - } - - @Override - public String value2() { - return getForename(); - } - - @Override - public String value3() { - return getSurname(); - } - - @Override - public Integer value4() { - return getFkCamp(); - } - - @Override - public YearToSecond value5() { - return getAge(); - } - - @Override - public EnumCamprole value6() { - return getCamprole(); - } - - @Override - public String value7() { - return getName(); - } - - @Override - public Double value8() { - return getYear(); - } - - @Override - public Boolean value9() { - return getIsOver(); - } - - @Override - public VDsgvoDeleteCandidateRecord value1(Integer value) { - setFkPerson(value); - return this; - } - - @Override - public VDsgvoDeleteCandidateRecord value2(String value) { - setForename(value); - return this; - } - - @Override - public VDsgvoDeleteCandidateRecord value3(String value) { - setSurname(value); - return this; - } - - @Override - public VDsgvoDeleteCandidateRecord value4(Integer value) { - setFkCamp(value); - return this; - } - - @Override - public VDsgvoDeleteCandidateRecord value5(YearToSecond value) { - setAge(value); - return this; - } - - @Override - public VDsgvoDeleteCandidateRecord value6(EnumCamprole value) { - setCamprole(value); - return this; - } - - @Override - public VDsgvoDeleteCandidateRecord value7(String value) { - setName(value); - return this; - } - - @Override - public VDsgvoDeleteCandidateRecord value8(Double value) { - setYear(value); - return this; - } - - @Override - public VDsgvoDeleteCandidateRecord value9(Boolean value) { - setIsOver(value); - return this; - } - - @Override - public VDsgvoDeleteCandidateRecord values(Integer value1, String value2, String value3, Integer value4, YearToSecond value5, EnumCamprole value6, String value7, Double value8, Boolean value9) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - return this; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached VDsgvoDeleteCandidateRecord - */ - public VDsgvoDeleteCandidateRecord() { - super(VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE); - } - - /** - * Create a detached, initialised VDsgvoDeleteCandidateRecord - */ - public VDsgvoDeleteCandidateRecord(Integer fkPerson, String forename, String surname, Integer fkCamp, YearToSecond age, EnumCamprole camprole, String name, Double year, Boolean isOver) { - super(VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE); - - setFkPerson(fkPerson); - setForename(forename); - setSurname(surname); - setFkCamp(fkCamp); - setAge(age); - setCamprole(camprole); - setName(name); - setYear(year); - setIsOver(isOver); - } - - /** - * Create a detached, initialised VDsgvoDeleteCandidateRecord - */ - public VDsgvoDeleteCandidateRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VDsgvoDeleteCandidate value) { - super(VDsgvoDeleteCandidate.V_DSGVO_DELETE_CANDIDATE); - - if (value != null) { - setFkPerson(value.getFkPerson()); - setForename(value.getForename()); - setSurname(value.getSurname()); - setFkCamp(value.getFkCamp()); - setAge(value.getAge()); - setCamprole(value.getCamprole()); - setName(value.getName()); - setYear(value.getYear()); - setIsOver(value.getIsOver()); - } - } -} diff --git a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VFeederRecord.java b/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VFeederRecord.java deleted file mode 100644 index 5ceef99..0000000 --- a/src/main/java/de/jottyfan/camporganizer/db/jooq/tables/records/VFeederRecord.java +++ /dev/null @@ -1,501 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package de.jottyfan.camporganizer.db.jooq.tables.records; - - -import de.jottyfan.camporganizer.db.jooq.enums.EnumSex; -import de.jottyfan.camporganizer.db.jooq.tables.VFeeder; - -import org.jooq.Field; -import org.jooq.Record11; -import org.jooq.Row11; -import org.jooq.impl.TableRecordImpl; -import org.jooq.types.YearToSecond; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VFeederRecord extends TableRecordImpl implements Record11 { - - private static final long serialVersionUID = 1L; - - /** - * Setter for camp.v_feeder.forename. - */ - public VFeederRecord setForename(String value) { - set(0, value); - return this; - } - - /** - * Getter for camp.v_feeder.forename. - */ - public String getForename() { - return (String) get(0); - } - - /** - * Setter for camp.v_feeder.surname. - */ - public VFeederRecord setSurname(String value) { - set(1, value); - return this; - } - - /** - * Getter for camp.v_feeder.surname. - */ - public String getSurname() { - return (String) get(1); - } - - /** - * Setter for camp.v_feeder.street. - */ - public VFeederRecord setStreet(String value) { - set(2, value); - return this; - } - - /** - * Getter for camp.v_feeder.street. - */ - public String getStreet() { - return (String) get(2); - } - - /** - * Setter for camp.v_feeder.zip. - */ - public VFeederRecord setZip(String value) { - set(3, value); - return this; - } - - /** - * Getter for camp.v_feeder.zip. - */ - public String getZip() { - return (String) get(3); - } - - /** - * Setter for camp.v_feeder.city. - */ - public VFeederRecord setCity(String value) { - set(4, value); - return this; - } - - /** - * Getter for camp.v_feeder.city. - */ - public String getCity() { - return (String) get(4); - } - - /** - * Setter for camp.v_feeder.phone. - */ - public VFeederRecord setPhone(String value) { - set(5, value); - return this; - } - - /** - * Getter for camp.v_feeder.phone. - */ - public String getPhone() { - return (String) get(5); - } - - /** - * Setter for camp.v_feeder.age. - */ - public VFeederRecord setAge(YearToSecond value) { - set(6, value); - return this; - } - - /** - * Getter for camp.v_feeder.age. - */ - public YearToSecond getAge() { - return (YearToSecond) get(6); - } - - /** - * Setter for camp.v_feeder.email. - */ - public VFeederRecord setEmail(String value) { - set(7, value); - return this; - } - - /** - * Getter for camp.v_feeder.email. - */ - public String getEmail() { - return (String) get(7); - } - - /** - * Setter for camp.v_feeder.sex. - */ - public VFeederRecord setSex(EnumSex value) { - set(8, value); - return this; - } - - /** - * Getter for camp.v_feeder.sex. - */ - public EnumSex getSex() { - return (EnumSex) get(8); - } - - /** - * Setter for camp.v_feeder.name. - */ - public VFeederRecord setName(String value) { - set(9, value); - return this; - } - - /** - * Getter for camp.v_feeder.name. - */ - public String getName() { - return (String) get(9); - } - - /** - * Setter for camp.v_feeder.year. - */ - public VFeederRecord setYear(Double value) { - set(10, value); - return this; - } - - /** - * Getter for camp.v_feeder.year. - */ - public Double getYear() { - return (Double) get(10); - } - - // ------------------------------------------------------------------------- - // Record11 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row11 fieldsRow() { - return (Row11) super.fieldsRow(); - } - - @Override - public Row11 valuesRow() { - return (Row11) super.valuesRow(); - } - - @Override - public Field field1() { - return VFeeder.V_FEEDER.FORENAME; - } - - @Override - public Field field2() { - return VFeeder.V_FEEDER.SURNAME; - } - - @Override - public Field field3() { - return VFeeder.V_FEEDER.STREET; - } - - @Override - public Field field4() { - return VFeeder.V_FEEDER.ZIP; - } - - @Override - public Field field5() { - return VFeeder.V_FEEDER.CITY; - } - - @Override - public Field field6() { - return VFeeder.V_FEEDER.PHONE; - } - - @Override - public Field field7() { - return VFeeder.V_FEEDER.AGE; - } - - @Override - public Field field8() { - return VFeeder.V_FEEDER.EMAIL; - } - - @Override - public Field field9() { - return VFeeder.V_FEEDER.SEX; - } - - @Override - public Field field10() { - return VFeeder.V_FEEDER.NAME; - } - - @Override - public Field field11() { - return VFeeder.V_FEEDER.YEAR; - } - - @Override - public String component1() { - return getForename(); - } - - @Override - public String component2() { - return getSurname(); - } - - @Override - public String component3() { - return getStreet(); - } - - @Override - public String component4() { - return getZip(); - } - - @Override - public String component5() { - return getCity(); - } - - @Override - public String component6() { - return getPhone(); - } - - @Override - public YearToSecond component7() { - return getAge(); - } - - @Override - public String component8() { - return getEmail(); - } - - @Override - public EnumSex component9() { - return getSex(); - } - - @Override - public String component10() { - return getName(); - } - - @Override - public Double component11() { - return getYear(); - } - - @Override - public String value1() { - return getForename(); - } - - @Override - public String value2() { - return getSurname(); - } - - @Override - public String value3() { - return getStreet(); - } - - @Override - public String value4() { - return getZip(); - } - - @Override - public String value5() { - return getCity(); - } - - @Override - public String value6() { - return getPhone(); - } - - @Override - public YearToSecond value7() { - return getAge(); - } - - @Override - public String value8() { - return getEmail(); - } - - @Override - public EnumSex value9() { - return getSex(); - } - - @Override - public String value10() { - return getName(); - } - - @Override - public Double value11() { - return getYear(); - } - - @Override - public VFeederRecord value1(String value) { - setForename(value); - return this; - } - - @Override - public VFeederRecord value2(String value) { - setSurname(value); - return this; - } - - @Override - public VFeederRecord value3(String value) { - setStreet(value); - return this; - } - - @Override - public VFeederRecord value4(String value) { - setZip(value); - return this; - } - - @Override - public VFeederRecord value5(String value) { - setCity(value); - return this; - } - - @Override - public VFeederRecord value6(String value) { - setPhone(value); - return this; - } - - @Override - public VFeederRecord value7(YearToSecond value) { - setAge(value); - return this; - } - - @Override - public VFeederRecord value8(String value) { - setEmail(value); - return this; - } - - @Override - public VFeederRecord value9(EnumSex value) { - setSex(value); - return this; - } - - @Override - public VFeederRecord value10(String value) { - setName(value); - return this; - } - - @Override - public VFeederRecord value11(Double value) { - setYear(value); - return this; - } - - @Override - public VFeederRecord values(String value1, String value2, String value3, String value4, String value5, String value6, YearToSecond value7, String value8, EnumSex value9, String value10, Double value11) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - value11(value11); - return this; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached VFeederRecord - */ - public VFeederRecord() { - super(VFeeder.V_FEEDER); - } - - /** - * Create a detached, initialised VFeederRecord - */ - public VFeederRecord(String forename, String surname, String street, String zip, String city, String phone, YearToSecond age, String email, EnumSex sex, String name, Double year) { - super(VFeeder.V_FEEDER); - - setForename(forename); - setSurname(surname); - setStreet(street); - setZip(zip); - setCity(city); - setPhone(phone); - setAge(age); - setEmail(email); - setSex(sex); - setName(name); - setYear(year); - } - - /** - * Create a detached, initialised VFeederRecord - */ - public VFeederRecord(de.jottyfan.camporganizer.db.jooq.tables.pojos.VFeeder value) { - super(VFeeder.V_FEEDER); - - if (value != null) { - setForename(value.getForename()); - setSurname(value.getSurname()); - setStreet(value.getStreet()); - setZip(value.getZip()); - setCity(value.getCity()); - setPhone(value.getPhone()); - setAge(value.getAge()); - setEmail(value.getEmail()); - setSex(value.getSex()); - setName(value.getName()); - setYear(value.getYear()); - } - } -} 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 1f9f561..948ccdb 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 @@ -7,9 +7,6 @@ package de.jottyfan.camporganizer.db.jooq.tables.records; import de.jottyfan.camporganizer.db.jooq.enums.EnumRole; import de.jottyfan.camporganizer.db.jooq.tables.VProfile; -import org.jooq.Field; -import org.jooq.Record7; -import org.jooq.Row7; import org.jooq.impl.TableRecordImpl; @@ -17,7 +14,7 @@ import org.jooq.impl.TableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VProfileRecord extends TableRecordImpl implements Record7 { +public class VProfileRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; @@ -126,179 +123,6 @@ public class VProfileRecord extends TableRecordImpl implements R return (EnumRole[]) get(6); } - // ------------------------------------------------------------------------- - // Record7 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row7 fieldsRow() { - return (Row7) super.fieldsRow(); - } - - @Override - public Row7 valuesRow() { - return (Row7) super.valuesRow(); - } - - @Override - public Field field1() { - return VProfile.V_PROFILE.PK; - } - - @Override - public Field field2() { - return VProfile.V_PROFILE.FORENAME; - } - - @Override - public Field field3() { - return VProfile.V_PROFILE.SURNAME; - } - - @Override - public Field field4() { - return VProfile.V_PROFILE.USERNAME; - } - - @Override - public Field field5() { - return VProfile.V_PROFILE.PASSWORD; - } - - @Override - public Field field6() { - return VProfile.V_PROFILE.UUID; - } - - @Override - public Field field7() { - return VProfile.V_PROFILE.ROLES; - } - - @Override - public Integer component1() { - return getPk(); - } - - @Override - public String component2() { - return getForename(); - } - - @Override - public String component3() { - return getSurname(); - } - - @Override - public String component4() { - return getUsername(); - } - - @Override - public String component5() { - return getPassword(); - } - - @Override - public String component6() { - return getUuid(); - } - - @Override - public EnumRole[] component7() { - return getRoles(); - } - - @Override - public Integer value1() { - return getPk(); - } - - @Override - public String value2() { - return getForename(); - } - - @Override - public String value3() { - return getSurname(); - } - - @Override - public String value4() { - return getUsername(); - } - - @Override - public String value5() { - return getPassword(); - } - - @Override - public String value6() { - return getUuid(); - } - - @Override - public EnumRole[] value7() { - return getRoles(); - } - - @Override - public VProfileRecord value1(Integer value) { - setPk(value); - return this; - } - - @Override - public VProfileRecord value2(String value) { - setForename(value); - return this; - } - - @Override - public VProfileRecord value3(String value) { - setSurname(value); - return this; - } - - @Override - public VProfileRecord value4(String value) { - setUsername(value); - return this; - } - - @Override - public VProfileRecord value5(String value) { - setPassword(value); - return this; - } - - @Override - public VProfileRecord value6(String value) { - setUuid(value); - return this; - } - - @Override - public VProfileRecord value7(EnumRole[] value) { - setRoles(value); - return this; - } - - @Override - public VProfileRecord values(Integer value1, String value2, String value3, String value4, String value5, String value6, EnumRole[] value7) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -323,22 +147,6 @@ public class VProfileRecord extends TableRecordImpl implements R setPassword(password); setUuid(uuid); setRoles(roles); - } - - /** - * 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 cb3fe7e..37dc792 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 @@ -9,9 +9,6 @@ import de.jottyfan.camporganizer.db.jooq.tables.VRegistration; import java.time.LocalDate; -import org.jooq.Field; -import org.jooq.Record11; -import org.jooq.Row11; import org.jooq.impl.TableRecordImpl; @@ -19,7 +16,7 @@ import org.jooq.impl.TableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VRegistrationRecord extends TableRecordImpl implements Record11 { +public class VRegistrationRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; @@ -188,267 +185,6 @@ public class VRegistrationRecord extends TableRecordImpl im return (String) get(10); } - // ------------------------------------------------------------------------- - // Record11 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row11 fieldsRow() { - return (Row11) super.fieldsRow(); - } - - @Override - public Row11 valuesRow() { - return (Row11) super.valuesRow(); - } - - @Override - public Field field1() { - return VRegistration.V_REGISTRATION.PK; - } - - @Override - public Field field2() { - return VRegistration.V_REGISTRATION.FORENAME; - } - - @Override - public Field field3() { - return VRegistration.V_REGISTRATION.SURNAME; - } - - @Override - public Field field4() { - return VRegistration.V_REGISTRATION.STREET; - } - - @Override - public Field field5() { - return VRegistration.V_REGISTRATION.ZIP; - } - - @Override - public Field field6() { - return VRegistration.V_REGISTRATION.CITY; - } - - @Override - public Field field7() { - return VRegistration.V_REGISTRATION.PHONE; - } - - @Override - public Field field8() { - return VRegistration.V_REGISTRATION.BIRTHDATE; - } - - @Override - public Field field9() { - return VRegistration.V_REGISTRATION.CAMPROLE; - } - - @Override - public Field field10() { - return VRegistration.V_REGISTRATION.EMAIL; - } - - @Override - public Field field11() { - return VRegistration.V_REGISTRATION.CAMPNAME; - } - - @Override - public Integer component1() { - return getPk(); - } - - @Override - public String component2() { - return getForename(); - } - - @Override - public String component3() { - return getSurname(); - } - - @Override - public String component4() { - return getStreet(); - } - - @Override - public String component5() { - return getZip(); - } - - @Override - public String component6() { - return getCity(); - } - - @Override - public String component7() { - return getPhone(); - } - - @Override - public LocalDate component8() { - return getBirthdate(); - } - - @Override - public EnumCamprole component9() { - return getCamprole(); - } - - @Override - public String component10() { - return getEmail(); - } - - @Override - public String component11() { - return getCampname(); - } - - @Override - public Integer value1() { - return getPk(); - } - - @Override - public String value2() { - return getForename(); - } - - @Override - public String value3() { - return getSurname(); - } - - @Override - public String value4() { - return getStreet(); - } - - @Override - public String value5() { - return getZip(); - } - - @Override - public String value6() { - return getCity(); - } - - @Override - public String value7() { - return getPhone(); - } - - @Override - public LocalDate value8() { - return getBirthdate(); - } - - @Override - public EnumCamprole value9() { - return getCamprole(); - } - - @Override - public String value10() { - return getEmail(); - } - - @Override - public String value11() { - return getCampname(); - } - - @Override - public VRegistrationRecord value1(Integer value) { - setPk(value); - return this; - } - - @Override - public VRegistrationRecord value2(String value) { - setForename(value); - return this; - } - - @Override - public VRegistrationRecord value3(String value) { - setSurname(value); - return this; - } - - @Override - public VRegistrationRecord value4(String value) { - setStreet(value); - return this; - } - - @Override - public VRegistrationRecord value5(String value) { - setZip(value); - return this; - } - - @Override - public VRegistrationRecord value6(String value) { - setCity(value); - return this; - } - - @Override - public VRegistrationRecord value7(String value) { - setPhone(value); - return this; - } - - @Override - public VRegistrationRecord value8(LocalDate value) { - setBirthdate(value); - return this; - } - - @Override - public VRegistrationRecord value9(EnumCamprole value) { - setCamprole(value); - return this; - } - - @Override - public VRegistrationRecord value10(String value) { - setEmail(value); - return this; - } - - @Override - public VRegistrationRecord value11(String value) { - setCampname(value); - return this; - } - - @Override - public VRegistrationRecord values(Integer value1, String value2, String value3, String value4, String value5, String value6, String value7, LocalDate value8, EnumCamprole value9, String value10, String value11) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - value11(value11); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -477,26 +213,6 @@ public class VRegistrationRecord extends TableRecordImpl im setCamprole(camprole); setEmail(email); setCampname(campname); - } - - /** - * 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 2dd8952..9fa1e84 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 @@ -7,9 +7,6 @@ package de.jottyfan.camporganizer.db.jooq.tables.records; import de.jottyfan.camporganizer.db.jooq.enums.EnumRole; import de.jottyfan.camporganizer.db.jooq.tables.VRole; -import org.jooq.Field; -import org.jooq.Record1; -import org.jooq.Row1; import org.jooq.impl.TableRecordImpl; @@ -17,7 +14,7 @@ import org.jooq.impl.TableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VRoleRecord extends TableRecordImpl implements Record1 { +public class VRoleRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; @@ -36,47 +33,6 @@ public class VRoleRecord extends TableRecordImpl implements Record1 return (EnumRole) get(0); } - // ------------------------------------------------------------------------- - // Record1 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row1 fieldsRow() { - return (Row1) super.fieldsRow(); - } - - @Override - public Row1 valuesRow() { - return (Row1) super.valuesRow(); - } - - @Override - public Field field1() { - return VRole.V_ROLE.UNNEST; - } - - @Override - public EnumRole component1() { - return getUnnest(); - } - - @Override - public EnumRole value1() { - return getUnnest(); - } - - @Override - public VRoleRecord value1(EnumRole value) { - setUnnest(value); - return this; - } - - @Override - public VRoleRecord values(EnumRole value1) { - value1(value1); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -95,16 +51,6 @@ public class VRoleRecord extends TableRecordImpl implements Record1 super(VRole.V_ROLE); setUnnest(unnest); - } - - /** - * 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 1f9576f..0fac83d 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 @@ -9,9 +9,6 @@ import de.jottyfan.camporganizer.db.jooq.tables.VSales; import java.math.BigDecimal; import java.time.LocalDateTime; -import org.jooq.Field; -import org.jooq.Record16; -import org.jooq.Row16; import org.jooq.impl.TableRecordImpl; @@ -19,7 +16,7 @@ import org.jooq.impl.TableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VSalesRecord extends TableRecordImpl implements Record16 { +public class VSalesRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; @@ -263,377 +260,6 @@ public class VSalesRecord extends TableRecordImpl implements Recor return (String[]) get(15); } - // ------------------------------------------------------------------------- - // Record16 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row16 fieldsRow() { - return (Row16) super.fieldsRow(); - } - - @Override - public Row16 valuesRow() { - return (Row16) super.valuesRow(); - } - - @Override - public Field field1() { - return VSales.V_SALES.PK; - } - - @Override - public Field field2() { - return VSales.V_SALES.TRADER; - } - - @Override - public Field field3() { - return VSales.V_SALES.FK_CAMP; - } - - @Override - public Field field4() { - return VSales.V_SALES.NAME; - } - - @Override - public Field field5() { - return VSales.V_SALES.FK_LOCATION; - } - - @Override - public Field field6() { - return VSales.V_SALES.LOCATION; - } - - @Override - public Field field7() { - return VSales.V_SALES.INCREDIENTS; - } - - @Override - public Field field8() { - return VSales.V_SALES.YEAR; - } - - @Override - public Field field9() { - return VSales.V_SALES.FK_SALES; - } - - @Override - public Field field10() { - return VSales.V_SALES.PROVIDER; - } - - @Override - public Field field11() { - return VSales.V_SALES.CASH; - } - - @Override - public Field field12() { - return VSales.V_SALES.BUYDATE; - } - - @Override - public Field field13() { - return VSales.V_SALES.RECIPENUMBER; - } - - @Override - public Field field14() { - return VSales.V_SALES.RECIPESHOT; - } - - @Override - public Field field15() { - return VSales.V_SALES.RECIPENOTE; - } - - @Override - public Field field16() { - return VSales.V_SALES.CONTENT; - } - - @Override - public Integer component1() { - return getPk(); - } - - @Override - public String component2() { - return getTrader(); - } - - @Override - public Integer component3() { - return getFkCamp(); - } - - @Override - public String component4() { - return getName(); - } - - @Override - public Integer component5() { - return getFkLocation(); - } - - @Override - public String component6() { - return getLocation(); - } - - @Override - public String component7() { - return getIncredients(); - } - - @Override - public Double component8() { - return getYear(); - } - - @Override - public Integer component9() { - return getFkSales(); - } - - @Override - public String component10() { - return getProvider(); - } - - @Override - public BigDecimal component11() { - return getCash(); - } - - @Override - public LocalDateTime component12() { - return getBuydate(); - } - - @Override - public String component13() { - return getRecipenumber(); - } - - @Override - public byte[] component14() { - return getRecipeshot(); - } - - @Override - public String component15() { - return getRecipenote(); - } - - @Override - public String[] component16() { - return getContent(); - } - - @Override - public Integer value1() { - return getPk(); - } - - @Override - public String value2() { - return getTrader(); - } - - @Override - public Integer value3() { - return getFkCamp(); - } - - @Override - public String value4() { - return getName(); - } - - @Override - public Integer value5() { - return getFkLocation(); - } - - @Override - public String value6() { - return getLocation(); - } - - @Override - public String value7() { - return getIncredients(); - } - - @Override - public Double value8() { - return getYear(); - } - - @Override - public Integer value9() { - return getFkSales(); - } - - @Override - public String value10() { - return getProvider(); - } - - @Override - public BigDecimal value11() { - return getCash(); - } - - @Override - public LocalDateTime value12() { - return getBuydate(); - } - - @Override - public String value13() { - return getRecipenumber(); - } - - @Override - public byte[] value14() { - return getRecipeshot(); - } - - @Override - public String value15() { - return getRecipenote(); - } - - @Override - public String[] value16() { - return getContent(); - } - - @Override - public VSalesRecord value1(Integer value) { - setPk(value); - return this; - } - - @Override - public VSalesRecord value2(String value) { - setTrader(value); - return this; - } - - @Override - public VSalesRecord value3(Integer value) { - setFkCamp(value); - return this; - } - - @Override - public VSalesRecord value4(String value) { - setName(value); - return this; - } - - @Override - public VSalesRecord value5(Integer value) { - setFkLocation(value); - return this; - } - - @Override - public VSalesRecord value6(String value) { - setLocation(value); - return this; - } - - @Override - public VSalesRecord value7(String value) { - setIncredients(value); - return this; - } - - @Override - public VSalesRecord value8(Double value) { - setYear(value); - return this; - } - - @Override - public VSalesRecord value9(Integer value) { - setFkSales(value); - return this; - } - - @Override - public VSalesRecord value10(String value) { - setProvider(value); - return this; - } - - @Override - public VSalesRecord value11(BigDecimal value) { - setCash(value); - return this; - } - - @Override - public VSalesRecord value12(LocalDateTime value) { - setBuydate(value); - return this; - } - - @Override - public VSalesRecord value13(String value) { - setRecipenumber(value); - return this; - } - - @Override - public VSalesRecord value14(byte[] value) { - setRecipeshot(value); - return this; - } - - @Override - public VSalesRecord value15(String value) { - setRecipenote(value); - return this; - } - - @Override - public VSalesRecord value16(String[] value) { - setContent(value); - return this; - } - - @Override - public VSalesRecord values(Integer value1, String value2, Integer value3, String value4, Integer value5, String value6, String value7, Double value8, Integer value9, String value10, BigDecimal value11, LocalDateTime value12, String value13, byte[] value14, String value15, String[] value16) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - value10(value10); - value11(value11); - value12(value12); - value13(value13); - value14(value14); - value15(value15); - value16(value16); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -667,31 +293,6 @@ public class VSalesRecord extends TableRecordImpl implements Recor setRecipeshot(recipeshot); setRecipenote(recipenote); setContent(content); - } - - /** - * 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 31318f8..3d44402 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 @@ -6,9 +6,6 @@ package de.jottyfan.camporganizer.db.jooq.tables.records; import de.jottyfan.camporganizer.db.jooq.tables.VVersion; -import org.jooq.Field; -import org.jooq.Record1; -import org.jooq.Row1; import org.jooq.impl.TableRecordImpl; @@ -16,7 +13,7 @@ import org.jooq.impl.TableRecordImpl; * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class VVersionRecord extends TableRecordImpl implements Record1 { +public class VVersionRecord extends TableRecordImpl { private static final long serialVersionUID = 1L; @@ -35,47 +32,6 @@ public class VVersionRecord extends TableRecordImpl implements R return (String) get(0); } - // ------------------------------------------------------------------------- - // Record1 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row1 fieldsRow() { - return (Row1) super.fieldsRow(); - } - - @Override - public Row1 valuesRow() { - return (Row1) super.valuesRow(); - } - - @Override - public Field field1() { - return VVersion.V_VERSION.VERSION; - } - - @Override - public String component1() { - return getVersion(); - } - - @Override - public String value1() { - return getVersion(); - } - - @Override - public VVersionRecord value1(String value) { - setVersion(value); - return this; - } - - @Override - public VVersionRecord values(String value1) { - value1(value1); - return this; - } - // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- @@ -94,16 +50,6 @@ public class VVersionRecord extends TableRecordImpl implements R super(VVersion.V_VERSION); setVersion(version); - } - - /** - * 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(); } }