Skip to content

Commit

Permalink
Merge pull request #21 from cashapp/update-jooq-3.19.1
Browse files Browse the repository at this point in the history
Update jooq dependencies to version 3.19.1
  • Loading branch information
yoavamit authored Jan 2, 2024
2 parents 220c2bc + a8ef41a commit 0e00ed7
Show file tree
Hide file tree
Showing 9 changed files with 282 additions and 555 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ repositories {

dependencies {
implementation("com.google.crypto.tink:tink-android:1.7.0")
implementation("org.jooq:jooq-codegen:3.17.6")
implementation("org.jooq:jooq-meta:3.17.6")
implementation("org.jooq:jooq-meta-extensions:3.17.6")
implementation("org.jooq:jooq-codegen:3.19.1")
implementation("org.jooq:jooq-meta:3.19.1")
implementation("org.jooq:jooq-meta-extensions:3.19.1")

testImplementation("org.assertj:assertj-core:3.24.1")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.2")
Expand Down
15 changes: 15 additions & 0 deletions src/main/kotlin/app/cash/jooq/EncryptionAwareJavaGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package app.cash.jooq
import org.jooq.Name
import org.jooq.Record
import org.jooq.Table
import org.jooq.TableOptions
import org.jooq.codegen.GeneratorStrategy
import org.jooq.codegen.JavaGenerator
import org.jooq.codegen.JavaWriter
Expand All @@ -19,6 +20,8 @@ import org.jooq.meta.EmbeddableDefinition
import org.jooq.meta.ForeignKeyDefinition
import org.jooq.meta.IdentityDefinition
import org.jooq.meta.IndexDefinition
import org.jooq.meta.InverseForeignKeyDefinition
import org.jooq.meta.ManyToManyKeyDefinition
import org.jooq.meta.PackageDefinition
import org.jooq.meta.ParameterDefinition
import org.jooq.meta.SchemaDefinition
Expand Down Expand Up @@ -169,6 +172,14 @@ class EncryptionAwareJavaGenerator : JavaGenerator() {

override fun getForeignKeys(tableDefinition: TableDefinition?): MutableList<ForeignKeyDefinition> = table.getForeignKeys(tableDefinition)

override fun getInverseForeignKeys(): MutableList<InverseForeignKeyDefinition> = table.inverseForeignKeys

override fun getInverseForeignKeys(referencing: TableDefinition?): MutableList<InverseForeignKeyDefinition> = table.getInverseForeignKeys(referencing)

override fun getManyToManyKeys(): MutableList<ManyToManyKeyDefinition> = table.manyToManyKeys

override fun getManyToManyKeys(referencing: TableDefinition?): MutableList<ManyToManyKeyDefinition> = table.getManyToManyKeys(referencing)

override fun getCheckConstraints(): MutableList<CheckConstraintDefinition> = table.checkConstraints

override fun getIdentity(): IdentityDefinition? = columns
Expand All @@ -187,6 +198,8 @@ class EncryptionAwareJavaGenerator : JavaGenerator() {

override fun getTable(): Table<Record> = table.table

override fun getTableOptions(): TableOptions = table.tableOptions

override fun getParameters(): MutableList<ParameterDefinition> = table.parameters

override fun isTemporary(): Boolean = table.isTemporary
Expand All @@ -196,5 +209,7 @@ class EncryptionAwareJavaGenerator : JavaGenerator() {
override fun isMaterializedView(): Boolean = table.isMaterializedView

override fun isTableValuedFunction(): Boolean = table.isTableValuedFunction

override fun getReferencedTable(): TableDefinition = table.referencedTable
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0e00ed7

Please sign in to comment.