Commit Graph

12726 Commits

Author SHA1 Message Date
Lukas Eder
0ea3691c2f Add policies to README 2024-01-15 13:18:28 +01:00
Lukas Eder
2a8016e644 [jOOQ/jOOQ#16075] Remove unnecessary runtimeClasspath dependency of the jOOQ-codegen-gradle plugin 2024-01-15 10:47:24 +01:00
Lukas Eder
49a001ca91 [jOOQ/jOOQ#12180] [jOOQ/jOOQ#16074] Scalac 3 regression workarounds 2024-01-15 10:38:33 +01:00
Lukas Eder
e6abaf2c7b [jOOQ/jOOQ#13225] Add Javadoc to all XJC-generated withers and setters
of boolean types
2024-01-12 11:55:42 +01:00
Lukas Eder
ba636bdd1e [jOOQ/jOOQ#16059] MetaSQL lookups are done with SQLDialect.family(), not
SQLDialect

This includes:

- [jOOQ/jOOQ#16054] Regression: Table metadata calculation for Oracle
does not work after 3.19.0
2024-01-11 11:25:49 +01:00
Lukas Eder
303cfefa99 [jOOQ/jOOQ#15966] [jOOQ/jOOQ#15974] Copy default configuration
MiniJAXB doesn't deep clone the appended objects, so we end up using shared mutable state (see [jOOQ/jOOQ#16056]). This must be avoided, otherwise, each execution updates the common shared default configuration, which is certainly not what we want.
2024-01-11 09:35:34 +01:00
Lukas Eder
ab8b9dff1e [jOOQ/jOOQ#15966] [jOOQ/jOOQ#15974] Another iteration
Correct order of registering tasks and configuring them. We mustn't rely on any implicit ordering of the NamedDomainObjectContainer as that might be an implementation detail subject to change at any time.
2024-01-11 09:03:39 +01:00
Lukas Eder
9d8d793c97 [jOOQ/jOOQ#15966] [jOOQ/jOOQ#15974] Another iteration
- Remove jooqCodegenAll again (I managed!)
- Add tests for single-execution configurations
- Nest test projects into a single project
2024-01-10 17:00:24 +01:00
Lukas Eder
f7923c5f5e [jOOQ/jOOQ#16043] DATE column in Oracle is null when fetched through
multiset

This includes:

- [jOOQ/jOOQ#16044] org.jooq.tools.Convert should delegate to
org.jooq.impl.Convert, instead of duplicating implementations
2024-01-10 11:14:31 +01:00
Lukas Eder
27390cfd7b [jOOQ/jOOQ#15286] [jOOQ/jOOQ#16012] More Javadoc hints 2024-01-09 14:57:25 +01:00
Lukas Eder
5dfa78037c [jOOQ/jOOQ#16039] Compilation error in JavaGenerator generated code when
<pojosAsJavaRecordClasses> is active and a table references a UDT
2024-01-09 11:17:42 +01:00
Lukas Eder
d6f26880ad [jOOQ/jOOQ#16037] ScalaGenerator produces duplicate paths for cyclic foreign key relationships 2024-01-09 10:30:34 +01:00
Data Geekery CI Bot
f5bb5c0e50 Re-generated code 2024-01-09 05:34:36 +01:00
Lukas Eder
00070175ef [jOOQ/jOOQ#16031] SQLPerformanceWarning should log hint about gathering dictionary statistics in OracleDatabase 2024-01-08 16:33:21 +01:00
Lukas Eder
bc06815ce2 [jOOQ/jOOQ#16029] Regression: NullPointerException in KotlinGenerator
generated code when InlineDerivedTable constructor calls
TableImpl.where(null)
2024-01-08 16:02:52 +01:00
Lukas Eder
3363a8e811 [jOOQ/jOOQ#15991] Cannot project TableAsField if table contains embeddables in PostgreSQL 2024-01-08 13:08:19 +01:00
Lukas Eder
b0508a9235 [jOOQ/jOOQ#16012] Add Javadoc to discourage using any Fields.field(x,
Class<T>) method if there's an Fields.field(x, DataType<T>) overload
2024-01-08 09:51:01 +01:00
Lukas Eder
66668c50df [jOOQ/jOOQ#16006] Compilation error in KotlinGenerator generated code
when GeneratorStrategy produces identifiers conflicting with property
access syntax of AbstractRoutine getters
2024-01-05 16:09:34 +01:00
Lukas Eder
729acdf795 [jOOQ/jOOQ#15966] Remove mandatory dependency from compileJava to
jOOQ-codegen-gradle tasks

This includes:

- [jOOQ/jOOQ#15974] Cannot look up tasks.named(jooqCodegen) from
gradle scripts
- [jOOQ/jOOQ#16003] Misleading XSD warnings logged when working with
MiniJAXB
2024-01-05 15:16:49 +01:00
Lukas Eder
476182fdd2 Release 3.20.0-SNAPSHOT 2024-01-05 11:53:57 +01:00
Lukas Eder
a4e2948280 [jOOQ/jOOQ#16008] Code generator fails when generating triggers because TriggerExecution value is null 2024-01-05 11:47:23 +01:00
Lukas Eder
62ae2e4f76 [jOOQ/jOOQ#15993] RenderTable.WHEN_MULTIPLE_TABLES only works with table lists, not with joins 2023-12-27 12:20:10 +01:00
Lukas Eder
5487cbdd29 [jOOQ/jOOQ#15989] AbstractJoin.toString() should render SQL with tables declared, not referenced 2023-12-22 15:14:56 +01:00
Lukas Eder
e07765fc3e [jOOQ/jOOQ#15987] pom.xml files should use https links instead of http links 2023-12-22 14:44:36 +01:00
Lukas Eder
1fdb63b6fd [jOOQ/jOOQ#15980] Regression in PostgreSQL query using 'x' = ANY (ARRAY
[(SELECT ARRAY ['x'])]) style quantified comparison predicate on multi
dimensional arrays

This includes:

- [jOOQ/jOOQ#15982] Comparison predicates and quantified comparison
predicates should hint array type to org.jooq.impl.Array for empty
expression array casts
2023-12-22 13:57:36 +01:00
Lukas Eder
edb209c5ab [jOOQ/jOOQ#15975] Wrong statement generated for MySQL when leading unqualified asterisk is used with plain SQL template table 2023-12-20 17:02:25 +01:00
Lukas Eder
4b46ccf420 [jOOQ/jOOQ#15941] Remove pre 3.9 deprecated API and pre 3.9
documentation
2023-12-20 13:35:57 +01:00
Lukas Eder
514b39d359 [jOOQ/jOOQ#15967] Implicit path correlation shouldn't generate
correlation predicate if correlation isn't in scope
2023-12-20 13:35:46 +01:00
Lukas Eder
480329ab26 [jOOQ/jOOQ#15965] Regression in LiquibaseDatabase when omitting the database.liquibaseSchemaName value 2023-12-20 13:34:55 +01:00
Lukas Eder
227f932b41 [jOOQ/jOOQ#15958] YugabyteDB doesn't support ALTER TABLE .. DROP CONSTRAINT IF EXISTS 2023-12-19 10:01:16 +01:00
Lukas Eder
27a95c7c3a [jOOQ/jOOQ#15943] SQLite requires parenthesised DEFAULT expressions in DDL 2023-12-19 08:59:27 +01:00
Lukas Eder
d060580a98 [jOOQ/jOOQ#15942] KeepNamesGeneratorStrategy generates ambiguous path
names if implicitJoinPathTableSubtypes is activated
2023-12-18 10:53:46 +01:00
Lukas Eder
0fdd1e1f6f [jOOQ/jOOQ#15944] jOOQ-codegen-gradle should resolve relative
directories with respect to the gradle project, not the running process
2023-12-18 10:53:30 +01:00
Data Geekery CI Bot
8fc04cc536 Re-generated code 2023-12-16 04:26:32 +01:00
Lukas Eder
070d47a161 Release 3.20.0-SNAPSHOT 2023-12-15 17:16:27 +01:00
Lukas Eder
05f24d79e3 Release 3.19.1-SNAPSHOT 2023-12-15 17:08:05 +01:00
Lukas Eder
04dbbf4639 Release 3.19.0 2023-12-15 14:05:22 +01:00
Lukas Eder
139e1afe84 [jOOQ/jOOQ#12985] Replace Closure<?> usage by ObjectFactory usage
As recommended here:
https://github.com/jOOQ/jOOQ/issues/12985#issuecomment-1853325931 if we
pass around an ObjectFactory instance from Gradle, then all the meta
data can be made available to Gradle / IntelliJ for both kotlin and
groovy builds.
2023-12-13 11:23:24 +01:00
Lukas Eder
c697e1cc6c [jOOQ/jOOQ#15755] Make RenderImplicitJoinType.THROW default for to-many
To-many implicit joins are a controversial feature for the reasons
discussed in various issues. THROW is now the default for them, to make
sure no RDBMS with weird implementation for the SCALAR_SUBQUERY
implementation confuses users.

This change also correctly generates implicit joins from paths declared
in FROM, in case sub-paths are skipped.
2023-12-12 10:10:49 +01:00
Lukas Eder
50290b4c69 [jOOQ/jOOQ#12985] Remove the jooq-meta-kotlin dependency again 2023-12-08 16:32:25 +01:00
Lukas Eder
d40390cf69 [jOOQ/jOOQ#12985] Remove the jooq-meta-kotlin dependency again
It's no longer needed, now that the jOOQ-meta extensions classes provide methods accepting Action
2023-12-08 15:32:18 +01:00
Lukas Eder
9a9dfc8335 [jOOQ/jOOQ#14551] Add a tip about DAOs 2023-12-07 16:17:05 +01:00
Lukas Eder
60c910bf46 [jOOQ/jOOQ#15918] AbstractDatabase::markUsed doesn't work in some edge
cases
2023-12-07 14:13:54 +01:00
Lukas Eder
698fbc0f94 [jOOQ/jOOQ#12985] Add --debug CLI hint for Gradle 2023-12-07 12:41:11 +01:00
Lukas Eder
f2a4c7667c [jOOQ/jOOQ#12985] Add comment explaining rationale for explicit Closure
We still need explicit groovy Closure support in our DSL API for gradle because of an interesting decision in ClosureBackedAction to prefer Closure.OWNER_ONLY over Closure.DELEGATE_FIRST. Apparenty, OWNER_ONLY is faster, but DELEGATE_FIRST is really what we want, irrespective of speed
2023-12-07 12:05:57 +01:00
Lukas Eder
1c908c0294 [jOOQ/jOOQ#12985] Add org.gradle.api.Action support 2023-12-07 12:01:53 +01:00
Lukas Eder
d2e991454c [jOOQ/jOOQ#12985] Add @DelegatesTo annotation to all closures 2023-12-06 17:10:26 +01:00
Lukas Eder
5aa6185d92 [jOOQ/jOOQ#12985] Clone the closures for good measure 2023-12-06 11:15:57 +01:00
Lukas Eder
5befaf6576 [jOOQ/jOOQ#12985] Support a Groovy DSL in jOOQ-codegen-gradle 2023-12-05 16:37:21 +01:00
Lukas Eder
ccaab3f6ad [jOOQ/jOOQ#12985] No longer recommending the third party plugin 2023-12-05 08:30:22 +01:00