Commit Graph

845 Commits

Author SHA1 Message Date
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
Lukas Eder
6d91c8a292 [jOOQ/jOOQ#6248] Scratch that In / Out idea. It isn't sound. 2020-05-15 16:08:00 +02:00
Lukas Eder
3714fcbb4b [jOOQ/jOOQ#6248] Fixed an initialisation problem 2020-05-15 13:45:10 +02:00
Lukas Eder
7c8a8f5d36 [jOOQ/jOOQ#3285] Add support for HSQLDB table-valued functions 2020-05-15 11:18:13 +02:00
Lukas Eder
123d979ecd [jOOQ/jOOQ#10196] GeneratorWriter should auto-indent generated code 2020-05-14 14:01:42 +02:00
Lukas Eder
916fac56b6 [jOOQ/jOOQ#10195] GenerationTool should execute SHUTDOWN on HSQLDB connections 2020-05-14 11:03:42 +02:00
Lukas Eder
66346d35f1 [jOOQ/jOOQ#6248] WIP 2020-05-13 14:35:54 +02:00
Lukas Eder
37ec8d3a34 [jOOQ/jOOQ#6248] WIP 2020-05-13 10:27:35 +02:00
Lukas Eder
6b0ea7fe4e [jOOQ/jOOQ#10090] Add a <generatedAnnotationDate/> flag to allow for turning off generating @​Generated.date() 2020-04-20 11:42:56 +02:00
Lukas Eder
c2df94da47 [jOOQ/jOOQ#10013] Add <constructorPropertiesAnnotation/> to generate @ConstructorProperties on pojos and records 2020-03-31 11:27:08 +02:00
Lukas Eder
5380ed5ec1 [jOOQ/jOOQ#10007] "constant string too long" in generated code when view
source code exceeds 64KB
2020-03-30 14:37:11 +02:00
Lukas Eder
f3ff999494 Whitespace change 2020-03-18 13:33:31 +01:00
Lukas Eder
d1e4adcfb4 [jOOQ/jOOQ#6456] Remove extra newline in POJOs 2020-03-13 13:10:19 +01:00
Lukas Eder
75177c06bf [jOOQ/jOOQ#9959] Code generator should produce TIMESTAMP(precision) calls instead of TIMESTAMP.precision(precision) 2020-03-13 12:18:47 +01:00