Commit Graph

1015 Commits

Author SHA1 Message Date
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
Lukas Eder
bc80a8089b [jOOQ/jOOQ#12216] Remove references to javax.annotation.Generated from
jooq-codegen Javadoc
2021-07-17 15:32:33 +02:00
Lukas Eder
888b1cf143 [jOOQ/jOOQ#12148] Setter return type must be Unit & '@set:' annotations could be applied only to mutable properties 2021-07-12 10:04:24 +02:00
Lukas Eder
53e49ff76f [jOOQ/jOOQ#12118] Fix this also in ScalaGenerator 2021-07-09 10:34:40 +02:00
Lukas Eder
f14fdafef8 [jOOQ/jOOQ#12118] Regression in SQLite code generation for unnamed composite pkeys on JDK 9+ with the jOOQ Open Source Edition 2021-07-09 10:06:50 +02:00
Lukas Eder
c67e718892 Release 3.16.0-SNAPSHOT 2021-07-05 17:30:40 +02:00
Lukas Eder
e946c6f09a [jOOQ/jOOQ#12093] Add <includeExcludePackageRoutines/> to let code generator <includes/> and <excludes/> match package procedures and functions 2021-07-01 16:13:51 +02:00
Lukas Eder
91e5d938ff [jOOQ/jOOQ#11912] More general and configurable fix 2021-06-10 15:49:01 +02:00
Lukas Eder
67639e1076 [jOOQ/jOOQ#11912] KotlinGenerator generates invalid code when column names X and isX clash 2021-05-26 11:06:30 +02:00
Lukas Eder
c52b01f8c5 [jOOQ/jOOQ#2620] BigQuery support (WIP)
- Generate correct view sources
- Query INFORMATION_SCHEMA.TABLES and COLUMNS directly
- Add array type support in code generator
- Re-generated code
- Updated code generation configuration
2021-05-24 12:29:55 +02:00
Lukas Eder
64e113261a [jOOQ/jOOQ#10287] Fix <interfaces/> 2021-04-29 16:55:01 +02:00
Lukas Eder
8526e62635 [jOOQ/jOOQ#10287] Fix record getter access in DAO.getId() 2021-04-29 16:31:14 +02:00
Lukas Eder
69c5bd66f1 [jOOQ/jOOQ#11801] Move Tools content to the top level 2021-04-26 08:56:56 +02:00
Lukas Eder
fcc258bfe8 [jOOQ/jOOQ#11787] Add an <includeSystemUDTs/> flag to turn on/off the
generation of system UDTs
2021-04-21 11:35:25 +02:00
Lukas Eder
48e6c35561 [jOOQ/jOOQ#7863] Link Oracle %ROWTYPE references to their corresponding
table types
2021-04-20 17:31:20 +02:00
Lukas Eder
985b3e3e93 [jOOQ/jOOQ#11729] Put text block emulations in parens 2021-04-20 12:10:01 +02:00
Lukas Eder
e694f3de92 [jOOQ/jOOQ#10287] Don't generate copy constructor on records 2021-04-20 10:39:18 +02:00
Lukas Eder
17dfdbb57c [jOOQ/jOOQ#10287] Add <pojosAsJavaRecordClasses/> to allow for generating Java POJOs as JDK records instead 2021-04-19 21:12:13 +02:00
Lukas Eder
1923468386 [jOOQ/jOOQ#11729] Use text blocks in tests 2021-04-16 20:56:08 +02:00
Lukas Eder
4746bc2311 [jOOQ/jOOQ#11183] Handle POJO nullability in constructors 2021-04-15 10:51:46 +02:00
Lukas Eder
b0c4723326 [jOOQ/jOOQ#11774] Add a <priority/> to <forcedType/> 2021-04-14 16:56:28 +02:00
Lukas Eder
c2f8428511 [jOOQ/jOOQ#11183] kotlin and scala fixes 2021-04-14 14:49:33 +02:00
Lukas Eder
04283e90df [jOOQ/jOOQ#11183] Fix UDT code generation 2021-04-14 13:06:17 +02:00
Lukas Eder
fc07885dfe [jOOQ/jOOQ#11625] GeneratorStrategy references package-private AbstractGenerator.Language class 2021-03-12 13:06:21 +01:00
Lukas Eder
ac4458a86e [jOOQ/jOOQ#1985] Add EXASOL support (WIP) 2021-03-09 13:46:21 +01:00
Lukas Eder
fd756190b1 [jOOQ/jOOQ#11495] Remove pre 3.5 deprecated API 2021-02-22 16:05:56 +01:00
Lukas Eder
1c11fe7d6f [jOOQ/jOOQ#11286] Use org.jooq.Meta to discover SQLite primary key,
unique key, and foreign key names in code generator
2021-01-22 19:20:40 +01:00
Lukas Eder
c06bcfeec4 [jOOQ/jOOQ#11286] Use org.jooq.Meta to discover SQLite primary key, unique key, and foreign key names in code generator 2021-01-22 17:34:28 +01:00
Lukas Eder
d7810d9d59 [jOOQ/jOOQ#11259] NullPointerException when using table valued function
without explicit parameters
2021-01-20 12:37:22 +01:00
Lukas Eder
619bb92702 [jOOQ/jOOQ#11194] Fixed formatting regression 2021-01-14 17:38:38 +01:00
Lukas Eder
a1b08de279 [jOOQ/jOOQ#11218] KotlinGenerator generates Record[N]<T1, T2, ..., TN>
for PK types in DAOs, instead of Record[N]<T1?, T2?, ..., TN?>
2021-01-13 09:37:32 +01:00
Lukas Eder
54938152a9 [jOOQ/jOOQ#11196] Drop support for Java 6 and 7
- More IntelliJ inspections fixed
2021-01-08 21:28:04 +01:00
Lukas Eder
918f91b028 [jOOQ/jOOQ#11196] Drop support for Java 6 and 7
Runtime library - language usage

- Removed [java-8] tags
- Removed F functional interfaces
- Removed Meta.Predicate functional interfaces
- Converted anonymous classes to lambdas
- Removed some explicit final keywords where effectively final works
- Removed Java 6 Jenkinsfile
- try-with-resources
- Merged some catch blocks
- Get rid of type witnesses where possible

Runtime library - JDK API usage

- Prefer Collection.sort() over Collections.sort()
- Use Map.computeIfAbsent for Map<K, List<V>> lazy initialisation
- Replace Iterator::remove calls by Collection::removeIf
- Use Map::computeIfAbsent for Map<K, List<V>> lazy initialisation
- Replace Iterator::remove calls by Collection::removeIf
- Use Comparator::comparing and Comparator::thenComparing
- Use Stream API where not performance critical
- Replaced Map::entrySet iterations by Map::forEach
- Use ResultQuery::collect
- Map::putIfAbsent

Code generation

- Generate lambda for LazySchema's LazySupplier

Unrelated

- Applied a few IntelliJ inspections
- Remove unnecessary explicit array creation
2021-01-08 12:35:47 +01:00
Lukas Eder
b169a60490 [jOOQ/jOOQ#11194] Fixed edge cases 2021-01-06 12:48:45 +01:00