Commit Graph

99 Commits

Author SHA1 Message Date
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
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
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
da2aa57f11 [jOOQ/jOOQ#2968] Added daterange support 2022-03-01 17:34:03 +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
b8f1d35876 [jOOQ/jOOQ#13069] Generate convenience methods for common MULTISET and ROW nestings 2022-02-15 16:41:25 +01: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
2b54cf7f1c [jOOQ/jOOQ#12759] Additional SQL statements after JDBC connection 2022-01-03 16:34:46 +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
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
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
942697a219 Log jOOQ logo earlier in code generator 2021-10-29 13:25:07 +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
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
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
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
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
562095f27e [jOOQ/jOOQ#11194] Add code generation configuration for Javadoc line
wrapping
2021-01-06 11:32:04 +01:00
Lukas Eder
2186758e91 [jOOQ/jOOQ#9728] Log unused warning 2021-01-05 16:34:30 +01:00
Lukas Eder
1f9f3dc269 [jOOQ/jOOQ#9728] Add <comments/> configuration to allow for generating
custom Javadoc on generated code

This includes:

- [jOOQ/jOOQ#11189] Improve generated Javadoc formatting
2021-01-05 16:26:59 +01:00
Lukas Eder
98048c8b69 [jOOQ/jOOQ#11180] Clarify unused logger warning message about what is
obsolete
2021-01-04 13:21:57 +01:00
Lukas Eder
5a933882e8 [jOOQ/jOOQ#11176] Add <includeSystemTables/> to exclude SQLite virtual table implementation tables from code generation 2021-01-04 10:28:15 +01:00
Lukas Eder
ddae3adfca [jOOQ/jOOQ#11105] NullPointerException when GenerationTool is not properly initialised 2020-12-08 15:19:03 +01:00
Lukas Eder
c254373003 [jOOQ/jOOQ#11101] Misleading error message when something goes wrong in the code generator 2020-12-08 09:13:48 +01:00
Lukas Eder
b5a6ef98c6 [jOOQ/jOOQ#11054] WIP 2020-12-01 16:06:12 +01:00
Lukas Eder
c4d3644872 [jOOQ/jOOQ#10998] Add <enumsAsScalaSealedTraits/> to let ScalaGenerator
generate Java enums or Dotty enums
2020-11-20 13:50:06 +01:00
Lukas Eder
b5f80d0b0f [jOOQ/jOOQ#10851] Add <visibilityModifier/> to allow for generating explicit / implicit public visibility, as well as internal in KotlinGenerator 2020-11-12 16:39:59 +01:00
Lukas Eder
6d0c56e422 [jOOQ/jOOQ#10899] Add <includeSystemSequences/> to code generator configuration 2020-11-09 16:39:14 +01:00
Lukas Eder
44f13d4b4b [jOOQ/jOOQ#6124] [jOOQ/jOOQ#10511] Use regexes instead of booleans
embeddable keys and domains configurations should not just be boolean flags turning the feature on and off, but regular expressions matching specific objects, as always. This way, the feature can be turned on e.g. only for 1 schema, or for some tables, etc.
2020-10-08 14:40:24 +02:00
Lukas Eder
81e3d91e80 [jOOQ/jOOQ#10653] Make the JavaGenerator::INITIALISER_SIZE configurable through <maxMembersPerInitialiser/> 2020-09-25 16:17:25 +02:00
Lukas Eder
f541eda04d [jOOQ/jOOQ#10654 Make the generation of the serialVersionUID configurable 2020-09-25 15:50:27 +02:00
Lukas Eder
df5f0cdd14 [jOOQ/jOOQ#10632] [jOOQ/jOOQ#10633]
- Log all column and parameter types in DEBUG level in JavaGenerator
- Add DataTypeDefinition.getMatchNames()
2020-09-15 16:19:24 +02:00
Lukas Eder
4ea1ab465f [jOOQ/jOOQ#10588] Apply synthetic keys to jOOQ-meta, use implicit joins (WIP) 2020-09-04 17:51:20 +02:00
Lukas Eder
3616cc43c7 [jOOQ/jOOQ#10588] Rename <syntheticKeys/> to <syntheticObjects/> 2020-09-04 11:29:22 +02:00
Lukas Eder
d5365531c9 [jOOQ/jOOQ#10588] Deprecate <overridePrimaryKeys/> 2020-09-04 09:31:19 +02:00
Lukas Eder
69fe7b2728 [jOOQ/jOOQ#10587] NullPointerException when misconfiguring code generator, lacking a <database/> 2020-09-03 16:56:21 +02:00
Lukas Eder
fe96278656 [jOOQ/jOOQ#8353] Support placing comments on embeddables 2020-08-21 17:13:48 +02:00
Lukas Eder
564b71b06b [jOOQ/jOOQ#9744] Java 6 fix 2020-08-21 15:14:33 +02:00
Lukas Eder
e58593e690 [jOOQ/jOOQ#9744] Add <locale/> to code generator <target/> specification 2020-08-21 14:32:35 +02:00
Lukas Eder
bb16438f07 [jOOQ/jOOQ#10511] Add <embeddableDomains/> to allow for wrapping all
DOMAIN types in embeddables
2020-08-20 15:38:48 +02:00
Lukas Eder
5ec18c6b08 [jOOQ/jOOQ#8353] Add matcher strategy support for embeddables 2020-08-19 12:29:16 +02:00
Lukas Eder
14c2fac8f0 [jOOQ/jOOQ#8353] Log warning when there are unused embeddables 2020-08-19 10:44:07 +02:00
Lukas Eder
29bce7c908 [jOOQ/jOOQ#2530] [jOOQ/jOOQ#6124] [jOOQ/jOOQ#10481] Improved embeddable support and added code generation support for embeddable keys 2020-08-12 17:11:36 +02:00