Commit Graph

127 Commits

Author SHA1 Message Date
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
b8f2dc5b17 [jOOQ/jOOQ#13632] DDLDatabase should have a sql property, as an alternative to scripts 2022-06-02 12:53:47 +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
91a4e86125 [jOOQ/jOOQ#13542] Replace SPI default implementation class (e.g.
DefaultExecuteListener) by default methods in interface
2022-05-10 10:20:08 +02:00
Lukas Eder
be001af097 [jOOQ/jOOQ#12533] Move more Internal annotation usage to JetBrains 2022-02-15 09:07:27 +01:00
Lukas Eder
2393afc7f2 [jOOQ/jOOQ#12772] Various improvements
- [jOOQ/jOOQ#12779] Add support for MySQL COMMENT syntax in DDLDatabase
- [jOOQ/jOOQ#12772] Added QOM.CreateTable
- [jOOQ/jOOQ#13004] Add a TableElement type, a super type of Field<?> | Constraint | Index
- [jOOQ/jOOQ#13005] Deprecate FieldOrConstraint
2022-02-07 21:10:40 +01:00
Lukas Eder
618a15f235 Release 3.17.0-SNAPSHOT 2022-01-04 16:34:34 +01:00
Lukas Eder
6281e94c70 [jOOQ/jOOQ#9931] Add a new DSL.systemName type
This also fixes: [jOOQ/jOOQ#12752] DDLDatabase defaultNameCase property shouldn't affect built in functions in view definitions
2021-12-17 10:07:46 +01:00
Lukas Eder
c67e718892 Release 3.16.0-SNAPSHOT 2021-07-05 17:30:40 +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
7cff2cae7e Release 3.15.0-SNAPSHOT 2020-10-20 10:20:20 +02:00
Lukas Eder
9707e1ebd3 [jOOQ/jOOQ#10331] Split jOOQ-meta-extensions into jOOQ-meta-extensions-hibernate and jOOQ-meta-extensions-liquibase
This fixes [jOOQ/jOOQ#10268] Unrelated Liquibase error when using jooq-meta-extensions with Spring Boot
2020-06-30 12:50:29 +02:00
Lukas Eder
aa885722c3 [jOOQ/jOOQ#10008] Add a configuration flag to DDLDatabase to specify whether queries should be logged 2020-03-30 14:53:03 +02:00
Lukas Eder
1c9f7f5a66 [jOOQ/jOOQ#9866] Liquibase imports should use ClassLoaderResourceAccessor 2020-02-25 12:49:50 +01:00
Lukas Eder
db1d75b288
Merge pull request #9875 from Fadelis/feature/liquibase-changelog-table-names
[#9873] LiquibaseDatabase should use actual changeLog table names
2020-02-25 11:27:42 +01:00
Lukas Eder
b393fdd738 [jOOQ/jOOQ#9872] Minor improvement 2020-02-25 11:17:46 +01:00
Lukas Eder
2d0409df23 [jOOQ/jOOQ#9872] LiquibaseDatabase should use configured changeLogParameters.contexts when updating 2020-02-25 11:16:10 +01:00
Fadelis
fbdc70e0a0 [#9873] LiquibaseDatabase use correct changeLog table names as they might be overridden 2020-02-25 10:58:02 +01:00
Fadelis
fdb4bbd79d [#9872] LiquibaseDatabase should use provided contexts on update 2020-02-25 10:57:36 +01:00
Lukas Eder
330dac76de Release 3.14.0-SNAPSHOT 2020-02-12 11:29:19 +01:00
Lukas Eder
cff813a73e [jOOQ/jOOQ#9727] Add configuration/basedir to resolve relative paths in
code generator
2020-01-14 15:41:37 +01:00
Lukas Eder
025fc98685 [jOOQ/jOOQ#9725] Move org.jooq.meta.tools.FilePattern API to core library 2020-01-14 14:35:13 +01:00
Lukas Eder
de72c3192b [jOOQ/jOOQ#8528] Cosmetic fix for error message 2019-12-12 17:36:50 +01:00
Knut Wannheden
1dc26e84b6 [jOOQ/jOOQ#9514] Make LiquibaseDatabase Java 6 compatible 2019-11-21 09:34:13 +01:00
Lukas Eder
96872f256e [jOOQ/jOOQ#9514] LiquibaseDatabase should allow for passing parameters to the Liquibase 2019-11-19 16:32:02 +01:00
Lukas Eder
324614fd3a [jOOQ/jOOQ#9567] Cosmetic exceptions caused by JPADatabase when using attribute converters 2019-11-19 13:00:08 +01:00
Lukas Eder
3f4ffd72e6 [jOOQ/jOOQ#9470] FilePatter.Loader should accept Source, instead of InputStream 2019-10-30 15:30:23 +01:00
Lukas Eder
ccebd30c3e [jOOQ/jOOQ#9359] Refactor common meta extensions code to new InterpretingDatabase 2019-10-14 10:34:27 +02:00
Lukas Eder
ab7cda47e2 [jOOQ/jOOQ#2286] Add LiquibaseDatabase to support interpreting the liquibase XML format in the code generator 2019-10-14 09:54:13 +02:00
Lukas Eder
b2fa9936b8 [jOOQ/jOOQ#9277] Improve error message when AttributeConverters cannot be loaded due to NoClassDefFoundError 2019-09-26 10:15:39 +02:00
Lukas Eder
b238b1e0e5 [jOOQ/jOOQ#9274] AttributeConverterExtractor should receive custom Hibernate configuration properties 2019-09-26 10:03:39 +02:00
Lukas Eder
babd9cee27 [jOOQ/jOOQ#9141] DDLDatabase should output query results to log output 2019-09-03 12:56:42 +02:00
Lukas Eder
4bad893e6a [jOOQ/jOOQ#9138] Parser errors from DDLDatabase should hint at jOOQ's parser ignore comment syntax 2019-09-03 12:15:57 +02:00
Knut Wannheden
d27dbf4117 Preparing master for 3.13 release cycle 2019-08-29 16:12:59 +02:00
Knut Wannheden
d2cb5570b2 [jOOQ/jOOQ#8986] Consistent naming of "org.jooq.ddl" context data keys
Make sure all key references use a consistent "org.jooq.ddl" prefix.
2019-08-27 21:12:17 +02:00
Knut Wannheden
147345304b [jOOQ/jOOQ#8986] New DSLContext#meta(Source...) API
Adds a new internal `DSLContext#meta(Source...)` API which can be used to construct a `Meta` object for a list of DDL scripts (similarly to the existing `DDLDatabase`), but for other use cases such as the `Parser`.

This new method uses the new internal `Source` abstraction to represent a DDL script, which can be constructed using any of the existing static `of()` factory methods or optionally by a custom implementation class.
2019-08-27 21:11:30 +02:00
Knut Wannheden
8ec0f771a7 [jOOQ/jOOQ#9015] Add support for unqualifiedSchema in JPADatabase to
prevent generating the H2 PUBLIC schema
2019-08-20 09:43:44 +02:00
Lukas Eder
796c8260c1 [jOOQ/jOOQ#9058] Undocument use-attribute-converters in favour of useAttributeConverters 2019-08-19 11:21:29 +02:00
Knut Wannheden
2202e4f21a [jOOQ/jOOQ#7545] Use ForcedType#withIncludeExpression() in JPADatabase
Using the legacy ForcedType#withExpression() results in a logged
warning.
2019-08-16 14:04:57 +02:00
Lukas Eder
0f5b8799b9 [jOOQ/jOOQ#9048] Delete module-info.java.invalid files 2019-08-16 14:02:45 +02:00
Knut Wannheden
a4a7f0bfeb [jOOQ/jOOQ#8986] Fix regression in DDLDatabase
The "defaultNameCase" -> RenderNameCase mapping in DDLDatabase was
incorrect and caused problems.

Also explicitly declares a local variable as `final` for Java 6
compatibility.
2019-08-06 12:01:11 +02:00
Knut Wannheden
dc7ce900e9 [jOOQ/jOOQ#8986] Extracted DDLDatabaseInitializer
Extracted new class DDLDatabaseInitializer from DDLDatabase. This new
class is in package `org.jooq.extensions.ddl` of Maven module
`jOOQ-extensions`.

As a consequence also renamed the configuration data keys
"org.jooq.meta.extensions.ddl.ignore-storage-clauses" and
"org.jooq.meta.extensions.ddl.parse-for-ddldatabase" to
"org.jooq.extensions.ddl.ignore-storage-clauses" and
"org.jooq.extensions.ddl.parse-for-ddldatabase" respectively.
2019-08-06 11:05:11 +02:00
Lukas Eder
854375dbcf [jOOQ/jOOQ#7789] Revert change
The jOOQ 3.12 Open Source Edition will continue to support Java 8. The only things we gain from the JDK 11 dependency is:

- Updated logic for reflection when mapping into proxied default methods (that stuff has changed completely in JDK 9). This is a regression, which we can live with. The workaround is to write a custom
- Explicit dependency on the JDK 9  API, for which we provide a Java 8 compatible alternative via reactive streams anyway.
- JDBC 4.3 compatibility (mostly sharding). We currently don't use that yet.

We're not even using  internally, outside of a few integration tests. So, we'll postpone the JDK 11 *requirement* (while supporting it nonetheless) to a later release, e.g. 3.13. We'll observe market share shifts. Currently Java 11's market share is a bit of a disappointment, so making it a requirement might be premature.
2019-07-26 15:18:18 +02:00
Lukas Eder
cacc3e5a7c [jOOQ/jOOQ#8932] Use diamond operator in jOOQ code 2019-07-11 11:55:51 +02:00
Lukas Eder
57e1ac0c99 [jOOQ/jOOQ#8910] Parse pg_catalog.set_config('search_path') as SET SCHEMA in DDLDatabase 2019-07-08 12:13:43 +02:00
Lukas Eder
314d6fc522 [jOOQ/jOOQ#8678] Enable Settings.parseUnknownFunctions in DDLDatabase 2019-07-08 11:38:41 +02:00
Knut Wannheden
f8a6dfacf1 [jOOQ/jOOQ#8900] Make jOOQ compatible with Java 6
- Mostly surround pieces of code with [java-8] preprocessor tags
- Added ExceptionTools#sneakyThrow() which is used in MiniJAXB
2019-07-04 16:26:21 +02:00
Lukas Eder
fce9626b13 [jOOQ/jOOQ#8615] Missing NOTICE file from commons-lang 2019-05-21 12:23:17 +02:00
Lukas Eder
b62b8bf0a2 [#6709] Support custom Hibernate properties in JPADatabase 2019-05-20 12:48:04 +02:00