Commit Graph

344 Commits

Author SHA1 Message Date
Lukas Eder
54e8a53628 [jOOQ/jOOQ#9732] Change default value of <generatedAnnotation/> to
"false"
2020-01-15 13:57:20 +01:00
Knut Wannheden
2778b20375 [jOOQ/jOOQ#9719] Support MySQL's single argument ISNULL() in parser 2020-01-09 12:39:19 +01:00
Knut Wannheden
aa35783e55 [jOOQ/jOOQ#9598] Fix race condition caused by Tools#PARSER
Since this package private field `Tools#PARSER` isn't used anywhere, it
can just be deleted.
2020-01-09 08:22:08 +01:00
Knut Wannheden
922b62b444 Cleanup: Regenerate some more example code 2020-01-08 10:53:15 +01:00
Knut Wannheden
8c225c4501
Merge pull request #9700 from rweisleder/sakila-postgres-fix
Sakila/PostgreSQL: Don't fail if language plpgsql already exists
2020-01-08 10:49:57 +01:00
Knut Wannheden
680cd20d08 [jOOQ/jOOQ#5714] Update examples where Date is now LocalDate
With [jOOQ/jOOQ#5714] the default value of `<javaTimeTypes>` changed
from `false` to `true`. This also requires a few changes in the example
code.
2020-01-06 10:14:18 +01:00
Knut Wannheden
7c08ea1e56 Cleanup: Regenerate jOOQ-spark-chart-example without @Generated 2020-01-06 09:56:55 +01:00
Knut Wannheden
588bf7036d Upgrade to JUnit 4.13
Removes jOOQ's own `assertThrows()` utility in favor of that in JUnit.
2020-01-06 09:35:34 +01:00
Roland Weisleder
63588967b9 Sakila/PostgreSQL: Don't fail if language plpgsql already exists
When using the Sakila DB with the Docker image postgres:12.1 the
initialisation fails with:
  ERROR:  language "plpgsql" already exists

With PostgreSQL 8.4 (see [1]) and earlier it was only possible to
execute:
  CREATE [ PROCEDURAL ] LANGUAGE name

Starting with PostgreSQL 9.0 (see [2]) it is possible to execute:
  CREATE [ OR REPLACE ] [ PROCEDURAL ] LANGUAGE name

This commit makes the SQL script incompatible with PostgreSQL 8.4
and earlier.

[1] https://www.postgresql.org/docs/8.4/sql-createlanguage.html
[2] https://www.postgresql.org/docs/9.0/sql-createlanguage.html
2019-12-26 13:15:17 +01:00
Knut Wannheden
91fde41fb9 [jOOQ/jOOQ#9272] Avoid fully qualified class references when possible
In the generated `CatalogImpl` subclasses the static fields representing
the schemas of the catalog typically don't need a fully qualified class
reference in the initializer expression, since the Java type is imported
already.

Additionally the Javadoc comment of the field representing the default
schema (if any) will now also include the schema's name (before it was
missing).
2019-12-20 11:19:04 +01:00
Knut Wannheden
05a37398f0 [jOOQ/jOOQ#9272] Fix Javadoc of default catalog and schema singletons
Fixes the Javadoc comment of the default catalog and schema singletons
generated into the `CatalogImpl` and `SchemaImpl` subclasses. For the
default catalog and schema the name was always empty.
2019-12-20 11:05:24 +01:00
Knut Wannheden
171637eaed [jOOQ/jOOQ#9272] Avoid fully qualified class references when possible
In the generated `SchemaImpl` subclasses the static fields representing
the tables of the schema typically don't need a fully qualified class
reference in the initializer expression, since the Java type is imported
already.
2019-12-20 10:39:12 +01:00
Knut Wannheden
fb0a53b200 [jOOQ/jOOQ#9272] Simplify generated Schema and Catalog classes
The genereated `SchemaImpl` and `CatalogImpl` subclasses will only
declare methods like `getSchemas0()` and `getTables0()` when necessary.
I.e. when the number of returned definitions exceeds 500.
2019-12-18 17:29:01 +01:00
Knut Wannheden
4f658f01c3 [jOOQ/jOOQ#9663] Regenerate example code 2019-12-18 15:38:20 +01:00
Lukas Eder
2be0080c6d Regenerated example code 2019-12-12 15:08:55 +01:00
Lukas Eder
5f3f2e101c The example code shouldn't use var yet 2019-12-10 10:29:27 +01:00
Lukas Eder
03ef9ce3f7 [jOOQ/jOOQ#9578] Upgrade Hibernate dependency to 5.4.9.Final 2019-11-20 15:27:45 +01:00
Lukas Eder
cd71da22f9 [jOOQ/jOOQ#8967] Generator outputs duplicate method (not compilable) 2019-11-15 13:50:41 +01:00
Knut Wannheden
5ae89a4373 [jOOQ/jOOQ#9487] Consistently use <parent> in pom.xml files
All jOOQ Maven projects now use a jOOQ <parent> project (either
`jooq-parent` or `jooq-examples`).
2019-11-13 12:27:07 +01:00
Knut Wannheden
1159627a41 [jOOQ/jOOQ#9487] Harmonize <version> in all Maven pom.xml files
Now all `pom.xml` files explicitly state the version in the `<version>`
element. E.g. `<version>3.13.0-SNAPSHOT</version>`. Dependencies to
other jOOQ modules are always declared using
`<version>${project.version}</version>`.
2019-11-13 11:40:52 +01:00
Lukas Eder
70f761117e [jOOQ/jOOQ#9531] Open Source version references dual license 2019-11-12 15:12:41 +01:00
Lukas Eder
993293ed56 [jOOQ/jOOQ#9401] Downgrade JAXB dependencies to 2.2 for all JDKs 2019-10-17 17:37:01 +02:00
Lukas Eder
c7de396031 [jOOQ/jOOQ#9401] Downgrade JAXB dependencies to 2.2 for all JDKs 2019-10-17 16:39:14 +02:00
Lukas Eder
c441feb897 [jOOQ/jOOQ#9401] Java 8 distribution references JAXB 2.3.0, which doesn't work pre JDK 9 2019-10-17 15:32:31 +02:00
Lukas Eder
dfbc259981 [jOOQ/jOOQ#5714] Regenerate example code 2019-09-30 09:11:21 +02:00
Lukas Eder
2195e4d0d3 [jOOQ/jOOQ#5714] Don't use <dateAsTimestampBinding/> in examples 2019-09-30 09:11:04 +02:00
Lukas Eder
2b4d918c0a Use ojdbc from Maven Central 2019-09-16 10:25:55 +02:00
Lukas Eder
642d66701c Regenerated code 2019-09-04 11:52:26 +02:00
Lukas Eder
d1c8460ada Regenerated code 2019-09-04 11:52:11 +02:00
Lukas Eder
3f76856790 Fixed version number 2019-09-04 11:51:55 +02:00
Lukas Eder
1076cefd1d [jOOQ/jOOQ#9155] Various third party dependency updates 2019-09-04 10:26:11 +02:00
Knut Wannheden
4c54d82a7e Release: Update version of jOOQ-examples/pom.xml 2019-08-30 07:46:59 +02:00
Knut Wannheden
d27dbf4117 Preparing master for 3.13 release cycle 2019-08-29 16:12:59 +02:00
Knut Wannheden
6220688ca2 Cleanup: Delete some no longer relevant examples and log4j.xml files 2019-08-20 13:31:08 +02:00
Lukas Eder
0f5b8799b9 [jOOQ/jOOQ#9048] Delete module-info.java.invalid files 2019-08-16 14:02:45 +02:00
Knut Wannheden
2fcd73b7e4 [jOOQ/jOOQ#9018] Update to 2.12.9 Scala compiler 2019-08-08 16:57:54 +02:00
Knut Wannheden
2207a68dc8 Make initial schema setup of jOOQ-javafx-example rerunnable 2019-07-30 17:29:58 +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
4fdc37527d [jOOQ/jOOQ#8939] Added missing files 2019-07-25 17:26:44 +02:00
Lukas Eder
990bfa4663 [jOOQ/jOOQ#8939] Various fixes
- Fixed a bug when FlywayFileComparator compares non-flyway files
- Added a unit test
- Added examples to jOOQ-examples module as submodules
- Split flyway migration in one more migration file
- Check in generated sources
2019-07-25 15:51:37 +02:00
Mustafa Yücel
8767b8014d [jOOQ/jOOQ#8939] Support Flyway file ordering in DDLDatabase 2019-07-23 13:56:51 +02:00
Lukas Eder
a688f1904a Regenerated example code 2019-07-03 15:27:26 +02:00
Lukas Eder
23b0c94774 [jOOQ/jOOQ#8889] Upgrade scala 2.12 dependency to 2.12.8 2019-07-03 11:15:57 +02:00
Knut Wannheden
17c3871525 Remove some duplicated static imports for SQLDialect 2019-06-28 16:16:56 +02:00
Knut Wannheden
501dc030e5 [jOOQ/jOOQ#8857] Spring Boot example should reference custom jOOQ
version
2019-06-26 12:36:48 +02:00
Knut Wannheden
3eba94c925 [jOOQ/jOOQ#8577] Also support NOT LIKE ANY and LIKE ALL
In addition to `LIKE ANY` and `NOT LIKE ALL` the inverse predicates `NOT
LIKE ANY` and `LIKE ALL` are now also supported.
2019-06-26 12:33:30 +02:00
Lukas Eder
c5a3ef1b52 [jOOQ/jOOQ#8857] Spring Boot example should reference custom jOOQ version 2019-06-26 12:32:31 +02:00
Lukas Eder
5bfbbe5b61 Regenerated example code 2019-06-24 13:28:12 +02:00
Lukas Eder
55b802ed82 Regenerated example code 2019-06-24 10:14:38 +02:00
Lukas Eder
af7d456f0f Add Spring Boot Example to examples build 2019-06-24 10:14:18 +02:00