Skip to content

Commit

Permalink
[#1] Added virtual client side computed column examples
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaseder committed Jun 30, 2022
1 parent bbd028c commit 67d465f
Show file tree
Hide file tree
Showing 693 changed files with 1,419 additions and 108,981 deletions.
23 changes: 21 additions & 2 deletions jOOQ-demo-oss/jOOQ-demo-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,27 @@
</goals>
<configuration>
<generator>
<database>
<forcedTypes>

<!-- Virtual client side computed columns are client side computed columns that are
based on synthetic column declarations (see above)
See: https://www.jooq.org/doc/latest/manual/code-generation/codegen-advanced/codegen-config-database/codegen-database-forced-types/codegen-database-forced-types-computed/
-->
<forcedType>
<generator>ctx -> DSL.concat(FIRST_NAME, DSL.inline(" "), LAST_NAME)</generator>
<includeExpression>full_name</includeExpression>
</forcedType>
<forcedType>
<generator>ctx -> DSL.concat(address().ADDRESS_, DSL.inline(", "), address().POSTAL_CODE, DSL.inline(", "), address().city().CITY_, DSL.inline(", "), address().city().country().COUNTRY_)</generator>
<includeExpression>full_address</includeExpression>
</forcedType>
</forcedTypes>
</database>

<target>
<packageName>org.jooq.demo.java.db</packageName>
<packageName>org.jooq.demo.kotlin.db</packageName>
</target>
</generator>
</configuration>
Expand Down Expand Up @@ -111,7 +130,7 @@
</properties>
</database>
<target>
<packageName>org.jooq.demo.java.ddl</packageName>
<packageName>org.jooq.demo.kotlin.ddl</packageName>
</target>
</generator>
</configuration>
Expand Down

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.

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.

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.

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.

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.

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.

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 67d465f

Please sign in to comment.