Commit Graph

1348 Commits

Author SHA1 Message Date
Lukas Eder
a5b5f467a7 [jOOQ/jOOQ#15276] Add code generation support for synthetic enums
This includes:

- [jOOQ/jOOQ#15277] Add Replacers.transformPatterns(Configuration)
public API to give access to the internal Replacer
- [jOOQ/jOOQ#15279] EnumConverter should support org.jooq.EnumType as U
type
2023-06-23 17:15:00 +02:00
Lukas Eder
f0e0ce5c99 [jOOQ/jOOQ#14985] Override TableImpl.as() methods also in Path subtype.
In order to allow for things like:

BOOK.join(BOOK.author())

We generate a Author subclass that extends Author & Path<AuthorRecord> to help auto-generate the right ON clause. This now also works with aliased paths:

BOOK.join(BOOK.author().as(a))
2023-06-21 11:05:46 +02:00
Lukas Eder
91fa53d6c5 [jOOQ/jOOQ#15207] A fix for a regression when both
<outputSchemaToDefault>true</outputSchemaToDefault> and
<defaultSchema>false</defaultSchema>

In this fix, we move the assumption of an EnumType being stored in the schema from an EnumType::getSchema check to an EnumType::getName check. The latter being null really means the enum isn't stored.
2023-06-20 13:00:00 +02:00
Lukas Eder
9448c9c399 [jOOQ/jOOQ#9506] Various improvements:
- Implement a file based migration draft
- Throw DataMigrationValidationException if files are wrongly named
- Throw this exception also when loading the XML content
- Update generated code (move it to the top level)
- [jOOQ/jOOQ#15210] No need for CHANGELOG.rename() yet
- [jOOQ/jOOQ#15207] Turn off default schema/catalog
- Added tag support to API and XML configuration
- Make Commits::iterator unmodifiable
2023-06-13 16:38:55 +02:00
Lukas Eder
97311cafda [jOOQ/jOOQ#15209] Support ad-hoc compilation of programmatic objects in the code generator
- Add support for GeneratorStrategy
2023-06-12 17:26:09 +02:00
Lukas Eder
bd56a44932 [jOOQ/jOOQ#15207] Add a configuration flag to avoid generating
DefaultCatalog and DefaultSchema
2023-06-12 11:09:25 +02:00
Lukas Eder
c7e9a2c2af [#15210] Add code generation flags to avoid overrides of as() methods or rename() methods 2023-06-12 08:35:21 +02:00
Lukas Eder
5e996c0b34 [jOOQ/jOOQ#15183] Compilation error in generated DAO code when
visibility of a field is changed to private
2023-06-07 13:12:08 +02:00
Lukas Eder
25897d1ebf [jOOQ/jOOQ#15168] NullPointerException in code generator when omitting
<target> directory
2023-06-02 12:43:46 +02:00
Lukas Eder
3cabeb65ad [jOOQ/jOOQ#15154] Fix various Javadoc links 2023-05-31 15:22:42 +02:00
Lukas Eder
97c56d2d53 [jOOQ/jOOQ#13947] Support CockroachDB 23 user defined functions - WIP
- Fix array type support
2023-05-31 12:17:59 +02:00
Lukas Eder
3cd2dd559a [jOOQ/jOOQ#15097] Compilation error in Oracle generated code for package type in PL/SQL RECORD constructor 2023-05-24 11:24:00 +02:00
Lukas Eder
782000ed6f [jOOQ/jOOQ#8012] Various improvements:
- Added KotlinGenerator implementation
- Added ScalaGenerator implementation
- Add a check for the codegen configuration flag
- [jOOQ/jOOQ#15095] Generate property access syntax in KotlinGenerator
generated tables
2023-05-22 19:32:11 +02:00
Lukas Eder
4dcec71dfa [jOOQ/jOOQ#8012] Added more convenient internal constructor 2023-05-22 09:21:23 +02:00
Lukas Eder
9bbce6b459 [jOOQ/jOOQ#8012] Override Table.where(Condition) methods in generated tables 2023-05-17 17:47:44 +02:00
Lukas Eder
59db3a9183 [jOOQ/jOOQ#14991] KotlinGenerator produces wrong code with
kotlinNotNullPojoAttributes when multiple references to an embeddable
have different nullability
2023-05-17 12:22:17 +02:00
Lukas Eder
80916440f5 [jOOQ/jOOQ#12663] Fix wrong Javadoc tag 2023-05-05 12:03:26 +02:00
Lukas Eder
72ab4f1c1c [jOOQ/jOOQ#15024] Improve Javadoc of lookupLiteral() for generated enums
This includes:

- [jOOQ/jOOQ#15025] Generate annotations on generated EnumType::getLiteral method, if so configured
2023-05-05 09:55:54 +02:00
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
Lukas Eder
b8017d917c [jOOQ/jOOQ#14003] Compilation error in generated code when combining
<pojos/>, <interfaces/> and <embeddables/>
2022-09-21 12:52:38 +02:00
Lukas Eder
f73be0d9da [jOOQ/jOOQ#14003] Compilation error in generated code when combining
<pojos/>, <interfaces/> and <embeddables/>

See also: [jOOQ/jOOQ#10212]
2022-09-20 14:45:14 +02:00
Lukas Eder
c72c23b4ab [jOOQ/jOOQ#10212] DAO interactions improved 2022-09-20 13:21:00 +02:00
Lukas Eder
09061658da [jOOQ/jOOQ#10212] Improve DAO interaction 2022-09-20 11:13:57 +02:00
Lukas Eder
c43f0ff06d [jOOQ/jOOQ#10212] Fixed some embeddable regressions 2022-09-20 11:04:21 +02:00
Lukas Eder
b26a5c60c8 [jOOQ/jOOQ#10212] Add options to generate non-null attributes on Records, Pojos, and interfaces in KotlinGenerator
This includes:

- [jOOQ/jOOQ#14002] KotlinGenerator shouldn't generate public default constructor if non-nullable attributes are generated on records
2022-09-20 10:52:03 +02:00
Lukas Eder
6061630ba2 [jOOQ/jOOQ#252] Avoid unnecessary import 2022-09-13 14:41:59 +02:00
Lukas Eder
c2be215b9f [jOOQ/jOOQ#252] More fixes
- Replaced int based PostgresUtils state machine by enum based one
- Support parsing nested arrays in toPGObjectOrArray()
- Handle {{}} case, which isn't supported in PG
- Code generation support for multi dimensional arrays in UDTs (Java)
2022-09-12 16:54:21 +02:00
Lukas Eder
e25723afa7 [jOOQ/jOOQ#13971] Add DataType.array() as a DSL style shortcut for
getArrayDataType()
2022-09-09 17:45:58 +02:00
Lukas Eder
0a259e6731 [jOOQ/jOOQ#252] Fix scala generation 2022-09-09 12:57:43 +02:00
Lukas Eder
b9ef00717e [jOOQ/jOOQ#252] Generate deepHashCode as well 2022-09-09 12:41:29 +02:00
Lukas Eder
491f9a3aad [jOOQ/jOOQ#252] Generate Arrays.deepToString() 2022-09-09 10:49:34 +02:00
Lukas Eder
42d262920a [jOOQ/jOOQ#252] Added code generation support (WIP)
This includes:

- [jOOQ/jOOQ#13970] PostgreSQL code generation fails when user defined
type starts with _
2022-09-08 20:36:45 +02:00
Lukas Eder
79ea77c896 [jOOQ/jOOQ#252] Added H2 code generation support 2022-09-08 14:09:35 +02:00
Lukas Eder
58a9029b20 [jOOQ/jOOQ#13936] Code generator should properly qualify H2 domain enums 2022-08-30 14:31:27 +02:00
Lukas Eder
dfaeb6026e [jOOQ/jOOQ#13804] Wrong kotlin code generated for SQL Server stored procedures 2022-08-15 14:38:43 +02:00
Lukas Eder
c7ce8d900d [jOOQ/jOOQ#13803] AbstractSpringDAOImpl imported from wrong package when
generating multiple schemas
2022-08-15 14:02:21 +02:00
Per Lundberg
8801dbeebb
Fix typo in log message
Spotted locally; there is a double negation in this sentence:

> This code generation run has not produced any file modifications.
> This means, the schema has not changed, and no other parameters (jOOQ version, driver version, database version,
> and any configuration elements) have not changed either.
2022-08-09 15:43:33 +03:00
Lukas Eder
479c0e06e4 [jOOQ/jOOQ#9844] Generator strategies should support <schemaExtends/>, <tableExtends/>, <recordExtends/>, <daoExtends/>, <routineExtends/> 2022-07-07 16:01:22 +02:00
Lukas Eder
8e3553c378 [jOOQ/jOOQ#9844] Upgraded XSD to jooq-codegen-3.18.0.xsd 2022-07-07 14:36:02 +02:00
Lukas Eder
58d8c3e971 [jOOQ/jOOQ#13769] Emulate GROUP BY <column index> using substitution in dialects where this isn't natively supported 2022-07-06 10:44:32 +02:00
Lukas Eder
cfd3b0ce4c [jOOQ/jOOQ#13732] Wrong Javadoc in generated AbstractSpringDAOImpl 2022-06-27 15:53:02 +02:00
Lukas Eder
052f8a1569 [jOOQ/jOOQ#13730] Generated sources emits "reference not accessible" warning for org.jooq.impl.AbstractTable#convertFrom 2022-06-27 15:48:40 +02:00
Lukas Eder
e08f2bf365 [jOOQ/jOOQ#13718] Log warning should show jOOQ-meta type to help
disambiguate objects that share the same name
2022-06-24 09:08:20 +02:00
Lukas Eder
56dfbafa42 [jOOQ/jOOQ#13703] Ill formatted Javadoc in DSLContext 2022-06-23 14:56:44 +02:00
Lukas Eder
f4882581e1 Release 3.18.0-SNAPSHOT 2022-06-23 14:56:33 +02:00
Lukas Eder
81de955e11 Release 3.17.1-SNAPSHOT 2022-06-23 11:25:37 +02:00
Lukas Eder
b1718c6648 [jOOQ/jOOQ#13700] Upgrade to H2 2.1.214
This includes upgrading to 3.18.0-SNAPSHOT on main branch
2022-06-22 11:58:07 +02:00
Lukas Eder
723e74d94d [jOOQ/jOOQ#9879] Get things to work in kotlin and scala 2022-06-16 10:34:20 +02:00
Lukas Eder
86b2ec3abc [jOOQ/jOOQ#4946] Hide implementation for now 2022-06-16 08:42:20 +02:00
Lukas Eder
29890da22c [jOOQ/jOOQ#6489] Code generator should support SQL-generated "dynamic regular expressions" 2022-06-15 18:11:56 +02:00
Lukas Eder
f915b55590 [jOOQ/jOOQ#13655] Add XMLSchemaCollectionDefinition,
XMLNamespaceDefinition, and XMLTypeDefinition to jOOQ-meta
2022-06-10 15:57:14 +02:00
Lukas Eder
b3a044b621 [jOOQ/jOOQ#13069] Revert prototype 2022-06-07 12:01:24 +02:00
Lukas Eder
4c92db68c6 [jOOQ/jOOQ#13069] Deactivate the experimental feature for now 2022-06-03 10:39:58 +02:00
Lukas Eder
768f5033b4 [jOOQ/jOOQ#13619] Revert this for now, until compilation issues are understood 2022-05-31 12:29:08 +02:00
Lukas Eder
c17bd6eba3 [jOOQ/jOOQ#13619] No idea what I'm doing... 2022-05-31 12:06:37 +02:00
Lukas Eder
e63719fad0 [jOOQ/jOOQ#12430] Make Java 17 the baseline for the jOOQ Open Source Edition 2022-05-23 16:45:35 +02:00
Lukas Eder
2da6648520 [jOOQ/jOOQ#11071] Fix for Java < 16
Before Java 16, static classes couldn't be nested in inner classes!
2022-05-20 17:11:23 +02:00
Lukas Eder
1340f23008 [jOOQ/jOOQ#11071] Java 8 fix 2022-05-19 21:00:48 +02:00
Lukas Eder
d54a522af8 [jOOQ/jOOQ#9817] Generate text blocks for views 2022-05-19 20:40:24 +02:00
Lukas Eder
0d60fd887f [jOOQ/jOOQ#9817] Added config 2022-05-19 15:46:17 +02:00
Lukas Eder
65e3a39f2b [jOOQ/jOOQ#11071] First prototype committed
- Added code generation configuration
- Simple code generation implementation
- Simple integration tests
2022-05-19 15:28:46 +02:00
Lukas Eder
9bbf43fba6 [jOOQ/jOOQ#13557] MySQL / MariaDB generated columns with enum type are
not generated as readonly
2022-05-17 16:23:40 +02:00
Lukas Eder
b95715d1fc [jOOQ/jOOQ#13558] Add a PrefixSuffixGeneratorStrategy to jOOQ-codegen 2022-05-13 16:00:59 +02:00
Lukas Eder
95bc88e5fe [jOOQ/jOOQ#13069] Added <existsConvenience/> 2022-05-13 09:21:23 +02:00
Lukas Eder
7f416b3136 [jOOQ/jOOQ#13546] Stop aligning generated POJO members and constructor arguments in columns 2022-05-12 15:50:08 +02:00
Lukas Eder
78792b0659 [jOOQ/jOOQ#10677¨Add <onUnused/> to code generation configuration to specify behaviour when encountering unused objects 2022-05-11 16:05:07 +02:00
Lukas Eder
0bab3f41fa [jOOQ/jOOQ#13457] New configuration to generate implicit join definitions ALWAYS from foreign key name 2022-05-05 11:47:16 +02:00
Lukas Eder
51ba61d336 [jOOQ/jOOQ#13516] KotlinGenerator should generate implicit joins path
accessors as properties
2022-05-03 16:40:18 +02:00
Lukas Eder
b7fc10238c [jOOQ/jOOQ#5641] Support overriding code generation <target/> configuration via system properties 2022-05-02 11:54:40 +02:00
Lukas Eder
dae248ac3e [jOOQ/jOOQ#13467] Generate @Suppress(INAPPLICABLE_JVM_NAME) everywhere 2022-04-21 10:02:28 +02:00
Lukas Eder
0b3c99e00a [jOOQ/jOOQ#13467] KotlinGenerator should generate open properties in generated records 2022-04-21 09:48:26 +02:00
Lukas Eder
90f0a01c91 [jOOQ/jOOQ#13434] Log unused synthetic columns 2022-04-11 11:13:12 +02:00
Lukas Eder
124368ce3e [jOOQ/jOOQ#13439] No warning is logged when readonly columns or rowids are not used 2022-04-11 11:07:24 +02:00
Lukas Eder
d3b700685d [jOOQ/jOOQ#9879] Support VIRTUAL client side computed columns 2022-04-08 17:04:34 +02:00
Lukas Eder
f7e72cd17d [jOOQ/jOOQ#13432] Add <visibilityModifier/> code generation option to <forcedType/> 2022-04-07 14:56:07 +02:00
Lukas Eder
fd05a97f92 [jOOQ/jOOQ#13393] Replace internal usage of
DatatypeConverter::parseBase64Binary by java.util.Base64
2022-03-31 14:53:49 +02:00
Lukas Eder
95bd4ecce8 [jOOQ/jOOQ#13355] Invalid code generated when pojosEqualsAndHashCode option is enabled and column name is 'other' 2022-03-28 15:50:33 +02:00
Lukas Eder
10b8a6176d [jOOQ/jOOQ#13336] Generate covariant overrides for Table.rename(Table) and Table.as(Table) methods 2022-03-24 15:59:26 +01:00
Lukas Eder
953501b380 [jOOQ/jOOQ#13324] Code generation output shouldn't print table mapping output, if it's the same as the input 2022-03-23 10:08:22 +01:00
Lukas Eder
02df3dced5 [jOOQ/jOOQ#9879] Add support for client side GENERATED ALWAYS AS - WIP 2022-03-23 10:03:44 +01:00
Lukas Eder
11dbdbb75e [jOOQ/jOOQ#13319] Generated records shouldn't have a @ConstructorProperties annotation on their POJO constructor 2022-03-22 08:56:25 +01:00
Lukas Eder
a8b4fa6231 [jOOQ/jOOQ#13315] Compilation error in generated UDTRecord's POJO constructor if the UDT contains arrays of table records 2022-03-21 16:33:39 +01:00
Lukas Eder
af4c3396ea [jOOQ/jOOQ#11424] Improve the alignment of GenerationTool INFO log 2022-03-21 12:38:38 +01:00
Lukas Eder
69f4fa3066 [jOOQ/jOOQ#10756] Generate @Transactional on DAOImpl and generated DAOs
query-methods
2022-03-11 11:04:14 +01:00
Lukas Eder
ed778cf7b3 [jOOQ/jOOQ#13143] Add code generation flags to turn off the recognition
of jOOQ-specific types
2022-03-09 10:40:29 +01:00
Lukas Eder
77c1cd2ebf [jOOQ/jOOQ#13211] KotlinGenerator cannot read existing catalog/schema
version
2022-03-04 15:35:43 +01:00
Lukas Eder
da2aa57f11 [jOOQ/jOOQ#2968] Added daterange support 2022-03-01 17:34:03 +01:00
Lukas Eder
e7890e4671 [jOOQ/jOOQ#13163] Compilation error when PostgreSQL stored function has
an ANYARRAY data type reference
2022-02-28 18:00:00 +01:00
Lukas Eder
c2a5d8addc [jOOQ/jOOQ#10763] Official jOOQ-postgres-extensions bindings should register themselves as low priority bindings if found on the code generation classpath 2022-02-28 15:32:40 +01:00
Lukas Eder
8dbd3a939b [jOOQ/jOOQ#13137] Change default for <pojosEqualsAndHashCode/> code
generation option to true
2022-02-24 11:22:17 +01:00
Lukas Eder
2d035528dc [jOOQ/jOOQ#13135] Generate mapping() deconstruction convenience methods on generated Tables if <recordsImplementingRecordN/> is set 2022-02-24 10:37:49 +01:00
Lukas Eder
6cf2bf9353 [jOOQ/jOOQ#13069] Support <rowConvenienceToOne/> in kotlin, scala 2022-02-23 15:39:56 +01:00
Lukas Eder
f492aa31c1 [jOOQ/jOOQ#13069] Implementation draft for <rowConvenienceToOne/> 2022-02-23 08:56:18 +01:00
Lukas Eder
8e237c0aa9 [jOOQ/jOOQ#13107] Fix regression of XMLDatabase 2022-02-21 11:57:25 +01:00
Lukas Eder
b8f1d35876 [jOOQ/jOOQ#13069] Generate convenience methods for common MULTISET and ROW nestings 2022-02-15 16:41:25 +01:00
Lukas Eder
eb73c795d7 [jOOQ/jOOQ#13063] Upgrade the jooq-codegen-3.17.0.xsd version 2022-02-14 11:37:18 +01:00
Lukas Eder
560f2af5fd [jOOQ/jOOQ#12608] Support referencing the same embeddable type multiple times per table
This includes:

- [jOOQ/jOOQ#13028] Generated DAOs should use an embeddable's referencingName, not name for the fetchByXYZ() and fetchRangeOfXYZ() methods
2022-02-09 12:48:27 +01:00
Lukas Eder
1d5c8c2ccf [jOOQ/jOOQ#13008] Compilation error in KotlinGenerator output when implicit join path cache conflicts with keyword 2022-02-08 13:47:52 +01:00
Lukas Eder
6063896ec0
Merge pull request #13010 from owyke/another-solution-to-kotlin-code-gen-issue
[#13008] Unquote keyword when mapping one to many relation
2022-02-08 13:42:58 +01:00
Oskar Wyke
d74d1c9655 [jOOQ#13008] Unquote keyword when mapping one to many relation 2022-02-07 16:32:13 +01:00
Lukas Eder
0c4d021614 [jOOQ/jOOQ#12992] Add additional check if any indexes are present 2022-02-07 10:09:38 +01:00
Per Lundberg
287daba8bb [jOOQ/jOOQ#12992] Automatically enable tables if indexes are enabled 2022-02-04 15:00:09 +02:00
Lukas Eder
8349672e57 [jOOQ/jOOQ#12951] Don't connect to JDBC without a configured URL 2022-01-27 14:42:25 +01:00
Lukas Eder
a18294daf4 [jOOQ/jOOQ#12951] GenerationTool should handle HSQLDB driver returning
null Connection on Driver::connect
2022-01-26 10:16:20 +01:00
Lukas Eder
bb5f6d1dab [jOOQ/jOOQ#7284] Upgraded to jooq-runtime-3.17.0.xsd 2022-01-10 16:09:58 +01:00
Lukas Eder
618a15f235 Release 3.17.0-SNAPSHOT 2022-01-04 16:34:34 +01:00
Lukas Eder
2b54cf7f1c [jOOQ/jOOQ#12759] Additional SQL statements after JDBC connection 2022-01-03 16:34:46 +01:00
Lukas Eder
0a5ecc33bf [jOOQ/jOOQ#12776] Compilation errors in generated code when enabling <pojosAsJavaRecordClasses> and <embeddables> 2022-01-03 09:15:55 +01:00
Lukas Eder
35a4d4936b [jOOQ/jOOQ#12407] It's called YugabyteDB, not Yugabyte 2021-12-31 10:48:20 +01:00
Lukas Eder
b88999c372 [jOOQ/jOOQ#10866] Generator produces an invalid enum with an underscore _ as the name 2021-12-10 14:57:57 +01:00
Lukas Eder
9e940cccc6 [jOOQ/jOOQ#6492] Added support for XML based meta data, and GenerationOption 2021-12-04 16:50:14 +01:00
Lukas Eder
1248fc494c [jOOQ/jOOQ#9641] Migrate bean validation 2021-12-03 08:55:38 +01:00
Lukas Eder
6a96121bff [jOOQ/jOOQ#9641] Migrate JPA 2021-12-02 21:40:49 +01:00
Lukas Eder
d52d2252f6 [jOOQ/jOOQ#9641] Migrate JAXB from javax.xml.bind to jakarta.xml.bind 2021-12-02 18:19:54 +01:00
Lukas Eder
814bb5b142 [jOOQ/jOOQ#9609] Add SQLDialect.H2_2_0_202 2021-12-02 15:15:29 +01:00
Lukas Eder
b6afa6862e [jOOQ/jOOQ#6492] [jOOQ/jOOQ#12664] Support STORED and VIRTUAL flags
Also, add support for SQL Server computed columns
2021-11-30 12:06:06 +01:00
Lukas Eder
aa43d13c21 [jOOQ/jOOQ#12663] Add EnumType.<E extends
EnumType>lookupLiteral(Class<E>, String) and generate
E.lookupLiteral(String) methods
2021-11-25 13:21:02 +01:00
Lukas Eder
08be0478da [jOOQ/jOOQ#6492] Add support for computed columns
- Add DataType<T>.generatedAlwaysAs(Field<T>)
- Add code generation support for:
  - H2
  - PostgreSQL
- Added parser support
- Added code generation tests
- Added DDL support
2021-11-23 16:45:28 +01:00
Lukas Eder
5a99d6da22 [jOOQ/jOOQ#12633] Move XSDs from jOOQ and jOOQ-meta to subpackages to
avoid split xsd packages
2021-11-17 15:48:27 +01:00
Lukas Eder
2c9295af0a [jOOQ/jOOQ#12630] The JavaGEnerator.printDeprecationIfUnknownType should
hint at a UDT being in a different schema
2021-11-16 11:14:24 +01:00
Lukas Eder
2a8e30b6a6 [jOOQ/jOOQ#10881] Scala's enums are Java classes 2021-11-10 12:16:43 +01:00
Lukas Eder
a280058080 [jOOQ/jOOQ#10881] Enum literals should be defined by generator strategies 2021-11-10 11:52:32 +01:00
Lukas Eder
15581a9958 [jOOQ/jOOQ#8431] Add support for PostgreSQL 11 procedures 2021-11-09 17:15:20 +01:00
Lukas Eder
f2a7dfd881 [jOOQ/jOOQ#12611] SQLDataType.null generated when using XMLDatabase with
lower case array type
2021-11-09 09:14:24 +01:00
Lukas Eder
2aa166f846 [jOOQ/jOOQ#9864] Generate additional record constructor
It is useful to have an additional record constructor that does not include the readonly columns. Further improvements to code generation might follow.
2021-11-08 11:04:39 +01:00
Lukas Eder
15b52ffafb [jOOQ/jOOQ#12601] Produce compilation error if code generator version
doesn't match runtime version
2021-11-04 14:01:49 +01:00
Lukas Eder
e06f06edb7 [jOOQ/jOOQ#9864] Added READONLY support in InformationSchema 2021-11-04 10:51:34 +01:00
Lukas Eder
2766eeb4b5 [jOOQ/jOOQ#12601] Produce compilation error if code generator version
doesn't match runtime version
2021-11-04 10:33:56 +01:00
Lukas Eder
15004cdc1d Updated Constants.XSD_CODEGEN 2021-11-02 16:42:35 +01:00
Lukas Eder
284d1d095b [jOOQ/jOOQ#9864] Implement <readonlyIdentities/> 2021-11-02 15:01:32 +01:00
Lukas Eder
eb126b2ee0 [jOOQ/jOOQ#8388] Generate Table.rowid() overrides, implement KotlinGenerator and ScalaGenerator, improved configuration 2021-11-02 14:17:48 +01:00
Lukas Eder
e1d3a45206 [jOOQ/jOOQ#12585] Use INFO level instead of WARNING level for routines with more than 254 parameters 2021-11-02 11:52:06 +01:00
Lukas Eder
b7154e57b9 [jOOQ/jOOQ#8388] Add code generation option to generate a synthetic, readonly ROWID column (WIP) 2021-11-02 11:50:48 +01:00
Lukas Eder
27d911dede [jOOQ/jOOQ#12583] Generate DAO.fetchOptionalBy[Column] methods 2021-11-01 13:58:31 +01:00
Lukas Eder
9de6ba83de [jOOQ/jOOQ#9864] Add support for readonly columns
- Added synthetic readonly column codegen config
- Added code generation logic
- Added DataTypeDefinition.readonly()
- Added DataType.readonly()
2021-10-29 16:24:01 +02:00
Lukas Eder
942697a219 Log jOOQ logo earlier in code generator 2021-10-29 13:25:07 +02:00
Lukas Eder
c6d89c78e0 [jOOQ/jOOQ#10149] Duh exports, not opens! 2021-10-21 16:27:05 +02:00
Lukas Eder
a9d8e9e67d [jOOQ/jOOQ#10149] Modularise more modules
- jOOQ-codegen (add opens)
- jOOQ-postgres-extensions (add opens)
2021-10-15 09:58:23 +02:00
Lukas Eder
8c15e0c97f [jOOQ/jOOQ#10149] Modularise more modules
- jOOQ-codegen
- jOOQ-meta
- jOOQ-postgres-extensions
2021-10-15 09:55:21 +02:00
Lukas Eder
bd83f2bbc3 [jOOQ/jOOQ#12488] Add Maven groupId info to Constants 2021-10-07 15:14:45 +02:00
Lukas Eder
6f329c16f7 [jOOQ/jOOQ#12488] More robust version check (e.g. NoClassDefFoundError) 2021-10-07 15:06:53 +02:00
Lukas Eder
74005c452d [jOOQ/jOOQ#12488] Log warning in code generator when wrong runtime
version is used
2021-10-07 15:03:44 +02:00
Lukas Eder
6ecb5b5cd8 [jOOQ/jOOQ#12457] Generate some Javadoc on implicit join path navigation methods 2021-09-29 14:03:56 +02:00
Lukas Eder
7b689b0a98 [jOOQ/jOOQ#12459] KotlinGenerator setter return type must be Unit also for records 2021-09-21 14:06:33 +02:00
Lukas Eder
84b01f3398 [jOOQ/jOOQ#12440] Compilation error in KotlinGenerator generated code
when @set:JvmName is applied to overriding property
2021-09-17 10:04:35 +02:00
Octavia Togami
1dbbcaa7ef
Fix generating multi-key DAOs with Java records
The single-key case was correctly mapped for this, but not the multi-key
case.
2021-09-16 18:17:30 -07:00
Lukas Eder
c04bac5d21 [jOOQ/jOOQ#12407] Add a SQLDialect.YUGABYTE dialect (WIP) 2021-09-09 09:43:07 +02:00
Lukas Eder
0d7eb1748f [jOOQ/jOOQ#12405] CLI programs should set java.util.loggin.SimpleFormatter.format if not already set 2021-09-07 15:00:02 +02:00
Lukas Eder
6149f674d3 [jOOQ/jOOQ#5620] OSS edition fix 2021-07-26 13:44:51 +02:00
Lukas Eder
280043cdad [jOOQ/jOOQ#5620] Add support for PL/SQL associative array types
- New AssociativeArrayRecord API
- Code generation support
- Support for OUT parameters
- [jOOQ/jOOQ#12251] Read DBMS_SQL.XYZ_TABLE as ARRAY not CURSOR
- Re-generated test code
- Updated integration tests
2021-07-23 15:44:10 +02:00
Lukas Eder
2b298c27c0 [jOOQ/jOOQ#12238] Deprecate Internal.fieldsRow(TableField) 2021-07-21 15:46:33 +02:00