Commit Graph

1180 Commits

Author SHA1 Message Date
Lukas Eder
d3e689b79e [jOOQ/jOOQ#15005] Fix generated whitespace 2023-05-02 16:35:50 +02:00
Lukas Eder
2804ddc2d2 [jOOQ/jOOQ#15005] Refactor generated code
The KotlinGenerator and ScalaGenerator require quite some different constructor design.
2023-05-02 14:29:51 +02:00
Lukas Eder
656e211d42 [jOOQ/jOOQ#15005] Add org.jooq.Path<R>, a type to model join paths
This includes:

- New org.jooq.Path type
- New JOIN method overloads
- Code generation implementation and configuration
2023-05-02 13:12:39 +02:00
Lukas Eder
c42deedaae [jOOQ/jOOQ#14998] Add code generation flag <implicitJoinPathUnusedConstructors/> to offer an option to stop generating unused implicit join path constructors 2023-05-02 08:47:47 +02:00
Lukas Eder
ffb9414667 [jOOQ/jOOQ#13639] Fix a few regressions
The new inverse foreign key code generation regressed on
[jOOQ/jOOQ#9758] and [jOOQ/jOOQ#11032]
2023-05-01 16:09:33 +02:00
Lukas Eder
47f59ce5d3 [jOOQ/jOOQ#14993] Add a new <matchers/> subelement <foreignKeys/> 2023-05-01 10:33:06 +02:00
Lukas Eder
b096a11858 [jOOQ/jOOQ#13639] Fix code generation error in ScalaGenerator 2023-05-01 10:04:36 +02:00
Lukas Eder
caa3dca7db [jOOQ/jOOQ#14985] Support many-to-many path joins 2023-04-28 17:40:44 +02:00
Lukas Eder
d5577c20db [jOOQ/jOOQ#13639] Implement kotlin and scala code generation 2023-04-28 15:37:15 +02:00
Lukas Eder
184f0b9dea [jOOQ/jOOQ#13639] Prevent generating duplicate attributes 2023-04-28 14:28:31 +02:00
Lukas Eder
49b48887c7 [jOOQ/jOOQ#13639] Add support for to-many path expressions
- Added code generation support
- Added runtime meta data
- Mark the feature as experimental
- Turn off the feature by default, for as long it's experimental
2023-04-26 15:18:09 +02:00
Lukas Eder
3f6a4ad915 [jOOQ/jOOQ#14932] Add a jooq.codegen.propertyOverride system property to GenerationTool 2023-04-13 15:20:52 +02:00
Lukas Eder
f60eeea84b [jOOQ/jOOQ#14932] Fix typo 2023-04-13 13:24:15 +02:00
Lukas Eder
e1549e0db9 [jOOQ/jOOQ#14932] Add a jooq.codegen.propertyOverride system property to GenerationTool
- Do this for jooq.codegen.jdbc
2023-04-13 10:30:27 +02:00
Lukas Eder
9ca59d6739 [jOOQ/jOOQ#14916] Compilation error with embedded domains and postgres
types
2023-04-11 10:16:12 +02:00
Lukas Eder
22ca708b2b [jOOQ/jOOQ#14916] Compilation error with embedded domains and postgres types 2023-04-06 17:16:34 +02:00
Lukas Eder
cb4bd635c8 [jOOQ/jOOQ#8617] Add org.jooq.Generated annotation with RUNTIME retention for generated code 2023-03-31 16:47:18 +02:00
Lukas Eder
e7db20cd5a [jOOQ/jOOQ#14882] Generate nullable annotations also on record
constructor, when <pojosAsJavaRecordClasses/> is set
2023-03-30 11:12:40 +02:00
Lukas Eder
ecdfd8a90a [jOOQ/jOOQ#14883] Regression: KotlinGenerator produces superfluous public keyword for overriding methods 2023-03-30 10:22:25 +02:00
Lukas Eder
0a65011729 [jOOQ/jOOQ#14853] Kotlin Code generator generates invalid code for
embeddables in POJOs when immutable interfaces is activated

This includes:

- [jOOQ/jOOQ#14855] Compilation error in generated code for embeddable
properties when reducing visibility to internal, and generating
interfaces
2023-03-27 12:07:31 +02:00
Lukas Eder
a908ff7532 [jOOQ/jOOQ#14830] Compilation error in generated code when table valued function returns table with client side computed columns and <recordsImplementingRecordN/> is active 2023-03-22 12:53:09 +01:00
Lukas Eder
fd9f053d74 [jOOQ/jOOQ#14785] Compilation error in KotlinGenerator generated code
when <kotlinNotNullRecordAttributes/> and <recordsGeneratingRecordN/>
are both active
2023-03-21 10:51:07 +01:00
Lukas Eder
cbf3742c84 [jOOQ/jOOQ#14817] Nullable kotlin records break columns with default values 2023-03-21 10:12:13 +01:00
Lukas Eder
099972252a
Merge pull request #14802 from xoliver/fix/14801
[#14801] Fix Java String generation for non-nullable arrays
2023-03-17 11:45:34 +01:00
Lukas Eder
830e32c791 [jOOQ/jOOQ#14800] Error when PostgreSQL anonymous block contains dollar
quoted string token
2023-03-16 12:09:51 +01:00
Xavier
f7dced7d3f [jOOQ#14801] Fix Java String generation for non-nullable arrays 2023-03-15 15:50:37 +00:00
Lukas Eder
50e06ebd94 [jOOQ/jOOQ#11485] Trino isn't a commercial dialect 2023-03-13 09:26:40 +01:00
Lukas Eder
d8341ce9ee [jOOQ/jOOQ#11485] Add support for Trino DB - WIP 2023-03-10 15:16:13 +01:00
Lukas Eder
5988833d09 Release 3.19.0-SNAPSHOT 2023-03-08 13:41:09 +01:00
Lukas Eder
942c89bf75 [jOOQ/jOOQ#14727] Generated TRecord.from(IT) method behaves differently from Record.from() with respect to NOT NULL DEFAULT columns 2023-03-01 13:44:58 +01:00
Lukas Eder
88f7d54a87 [jOOQ/jOOQ#13530] [jOOQ/jOOQ#14648] Add runtime support for procs 2023-02-17 17:22:11 +01:00
Lukas Eder
38f2ccef8a [jOOQ/jOOQ#14534] Add <generatedAnnotationJooqVersion/> option to the code generator 2023-02-13 17:06:26 +01:00
Lukas Eder
f1233381bf [jOOQ/jOOQ#14628] Missing default information on DOMAIN types that get
an overridden DEFAULT by CREATE TABLE
2023-02-13 15:37:31 +01:00
Lukas Eder
a716afb4ad [jOOQ/jOOQ#14618] Missing nullability information on nullable DOMAIN types that are made non-null by CREATE TABLE 2023-02-13 11:49:44 +01:00
Lukas Eder
e75295ea2e [jOOQ/jOOQ#10014] Infinite loop in code generation templating language if a parameter is forgotten 2023-02-10 13:47:11 +01:00
Lukas Eder
9ef3f9ebae [jOOQ/jOOQ#14564] KotlinGenerator generates invalid code in equals() and hashCode() methods for inline value class fields 2023-02-08 15:53:18 +01:00
Lukas Eder
07eceb7db5 [jOOQ/jOOQ#14524] Compilation error due to missing import in generated code when using <lambdaConverter/> on a routine 2023-01-20 14:37:22 +01:00
Cies Breijs
e7a21cc678
Correctly hint nullability of getSchema() method
Fixes #14431
2022-12-27 15:18:17 +01:00
Lukas Eder
0173f5dded [jOOQ/jOOQ#14379] Add DSL.raw(String) and
Settings.renderPlainSQLTemplatesAsRaw to allow plain SQL without
templating
2022-12-08 16:32:36 +01:00
Lukas Eder
8124b68b50 [jOOQ/jOOQ#12637] Compilation error in generated code when UDT attribute
name conflicts with getter procedure
2022-11-29 15:05:43 +01:00
Lukas Eder
e21294cd29 [jOOQ/jOOQ#5405] Generated SETOF table_type functions should reuse the
TableRecord type of the referenced table
2022-11-25 12:03:01 +01:00
Lukas Eder
9eb3ff74fd [jOOQ/jOOQ#14289] ScalaGenerator generated code should avoid "procedure syntax" 2022-11-24 11:16:00 +01:00
Lukas Eder
949efa2b79 [jOOQ/jOOQ#14204] KotlinGenerator fix 2022-11-23 17:45:56 +01:00
Lukas Eder
d55dfa6675 [jOOQ/jOOQ#14204] AbstractToJacksonConverter does not work when userType is array 2022-11-23 17:10:38 +01:00
Lukas Eder
f0b3c0341f [jOOQ/jOOQ#14255] Improve generated unknown data type javadoc when forcedTypes match return type, but there are still unknown parameter types 2022-11-21 11:13:30 +01:00
Lukas Eder
157f822e7b [jOOQ/jOOQ#14141] Generated text blocks for view sources should escape backslashes 2022-10-27 09:34:55 +02:00
Lukas Eder
ea3c4590b3 [jOOQ/jOOQ#14132] Code generator shouldn't generate precision on
non-decimal types
2022-10-26 11:00:34 +02:00
Lukas Eder
359ef49ad6 [jOOQ/jOOQ#14110] License header should use HTTPS rather than HTTP 2022-10-19 10:43:58 +02:00
Lukas Eder
4a38a5cb29 [jOOQ/jOOQ#13866] KotlinGenerator produces directory names with
backticks when catalog names contain special characters
2022-09-27 11:18:13 +02:00
Lukas Eder
3893d1e324 [jOOQ/jOOQ#6311] Add <oracleUseDBAViews/> flag to code generator to use DBA_XYZ views instead of ALL_XYZ views 2022-09-22 16:14:27 +02:00