Commit Graph

858 Commits

Author SHA1 Message Date
Lukas Eder
7e03b13d49 [jOOQ/jOOQ#10498] Compilation error in generated code when there is a table called OVERRIDE 2020-08-18 10:16:39 +02:00
Lukas Eder
061e425340 [jOOQ/jOOQ#2530] [jOOQ/jOOQ#6124] [jOOQ/jOOQ#10481]
Support overlapping embeddables
2020-08-14 17:13:35 +02:00
Lukas Eder
29bce7c908 [jOOQ/jOOQ#2530] [jOOQ/jOOQ#6124] [jOOQ/jOOQ#10481] Improved embeddable support and added code generation support for embeddable keys 2020-08-12 17:11:36 +02:00
Lukas Eder
ee3bdcc6fd [jOOQ/jOOQ#9639] Apply Database::getOrderProvider to Keys.java content as well 2020-08-10 12:43:09 +02:00
Lukas Eder
e8977dfee1 [jOOQ/jOOQ#10480] Avoid generating empty header comments in Keys.java 2020-08-10 12:11:04 +02:00
Lukas Eder
9e092d1617 [jOOQ/jOOQ#10478] Add Matchers for catalogs 2020-08-10 11:36:51 +02:00
Lukas Eder
8d9281da47 [jOOQ/jOOQ#10309] Add code generation support for arrays of domain types 2020-08-07 16:22:02 +02:00
Lukas Eder
79d60d0700 [jOOQ/jOOQ#7070] Add code generation support for PostgreSQL types referencing domains 2020-08-07 15:05:28 +02:00
Lukas Eder
4c0e4ba770 [jOOQ/jOOQ#681] Added code generator support for PostgreSQL domains 2020-08-06 18:03:13 +02:00
Lukas Eder
c1a4986a39 [jOOQ/jOOQ#681] Added code generator support for H2 domains 2020-08-06 17:10:32 +02:00
Lukas Eder
da51a12265 [jOOQ/jOOQ#10463] Configuration log level is ignored by GenerationTool for first log statements 2020-08-05 11:24:11 +02:00
Lukas Eder
5fd997e999 [jOOQ/jOOQ#8576] More urgent deprecation warning 2020-07-17 16:51:53 +02:00
Lukas Eder
299f98616a [jOOQ/jOOQ#10397] Restore generating Table.getIdentity() overrides
But don't generate Identity constants, instead cast the super.getIdentity() result to a more narrow type.
2020-07-15 12:26:24 +02:00
Lukas Eder
12e20eb413 [jOOQ/jOOQ#10397] Default implementation of AbstractTable.getIdentity() should check Table.fields() for any Field with DataType.identity() 2020-07-15 11:58:36 +02:00
Lukas Eder
43d89b6bbe [jOOQ/jOOQ#10394] <comments/> and related flags implemented incorrectly
in JavaGenerator
2020-07-14 16:08:59 +02:00
Lukas Eder
604feeeeea [jOOQ/jOOQ#10390] <sources/> and <sourcesOnViews/> are not implemented in XMLGenerator 2020-07-14 15:36:03 +02:00
Lukas Eder
903253f2e7 [jOOQ/jOOQ#9945] Support TIMESTAMP(0) in code generator 2020-07-09 17:12:11 +02:00
Lukas Eder
9f3ff67f57 [jOOQ/jOOQ#10355] Change JavaGenerator.printClassAnnotations() to (JavaWriter, Definition, Mode) 2020-07-03 15:55:58 +02:00
Lukas Eder
707d8eab61 [jOOQ/jOOQ#4703] The underscore '_' is a reserved token in Java 9. The
jOOQ code generator should avoid generating it
2020-07-03 15:19:23 +02:00
Lukas Eder
e2d0d1455c [jOOQ/jOOQ#6186] Log warning if standalone <outputSchema/> element is not paired with <inputSchema/> 2020-07-03 11:36:08 +02:00
Lukas Eder
dbc7475685 [jOOQ/jOOQ#4691] Add an unused forced type hint about Pattern.COMMENTS being turned on to help debug regexes with whitespace 2020-07-03 10:56:47 +02:00
Lukas Eder
4b937703dc [jOOQ/jOOQ#10338] XMLGenerator should produce 1-based <ordinal_position/> in <key_column_usage/> 2020-07-01 15:02:43 +02:00
Lukas Eder
8f9c389132 [jOOQ/jOOQ#8553] Add support for foreign keys referencing unique key
columns in different order than in the unique key definition

- Added new runtime meta API
- Added interpreter and org.jooq.Meta support
- Added code generation support
2020-06-30 16:28:25 +02:00
Lukas Eder
9707e1ebd3 [jOOQ/jOOQ#10331] Split jOOQ-meta-extensions into jOOQ-meta-extensions-hibernate and jOOQ-meta-extensions-liquibase
This fixes [jOOQ/jOOQ#10268] Unrelated Liquibase error when using jooq-meta-extensions with Spring Boot
2020-06-30 12:50:29 +02:00
Lukas Eder
683d043322 Long source code workaround allocates substrings twice #10318 2020-06-24 16:08:12 +02:00
Lukas Eder
4aef6db5ef [jOOQ/jOOQ#6248] [jOOQ/jOOQ#10288] Add <pojosAsKotlinDataClasses/> to
the code generator to generate data classes
2020-06-17 12:34:59 +02:00
Lukas Eder
7712891962 [jOOQ/jOOQ#3713] [jOOQ/jOOQ#10191] Add <pojosAsScalaCaseClasses/> to the
code generator to generate case classes
2020-06-17 11:35:31 +02:00
Lukas Eder
f1c63cfc07 [jOOQ/jOOQ#3713] [jOOQ/jOOQ#10287] [jOOQ/jOOQ#10288]
Don't turn on <pojos/> by default in Scala/Kotlin
2020-06-16 19:38:46 +02:00
Lukas Eder
374d1af273 [jOOQ/jOOQ#3713] [jOOQ/jOOQ#10287] [jOOQ/jOOQ#10288]
Added configuration for Java records / Scala case classes / Kotlin data classes in code generator.
2020-06-16 17:43:00 +02:00
Lukas Eder
2592960afe [jOOQ/jOOQ#10280] The method name is Meta.snapshot() 2020-06-16 12:23:52 +02:00
Lukas Eder
8785396888 [jOOQ/jOOQ#7673] Cannot call SQL Server stored procedure on HSQLDB 2020-06-11 12:27:47 +02:00
Lukas Eder
e4ba788abc [jOOQ/jOOQ#10264] Regenerated code 2020-06-10 16:27:16 +02:00
Lukas Eder
24cf349eb2 [jOOQ/jOOQ#3379] [jOOQ/jOOQ#7667] Fix aliasing TVF
Table-valued function aliasing is confusing as the order of .call() and
.as() is relevant
2020-06-10 15:50:34 +02:00
Lukas Eder
80896c75d0 [jOOQ/jOOQ#6248] [jOOQ/jOOQ#7682] Fix this for KotlinGenerator 2020-06-09 17:18:21 +02:00
Lukas Eder
9fe0bd8769 [jOOQ/jOOQ#8028] Added issue link to code 2020-06-09 15:56:23 +02:00
Lukas Eder
ec914b6e14 [jOOQ/jOOQ#10227] Avoid public visibility if possible 2020-06-04 11:45:03 +02:00
Lukas Eder
596ef0cb33 [jOOQ/jOOQ#10235] Fix generation of arrays and Any type 2020-05-29 16:42:51 +02:00
Lukas Eder
8f6657813e [jOOQ/jOOQ#10235] jOOQ-kotlin-example should use new KotlinGenerator
This also fixes array generation in Kotlin
2020-05-29 15:56:04 +02:00
Lukas Eder
bcd7a2ab4f [jOOQ/jOOQ#10227] Global UDT, Index, Identity, references are generated
as static, not static final
2020-05-29 11:09:00 +02:00
Lukas Eder
2d62a406c4 [jOOQ/jOOQ#681] Add support for type DOMAINs (WIP)
- Added org.jooq.Domain
- Add DSL API to construct domain references
- Add code generator support for domains
- Add DDL support for domains (CREATE, ALTER, DROP)
- Add parser support
- Add dialect support (H2, PostgreSQL, SQL Server)
2020-05-27 17:58:16 +02:00
Lukas Eder
0f08489f68 [jOOQ/jOOQ#10203] Bad Javadoc generated for Tables.java in the default
schema
2020-05-19 14:01:10 +02:00
Lukas Eder
5c3906e48c [jOOQ/jOOQ#10203] Bad Javadoc generated for Tables.java in the default schema 2020-05-19 13:48:44 +02:00
Lukas Eder
e66abac092 [jOOQ/jOOQ#10191] Cannot generate into(E) overload in Scala 2020-05-19 12:28:16 +02:00
Lukas Eder
1e7f4d3c73 [jOOQ/jOOQ#5422] Avoid whitespace before colon : in Scala 2020-05-19 10:53:53 +02:00
Lukas Eder
8598e8116b [jOOQ/jOOQ#10191] Allow for overriding generic method in Scala
Scala seems to erase generic types more completely, which means the generated Record.into() method overrides the AbstractRecord.into(), unlike in Kotlin and Java.
2020-05-19 10:23:55 +02:00
Lukas Eder
698b8b8004 [jOOQ/jOOQ#10191] Fix embeddable records 2020-05-18 16:24:08 +02:00
Lukas Eder
247d1ff0c2 [jOOQ/jOOQ#10191] Better formatting of empty arg list 2020-05-18 15:33:02 +02:00
Lukas Eder
8dc3bb491c [jOOQ/jOOQ#6248] Better formatting of no args functions 2020-05-18 10:45:12 +02:00
Lukas Eder
565ad6a83c [jOOQ/jOOQ#10197] Implicit join constructor shouldn't be generated on table valued functions 2020-05-15 16:29:29 +02:00
Lukas Eder
1980caa901 [jOOQ/jOOQ#6248] Fixed TVF in Kotlin 2020-05-15 16:21:32 +02:00