Commit Graph

1233 Commits

Author SHA1 Message Date
Lukas Eder
2b77563721 [jOOQ/jOOQ#15686] Generated DEFAULT expressions should always be
syntactically valid for all data types in HANA
2023-10-05 15:35:49 +02:00
Lukas Eder
e17ad6d31b [jOOQ/jOOQ#13301] Allow kotlin pojos to not have defaulted constructor parameters 2023-10-04 14:32:47 +02:00
Lukas Eder
af4324acbe [jOOQ/jOOQ#15619] On JDK 21, generated code should apply "this-escape" warning suppression 2023-09-28 14:37:17 +02:00
Lukas Eder
41505e01db [jOOQ/jOOQ#15621] Synthetic comment flag <deprecated> should produce
@Deprecated annotation in addition to Javadoc
2023-09-20 11:41:19 +02:00
Lukas Eder
e6391079f6 [jOOQ/jOOQ#9483] Add support for { CREATE | DROP } MATERIALIZED VIEW
This includes:

- [jOOQ/jOOQ#15593] Add support for and emulate CREATE OR REPLACE MATERIALIZED VIEW and other objects
- Interpreter support
- InformationSchemaExport support
- InformationSchema support
2023-09-15 13:33:42 +02:00
Lukas Eder
cc452c2c45 [jOOQ/jOOQ#15583] UDTImpl should use Name instead of String in
constructor
2023-09-13 10:22:23 +02:00
Lukas Eder
0d70664474 [jOOQ/jOOQ#15554] JavaWriter should have a Mode reference 2023-09-07 13:21:38 +02:00
Lukas Eder
e1adf258a1 [jOOQ/jOOQ#5210] Fix compilation error in generated code
Package UDTs generated wrong UDTNames objects, see [jOOQ/jOOQ#10576]
2023-08-31 11:05:11 +02:00
Lukas Eder
edb132c0d9 [jOOQ/jOOQ#5210] Add code generation option to generate string constants for all object names 2023-08-30 17:17:27 +02:00
Lukas Eder
7293b60b07 [jOOQ/jOOQ#228] Fix regression 2023-08-28 16:59:01 +02:00
Lukas Eder
e448d58094 [jOOQ/jOOQ#228] Fix regression 2023-08-28 16:57:38 +02:00
Lukas Eder
01a92864b6 [jOOQ/jOOQ#228] Added KotlinGenerator support 2023-08-28 16:45:55 +02:00
Lukas Eder
896d995476 [jOOQ/jOOQ#228] Added ScalaGenerator support
This includes:

- Refactor Internal methods, remove unnecessary type variables
2023-08-28 11:37:17 +02:00
Lukas Eder
5ee497713d [jOOQ/jOOQ#228] Use kotlin accessor syntax 2023-08-28 09:00:11 +02:00
Lukas Eder
6423be339d [jOOQ/jOOQ#3751] Support UDT object names in MatcherStrategy 2023-08-25 16:44:07 +02:00
Lukas Eder
a37747e297 [jOOQ/jOOQ#228] Skip UDT paths for Scala and Kotlin for now 2023-08-25 15:27:42 +02:00
Lukas Eder
c466d68a85 [jOOQ/jOOQ#228] Enhance API to provide access to UDT members - WIP 2023-08-25 11:32:29 +02:00
Lukas Eder
227020b363 [jOOQ/jOOQ#15213] Support ad-hoc compilation of programmatic Generator or Database objects in the code generator 2023-08-23 12:21:50 +02:00
Lukas Eder
0ddc30aab8 [jOOQ/jOOQ#15487] Turn off <recordsImplementingRecordN/> by default 2023-08-22 14:53:23 +02:00
Lukas Eder
86d50133ec [jOOQ/jOOQ#6182] Support renaming Keys and Indexes with matcher strategy 2023-08-16 14:45:37 +02:00
Lukas Eder
65556fe9b6 [jOOQ/jOOQ#6182] Support renaming Keys with matcher strategy 2023-08-16 14:14:08 +02:00
Lukas Eder
7777e5b46a [jOOQ/jOOQ#15464] Support also pathExtends and pathImplements 2023-08-14 15:03:02 +02:00
Lukas Eder
7b55ae620e [jOOQ/jOOQ#15464] Add matcher strategy to name path Table subclasses 2023-08-14 14:49:34 +02:00
Lukas Eder
72f1a1ebcf [jOOQ/jOOQ#15005] Allow for overriding TablePath generated class names in GeneratorStrategy::getClassName with a new Mode.PATH 2023-08-14 11:26:09 +02:00
Lukas Eder
679b0c7f63 [jOOQ/jOOQ#11248] Scala code generation support 2023-07-11 16:54:07 +02:00
Lukas Eder
1fddd1adee [jOOQ/jOOQ#11248] Kotlin code generation support 2023-07-11 16:40:36 +02:00
Lukas Eder
e13188fcf1 [jOOQ/jOOQ#11248] More Trigger meta model implementation
- Added Meta::getTriggers and ::filterTriggers with impls in:
  - InformationSchemaMetaImpl
  - AbstractMeta
  - CatalogMetaImpl
  - FilteredMeta
- Added XMLDatabase and XMLGenerator implementations
2023-07-11 14:46:42 +02:00
Lukas Eder
998c0148be [jOOQ/jOOQ#15383] Compilation error in generated code when global object 2023-07-11 13:00:17 +02:00
Lukas Eder
2178a3cb8f [jOOQ/jOOQ#15375] Table with 255 columns generates record and POJO
objects whose constructors have too many parameters
2023-07-10 12:00:59 +02:00
Lukas Eder
16f0d2d82f [#11248] Add Trigger runtime meta model - WIP 2023-07-04 11:23:25 +02:00
Lukas Eder
808998f552 [jOOQ/jOOQ#14429] Builds should log their build date with the logo
Also, no strings attached. There's no moral reason to keep the logo if users are using the free version...
2023-06-29 15:09:24 +02:00
Lukas Eder
ba97ea4596 [jOOQ/jOOQ#15281] Fix regressions in the KotlinGenerator 2023-06-28 15:34:56 +02:00
Lukas Eder
adfb76f689 [jOOQ/jOOQ#15281] Fix regressions 2023-06-27 13:11:20 +02:00
Lukas Eder
7b8c8d7a2c [jOOQ/jOOQ#15281] [jOOQ/jOOQ#10561] Declare ref conflicts for UDTs 2023-06-26 13:40:52 +02:00
Lukas Eder
b702548040 [jOOQ/jOOQ#15281] Generated code should import user defined types in data type definitions 2023-06-26 11:49:57 +02:00
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