From df1870121fd78a97b0c920f26406662199894424 Mon Sep 17 00:00:00 2001 From: Dokkae6949 Date: Sat, 13 Dec 2025 23:40:19 +0100 Subject: [PATCH] feat: add codegen files --- .../jte/META-INF/main.kotlin_module | Bin 0 -> 24 bytes .../JteIndexGenerated$Companion.class | Bin 0 -> 7863 bytes .../precompiled/JteIndexGenerated.class | Bin 0 -> 2178 bytes .../precompiled/JteIndexGenerated.kt | 24 +++ .../JteMessageGenerated$Companion.class | Bin 0 -> 3124 bytes .../partials/JteMessageGenerated.class | Bin 0 -> 2220 bytes .../partials/JteMessageGenerated.kt | 26 +++ .../homepage/generated/jooq/DefaultCatalog.kt | 43 ++++ .../dokkae/homepage/generated/jooq/Public.kt | 40 ++++ .../homepage/generated/jooq/keys/Keys.kt | 21 ++ .../homepage/generated/jooq/tables/Message.kt | 187 ++++++++++++++++++ .../generated/jooq/tables/pojos/Message.kt | 76 +++++++ .../jooq/tables/records/MessageRecord.kt | 73 +++++++ .../jooq/tables/references/Tables.kt | 15 ++ 14 files changed, 505 insertions(+) create mode 100644 build/generated-resources/jte/META-INF/main.kotlin_module create mode 100644 build/generated-resources/jte/gg/jte/generated/precompiled/JteIndexGenerated$Companion.class create mode 100644 build/generated-resources/jte/gg/jte/generated/precompiled/JteIndexGenerated.class create mode 100644 build/generated-resources/jte/gg/jte/generated/precompiled/JteIndexGenerated.kt create mode 100644 build/generated-resources/jte/gg/jte/generated/precompiled/partials/JteMessageGenerated$Companion.class create mode 100644 build/generated-resources/jte/gg/jte/generated/precompiled/partials/JteMessageGenerated.class create mode 100644 build/generated-resources/jte/gg/jte/generated/precompiled/partials/JteMessageGenerated.kt create mode 100644 build/generated-src/jooq/at/dokkae/homepage/generated/jooq/DefaultCatalog.kt create mode 100644 build/generated-src/jooq/at/dokkae/homepage/generated/jooq/Public.kt create mode 100644 build/generated-src/jooq/at/dokkae/homepage/generated/jooq/keys/Keys.kt create mode 100644 build/generated-src/jooq/at/dokkae/homepage/generated/jooq/tables/Message.kt create mode 100644 build/generated-src/jooq/at/dokkae/homepage/generated/jooq/tables/pojos/Message.kt create mode 100644 build/generated-src/jooq/at/dokkae/homepage/generated/jooq/tables/records/MessageRecord.kt create mode 100644 build/generated-src/jooq/at/dokkae/homepage/generated/jooq/tables/references/Tables.kt diff --git a/build/generated-resources/jte/META-INF/main.kotlin_module b/build/generated-resources/jte/META-INF/main.kotlin_module new file mode 100644 index 0000000000000000000000000000000000000000..9dbc290d21e8fd8815939343a7a5484dc57cfcde GIT binary patch literal 24 ZcmZQzU|?ooU|?ckU|?i`0wo451^@wK08;<} literal 0 HcmV?d00001 diff --git a/build/generated-resources/jte/gg/jte/generated/precompiled/JteIndexGenerated$Companion.class b/build/generated-resources/jte/gg/jte/generated/precompiled/JteIndexGenerated$Companion.class new file mode 100644 index 0000000000000000000000000000000000000000..8cd23688daa5987dfe4dcaf44666dadefb7196d3 GIT binary patch literal 7863 zcmX^0Z`VEs1_l#`UPcCs^mP5Kl2rZl)V$Q9#FEq${eq&@ z3U`>SigSK$L1JEJejYmmBO`-AR$^JAeokUuy1su>R%&tyI|DN#1Dj1|US^3MBLlOB zW*83xD+3!B0}BH?BLhoGMrJW1gOv}tmRd71uob1|rKA=yGNfq0jL9g;&C&NL$;}B# z%`M1DEJ^h*Eh#81vBr@1%qvMPN=_{($uF|@Ni5M%$f$A^T z2m9JuGmMdeGYe)OBZE*@Nh-)5By$)USab7JQgav?#C)>zOL8*v^s~xx^}Wh+gG&-i zGLx+t8I*nUi_-P8QcIGG5;OCP^%L{*@dBysE`6Yg(IXTvh3@Z3kmFDCmCgr4B zb1?8SGRPs>lL_)sUSf{EXI@EBW?pe-axpuD2qS}Naz<)$Hq`Wh#G=I9)DlpjscZP4 zN0~K}NHEBdbZbzoi7|+CF^Doqa4_&QvNv+sD5m5mmsA#{Du6=Uj>`r_DS%?$Rw*@4 z2_%r3m}1AJprD{&lbc$SsF0kISX7)^VyjeIlBR2+ge;Ypn44;=RF;`qUXWi@qNI?V zpI4HaS7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ibp|oGKjaxW89?p>MXLtf9~y9fXu$oU!4Sug%fQUg1&-fX zviuXrz#zcLz{-#ZO*py?jNmW=C7gVaV;R8?6N3oCox{pdz);A*$iU3d&A`AQ#K6SB z#L&p#$soz#$KU~`d%%ur0y`>&fsvtzft8^+nt|Dqp~RD+)RUo%q1=<9l%c|tp^~90 znt`#Hp_-v4nnAdjfvcFIwwQsnn1QXBp$^Qh2b0`jlDC*4qL_iNm?5&5fxnm`s+b|V Km?5s1p%wu1UqDa* literal 0 HcmV?d00001 diff --git a/build/generated-resources/jte/gg/jte/generated/precompiled/JteIndexGenerated.class b/build/generated-resources/jte/gg/jte/generated/precompiled/JteIndexGenerated.class new file mode 100644 index 0000000000000000000000000000000000000000..f31a6e92c0fda11dbcc0b35ff01f0dadef7e44c7 GIT binary patch literal 2178 zcmX^0Z`VEs1_l!bZ$<{a^mP5Kl2rZl)V$Q9#FEq${eq&@ z3U`<+I|CylgFsedS)zVUVqUtwe^ORzatS*FGb00=O=ezZi5(*Yvxa6E4+AR$8y5o$ z13M!FOG!p%F(ZS44{26eGcvFhrRJri7BMoUXuvdQl;q~X$(E7wdz4XssE>$iSHe zGmnu$D61qDWDk-#j0~)~`6;P6j0|Ev+4&_onR)tIWx4uZWx2s6i6xoI){G3wKKVuI z`dO(ZNkxg7dBysPd3pIDx%|9heZTw?ztWr>YeohYe5y)wauSnrQmq*oIGyuz3lj4( z^Ya)PtY97_GNM%AdaZdFgc(FQ8JHME85t}{ivxry>O4BQMnTnrKnl8g)rFz4Wk z4@L%A3?)cG2@V7zVug``6Osme6AKs_{3%QZ;B;GBl9{9Ln^*vj@iJ~LLzyu-~K?DOM17kKL15-sN zh-bjaz?5Rh$e?zhfrpDpf{BYs;6MWx69==zfd&N@BPIhzD@GP4_Ct%L+# zQ3xp0fx;s{IWZ?Ju_zP7hYCtU%?iU}k_uD~ZchLxVpB^}i%={S@J%hr$WMVw7Bez% z24|+{C6<&Hr7|+`c;@A$7CGl678j=$Gcs@m=a&{Gr@Ce4q%s&XFfp(&FfcGPNP;pl z10#bY0|Nsa10#bV0|SF3D6*hpTntPM#taNlaeW2@EaEH-jG&^Kfsw(9fq_9E6bB3p z46It)88|kAVu!&QYB&P}3xf*-0|O5OBS--QCj%GQI&KCY1{Sbp4+a(nP|R^{Vi42P z*4f4&g=zvPgAmvR1&AsJUIu9f5a43qV~_!x%EiFXAj`nS;0m=KFj zMg}1UP#lAN>dwHxz{||Q%fP_E$H2hA4|a_lgFFK(cGoDQyGD$lYZMt&7?>D5z~P`k zma7yQ7#KJhRKd{$3gA5qAg?emEZEH;5y`lnL1Qz6n2^?H20a0ZJzU;e%*_5;EX@8| ztjzveY^?rT?5zG;9IXCY0w9h6h$p}y;NY(%zzHU~1Q~k$wFI~!6ptW7pTCv>FNER~ zWa#(T65xkW0)hjh lV9sFW$zaW36V1R_%wWr47tO$0%)nL5U|$SkuoW{10|0PP0|@{C literal 0 HcmV?d00001 diff --git a/build/generated-resources/jte/gg/jte/generated/precompiled/JteIndexGenerated.kt b/build/generated-resources/jte/gg/jte/generated/precompiled/JteIndexGenerated.kt new file mode 100644 index 0000000..3b1fa73 --- /dev/null +++ b/build/generated-resources/jte/gg/jte/generated/precompiled/JteIndexGenerated.kt @@ -0,0 +1,24 @@ +@file:Suppress("ktlint") +package gg.jte.generated.precompiled +import at.dokkae.homepage.templates.Index +@Suppress("UNCHECKED_CAST", "UNUSED_PARAMETER") +class JteIndexGenerated { +companion object { + @JvmField val JTE_NAME = "Index.kte" + @JvmField val JTE_LINE_INFO = intArrayOf(0,0,0,2,2,2,2,2,64,64,141,141,142,142,143,143,158,158,158,2,2,2,2,2) + @JvmStatic fun render(jteOutput:gg.jte.html.HtmlTemplateOutput, jteHtmlInterceptor:gg.jte.html.HtmlInterceptor?, model:Index) { + jteOutput.writeContent("\n\n\n\n \n \n Simple Chat — http4k + JTE + htmx\n\n \n \n\n \n\n\n
\n

Simple Chat

\n\n
\n ") + for (message in model.messages.reversed()) { + jteOutput.writeContent("\n ") + gg.jte.generated.precompiled.partials.JteMessageGenerated.render(jteOutput, jteHtmlInterceptor, message); + jteOutput.writeContent("\n ") + } + jteOutput.writeContent("\n
\n\n\n
\n \n \n \n
\n\n

No auth — anyone can post. Messages are stored only in memory.

\n
\n\n") + } + @JvmStatic fun renderMap(jteOutput:gg.jte.html.HtmlTemplateOutput, jteHtmlInterceptor:gg.jte.html.HtmlInterceptor?, params:Map) { + val model = params["model"] as Index + render(jteOutput, jteHtmlInterceptor, model); + } +} +} diff --git a/build/generated-resources/jte/gg/jte/generated/precompiled/partials/JteMessageGenerated$Companion.class b/build/generated-resources/jte/gg/jte/generated/precompiled/partials/JteMessageGenerated$Companion.class new file mode 100644 index 0000000000000000000000000000000000000000..7f497996c573798f3b938b1891f352889c1932c1 GIT binary patch literal 3124 zcmX^0Z`VEs1_l#`T1E!v^mP5Kl2rZl)V$Q9#FEq${eq&@`LojvG?75I&Vq_5W$<8my$;{KwD$CXPD$5Nn zNi4}swq|5d_Q@|w*Uw5VNh(Ur%q!MU%*)FM$>rx2>-*)G_?715STi!H;8RtalarW~ zlWNVuz{|)Whh$GC$S-+`Ir^S?B}JKe#hJ;)>7X z7cnx3XlP;@$HSn_pu@$W#h}Z`AOQACXmM&0*iCsQJPi5}XB#jw@Z0D^9ByX?4k!)= zBSr@1l*}>?1`|dGu5_qJK$^@TCYm!cK$O}P7bNB>6qi)yq}nPa=jY@XSt(msSXe8h z<>!^?7H3waTIpF7rRG{g;{X&78XOFkj0`Lwog56-j0`*=3yM-fdE5~k%uv6SWag&o zd*&6FB<7V^^Dx*l*nvD_&&VJMP8rD3>+o-kf7yZa0WTkiNS@DK|~YmB^!N^ zb#`1f`YD-Zb{q_Dj0_4G`3)^UGBU_wC_&0n){G1?_;Mv911BW!`z97JGWb)N{lQ)? zEy>K$_f0GS=lC*enrMTWe6*2-AO)wj9oS;F0#G(B=3ww+WZ*?{7dt}$BLj1KY6&BQ z8ggcVYKO)vQc-Np!w|#}%*_zU5W>h{pI4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%yN{89!zMWg zn$HY1kP~1gD3RwS=IFbmrX`lKBZH_9Y6fx3OwCELW@HeAiTkFOB&H;mBw8~vFy)ppGcYhPfe1zr z!NADCn9az*RFMhd889+1r5G|Ys2ynF;bM|t;$jjw(7?sS!7Op0L4n1H$$-&{k;RGq z&>}V#4kiI+kZL1F1_nk3F)W3cUUms1gLF`7UP)$ds%KtVW^raxPO2j!mohT2IOnIN zg2F#DFV(L!Hz~C!1e6~^A(Ee*m=l&*lnLTP1tp9F% zrj}&nr@$qP85uZ(Gt=`DOG=AU85wvy^YT)QoO2S3i&Kjk8MuP;ON)|I-7<4h84MYi z7+4q>7?>F(K^dEYk-?FHfq{*IkwK7wfk6@!T~IMD1||k$1_r3OK7#=kaTW$fP|?l6 z$l%1lz@QI`1qKENR;}#}92-IL!{7`xoPmLb!G(c=fro(+q=12wfeUOMHv*xq;OGGb@NNc>R~Q)P?`DvQWZcf6v6(?kNNY2Lo`BRI zE^jSnW`8XfW`8YKW`8XY$45rZx%$^Kpo($%m q3>FNQo($#;R-O#j3^vgWjKvJL40h2Bti=pm#SHevAO>48gD?O9We^tt literal 0 HcmV?d00001 diff --git a/build/generated-resources/jte/gg/jte/generated/precompiled/partials/JteMessageGenerated.kt b/build/generated-resources/jte/gg/jte/generated/precompiled/partials/JteMessageGenerated.kt new file mode 100644 index 0000000..b93e8e4 --- /dev/null +++ b/build/generated-resources/jte/gg/jte/generated/precompiled/partials/JteMessageGenerated.kt @@ -0,0 +1,26 @@ +@file:Suppress("ktlint") +package gg.jte.generated.precompiled.partials +import at.dokkae.homepage.Message +@Suppress("UNCHECKED_CAST", "UNUSED_PARAMETER") +class JteMessageGenerated { +companion object { + @JvmField val JTE_NAME = "partials/Message.kte" + @JvmField val JTE_LINE_INFO = intArrayOf(0,0,0,2,2,2,2,2,5,5,5,5,6,6,6,8,8,8,10,10,10,2,2,2,2,2) + @JvmStatic fun render(jteOutput:gg.jte.html.HtmlTemplateOutput, jteHtmlInterceptor:gg.jte.html.HtmlInterceptor?, message:Message) { + jteOutput.writeContent("\n
\n ") + jteOutput.setContext("strong", null) + jteOutput.writeUserContent(message.author) + jteOutput.writeContent(":\n ") + jteOutput.setContext("div", null) + jteOutput.writeUserContent(message.content) + jteOutput.writeContent("\n \n (") + jteOutput.setContext("span", null) + jteOutput.writeUserContent(message.createdAt.toString()) + jteOutput.writeContent(")\n \n
") + } + @JvmStatic fun renderMap(jteOutput:gg.jte.html.HtmlTemplateOutput, jteHtmlInterceptor:gg.jte.html.HtmlInterceptor?, params:Map) { + val message = params["message"] as Message + render(jteOutput, jteHtmlInterceptor, message); + } +} +} diff --git a/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/DefaultCatalog.kt b/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/DefaultCatalog.kt new file mode 100644 index 0000000..034f3de --- /dev/null +++ b/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/DefaultCatalog.kt @@ -0,0 +1,43 @@ +/* + * This file is generated by jOOQ. + */ +package at.dokkae.homepage.generated.jooq + + +import kotlin.collections.List + +import org.jooq.Constants +import org.jooq.Schema +import org.jooq.impl.CatalogImpl + + +/** + * This class is generated by jOOQ. + */ +@Suppress("warnings") +open class DefaultCatalog : CatalogImpl("") { + companion object { + + /** + * The reference instance of DEFAULT_CATALOG + */ + val DEFAULT_CATALOG: DefaultCatalog = DefaultCatalog() + } + + /** + * standard public schema + */ + val PUBLIC: Public get(): Public = Public.PUBLIC + + override fun getSchemas(): List = listOf( + Public.PUBLIC + ) + + /** + * A reference to the 3.20 minor release of the code generator. If this + * doesn't compile, it's because the runtime library uses an older minor + * release, namely: 3.20. You can turn off the generation of this reference + * by specifying /configuration/generator/generate/jooqVersionReference + */ + private val REQUIRE_RUNTIME_JOOQ_VERSION = Constants.VERSION_3_20 +} diff --git a/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/Public.kt b/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/Public.kt new file mode 100644 index 0000000..772d0e4 --- /dev/null +++ b/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/Public.kt @@ -0,0 +1,40 @@ +/* + * This file is generated by jOOQ. + */ +package at.dokkae.homepage.generated.jooq + + +import at.dokkae.homepage.generated.jooq.tables.Message + +import kotlin.collections.List + +import org.jooq.Catalog +import org.jooq.Table +import org.jooq.impl.DSL +import org.jooq.impl.SchemaImpl + + +/** + * standard public schema + */ +@Suppress("warnings") +open class Public : SchemaImpl(DSL.name("public"), DefaultCatalog.DEFAULT_CATALOG, DSL.comment("standard public schema")) { + companion object { + + /** + * The reference instance of public + */ + val PUBLIC: Public = Public() + } + + /** + * The table public.message. + */ + val MESSAGE: Message get() = Message.MESSAGE + + override fun getCatalog(): Catalog = DefaultCatalog.DEFAULT_CATALOG + + override fun getTables(): List> = listOf( + Message.MESSAGE + ) +} diff --git a/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/keys/Keys.kt b/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/keys/Keys.kt new file mode 100644 index 0000000..f59d310 --- /dev/null +++ b/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/keys/Keys.kt @@ -0,0 +1,21 @@ +@file:Suppress("warnings") +/* + * This file is generated by jOOQ. + */ +package at.dokkae.homepage.generated.jooq.keys + + +import at.dokkae.homepage.generated.jooq.tables.Message +import at.dokkae.homepage.generated.jooq.tables.records.MessageRecord + +import org.jooq.UniqueKey +import org.jooq.impl.DSL +import org.jooq.impl.Internal + + + +// ------------------------------------------------------------------------- +// UNIQUE and PRIMARY KEY definitions +// ------------------------------------------------------------------------- + +val MESSAGE_PKEY: UniqueKey = Internal.createUniqueKey(Message.MESSAGE, DSL.name("message_pkey"), arrayOf(Message.MESSAGE.ID), true) diff --git a/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/tables/Message.kt b/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/tables/Message.kt new file mode 100644 index 0000000..4801187 --- /dev/null +++ b/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/tables/Message.kt @@ -0,0 +1,187 @@ +/* + * This file is generated by jOOQ. + */ +package at.dokkae.homepage.generated.jooq.tables + + +import at.dokkae.homepage.generated.jooq.Public +import at.dokkae.homepage.generated.jooq.keys.MESSAGE_PKEY +import at.dokkae.homepage.generated.jooq.tables.records.MessageRecord + +import java.time.OffsetDateTime +import java.util.UUID + +import kotlin.collections.Collection + +import org.jooq.Condition +import org.jooq.Field +import org.jooq.ForeignKey +import org.jooq.InverseForeignKey +import org.jooq.Name +import org.jooq.PlainSQL +import org.jooq.QueryPart +import org.jooq.Record +import org.jooq.SQL +import org.jooq.Schema +import org.jooq.Select +import org.jooq.Stringly +import org.jooq.Table +import org.jooq.TableField +import org.jooq.TableOptions +import org.jooq.UniqueKey +import org.jooq.impl.DSL +import org.jooq.impl.SQLDataType +import org.jooq.impl.TableImpl + + +/** + * This class is generated by jOOQ. + */ +@Suppress("warnings") +open class Message( + alias: Name, + path: Table?, + childPath: ForeignKey?, + parentPath: InverseForeignKey?, + aliased: Table?, + parameters: Array?>?, + where: Condition? +): TableImpl( + alias, + Public.PUBLIC, + path, + childPath, + parentPath, + aliased, + parameters, + DSL.comment(""), + TableOptions.table(), + where, +) { + companion object { + + /** + * The reference instance of public.message + */ + val MESSAGE: Message = Message() + } + + /** + * The class holding records for this type + */ + override fun getRecordType(): Class = MessageRecord::class.java + + /** + * The column public.message.id. + */ + val ID: TableField = createField(DSL.name("id"), SQLDataType.UUID.nullable(false), this, "") + + /** + * The column public.message.author. + */ + val AUTHOR: TableField = createField(DSL.name("author"), SQLDataType.VARCHAR(31).nullable(false), this, "") + + /** + * The column public.message.content. + */ + val CONTENT: TableField = createField(DSL.name("content"), SQLDataType.VARCHAR(255).nullable(false), this, "") + + /** + * The column public.message.created_at. + */ + val CREATED_AT: TableField = createField(DSL.name("created_at"), SQLDataType.TIMESTAMPWITHTIMEZONE(6).nullable(false).defaultValue(DSL.field(DSL.raw("CURRENT_TIMESTAMP"), SQLDataType.TIMESTAMPWITHTIMEZONE)), this, "") + + /** + * The column public.message.updated_at. + */ + val UPDATED_AT: TableField = createField(DSL.name("updated_at"), SQLDataType.TIMESTAMPWITHTIMEZONE(6), this, "") + + private constructor(alias: Name, aliased: Table?): this(alias, null, null, null, aliased, null, null) + private constructor(alias: Name, aliased: Table?, parameters: Array?>?): this(alias, null, null, null, aliased, parameters, null) + private constructor(alias: Name, aliased: Table?, where: Condition?): this(alias, null, null, null, aliased, null, where) + + /** + * Create an aliased public.message table reference + */ + constructor(alias: String): this(DSL.name(alias)) + + /** + * Create an aliased public.message table reference + */ + constructor(alias: Name): this(alias, null) + + /** + * Create a public.message table reference + */ + constructor(): this(DSL.name("message"), null) + override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC + override fun getPrimaryKey(): UniqueKey = MESSAGE_PKEY + override fun `as`(alias: String): Message = Message(DSL.name(alias), this) + override fun `as`(alias: Name): Message = Message(alias, this) + override fun `as`(alias: Table<*>): Message = Message(alias.qualifiedName, this) + + /** + * Rename this table + */ + override fun rename(name: String): Message = Message(DSL.name(name), null) + + /** + * Rename this table + */ + override fun rename(name: Name): Message = Message(name, null) + + /** + * Rename this table + */ + override fun rename(name: Table<*>): Message = Message(name.qualifiedName, null) + + /** + * Create an inline derived table from this table + */ + override fun where(condition: Condition?): Message = Message(qualifiedName, if (aliased()) this else null, condition) + + /** + * Create an inline derived table from this table + */ + override fun where(conditions: Collection): Message = where(DSL.and(conditions)) + + /** + * Create an inline derived table from this table + */ + override fun where(vararg conditions: Condition?): Message = where(DSL.and(*conditions)) + + /** + * Create an inline derived table from this table + */ + override fun where(condition: Field?): Message = where(DSL.condition(condition)) + + /** + * Create an inline derived table from this table + */ + @PlainSQL override fun where(condition: SQL): Message = where(DSL.condition(condition)) + + /** + * Create an inline derived table from this table + */ + @PlainSQL override fun where(@Stringly.SQL condition: String): Message = where(DSL.condition(condition)) + + /** + * Create an inline derived table from this table + */ + @PlainSQL override fun where(@Stringly.SQL condition: String, vararg binds: Any?): Message = where(DSL.condition(condition, *binds)) + + /** + * Create an inline derived table from this table + */ + @PlainSQL override fun where(@Stringly.SQL condition: String, vararg parts: QueryPart): Message = where(DSL.condition(condition, *parts)) + + /** + * Create an inline derived table from this table + */ + override fun whereExists(select: Select<*>): Message = where(DSL.exists(select)) + + /** + * Create an inline derived table from this table + */ + override fun whereNotExists(select: Select<*>): Message = where(DSL.notExists(select)) +} diff --git a/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/tables/pojos/Message.kt b/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/tables/pojos/Message.kt new file mode 100644 index 0000000..7976170 --- /dev/null +++ b/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/tables/pojos/Message.kt @@ -0,0 +1,76 @@ +/* + * This file is generated by jOOQ. + */ +package at.dokkae.homepage.generated.jooq.tables.pojos + + +import java.io.Serializable +import java.time.OffsetDateTime +import java.util.UUID + + +/** + * This class is generated by jOOQ. + */ +@Suppress("warnings") +data class Message( + val id: UUID, + val author: String, + val content: String, + val createdAt: OffsetDateTime? = null, + val updatedAt: OffsetDateTime? = null +): Serializable { + + override fun equals(other: Any?): Boolean { + if (this === other) + return true + if (other == null) + return false + if (this::class != other::class) + return false + val o: Message = other as Message + if (this.id != o.id) + return false + if (this.author != o.author) + return false + if (this.content != o.content) + return false + if (this.createdAt == null) { + if (o.createdAt != null) + return false + } + else if (this.createdAt != o.createdAt) + return false + if (this.updatedAt == null) { + if (o.updatedAt != null) + return false + } + else if (this.updatedAt != o.updatedAt) + return false + return true + } + + override fun hashCode(): Int { + val prime = 31 + var result = 1 + result = prime * result + this.id.hashCode() + result = prime * result + this.author.hashCode() + result = prime * result + this.content.hashCode() + result = prime * result + (if (this.createdAt == null) 0 else this.createdAt.hashCode()) + result = prime * result + (if (this.updatedAt == null) 0 else this.updatedAt.hashCode()) + return result + } + + override fun toString(): String { + val sb = StringBuilder("Message (") + + sb.append(id) + sb.append(", ").append(author) + sb.append(", ").append(content) + sb.append(", ").append(createdAt) + sb.append(", ").append(updatedAt) + + sb.append(")") + return sb.toString() + } +} diff --git a/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/tables/records/MessageRecord.kt b/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/tables/records/MessageRecord.kt new file mode 100644 index 0000000..fb107a6 --- /dev/null +++ b/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/tables/records/MessageRecord.kt @@ -0,0 +1,73 @@ +/* + * This file is generated by jOOQ. + */ +package at.dokkae.homepage.generated.jooq.tables.records + + +import at.dokkae.homepage.generated.jooq.tables.Message + +import java.time.OffsetDateTime +import java.util.UUID + +import org.jooq.Record1 +import org.jooq.impl.UpdatableRecordImpl + + +/** + * This class is generated by jOOQ. + */ +@Suppress("warnings") +open class MessageRecord private constructor() : UpdatableRecordImpl(Message.MESSAGE) { + + open var id: UUID + set(value): Unit = set(0, value) + get(): UUID = get(0) as UUID + + open var author: String + set(value): Unit = set(1, value) + get(): String = get(1) as String + + open var content: String + set(value): Unit = set(2, value) + get(): String = get(2) as String + + open var createdAt: OffsetDateTime? + set(value): Unit = set(3, value) + get(): OffsetDateTime? = get(3) as OffsetDateTime? + + open var updatedAt: OffsetDateTime? + set(value): Unit = set(4, value) + get(): OffsetDateTime? = get(4) as OffsetDateTime? + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + override fun key(): Record1 = super.key() as Record1 + + /** + * Create a detached, initialised MessageRecord + */ + constructor(id: UUID, author: String, content: String, createdAt: OffsetDateTime? = null, updatedAt: OffsetDateTime? = null): this() { + this.id = id + this.author = author + this.content = content + this.createdAt = createdAt + this.updatedAt = updatedAt + resetTouchedOnNotNull() + } + + /** + * Create a detached, initialised MessageRecord + */ + constructor(value: at.dokkae.homepage.generated.jooq.tables.pojos.Message?): this() { + if (value != null) { + this.id = value.id + this.author = value.author + this.content = value.content + this.createdAt = value.createdAt + this.updatedAt = value.updatedAt + resetTouchedOnNotNull() + } + } +} diff --git a/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/tables/references/Tables.kt b/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/tables/references/Tables.kt new file mode 100644 index 0000000..4feda24 --- /dev/null +++ b/build/generated-src/jooq/at/dokkae/homepage/generated/jooq/tables/references/Tables.kt @@ -0,0 +1,15 @@ +@file:Suppress("warnings") +/* + * This file is generated by jOOQ. + */ +package at.dokkae.homepage.generated.jooq.tables.references + + +import at.dokkae.homepage.generated.jooq.tables.Message + + + +/** + * The table public.message. + */ +val MESSAGE: Message = Message.MESSAGE