Commit Graph

368 Commits

Author SHA1 Message Date
Lukas Eder
11e9ec7eac Regenerated example code 2020-07-15 15:39:57 +02:00
Lukas Eder
8f9c389132 [jOOQ/jOOQ#8553] Add support for foreign keys referencing unique key
columns in different order than in the unique key definition

- Added new runtime meta API
- Added interpreter and org.jooq.Meta support
- Added code generation support
2020-06-30 16:28:25 +02:00
Lukas Eder
c7438a7b5e [jOOQ/jOOQ#6244] Adapted Kotlin example code 2020-06-30 13:01:04 +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
824e689f19 [jOOQ/jOOQ#6244] Add nullability annotations to jOOQ API
- Generic type variable returning methods don't need to be annotated
- Annotated some SPIs
- Annotated Result, Cursor, and many other types
- Enhance AnnotationTest to validate jOOQ API without Support annotation
- Add InstrumentationTests to assert correctness of jOOQ-test-agent
- Don't expect annotations on XJC generated code
- Exclude default methods for now (Byte Buddy bug?)
- [jOOQ/jOOQ#10294] Remove methods from RenderContext and BindContext
2020-06-19 11:53:35 +02:00
Lukas Eder
2592960afe [jOOQ/jOOQ#10280] The method name is Meta.snapshot() 2020-06-16 12:23:52 +02:00
Lennart Jonsson
2ec2de548a Add empty comment after stmt in trigger. This makes it possible to run script from clp without changing stmt terminator 2020-06-08 09:45:06 +02:00
Lukas Eder
ec914b6e14 [jOOQ/jOOQ#10227] Avoid public visibility if possible 2020-06-04 11:45:03 +02:00
Lukas Eder
8f6657813e [jOOQ/jOOQ#10235] jOOQ-kotlin-example should use new KotlinGenerator
This also fixes array generation in Kotlin
2020-05-29 15:56:04 +02:00
Lukas Eder
6b75127bba [jOOQ/jOOQ#681] DOMAIN support
This change includes:

- Support CREATE / ALTER / DROP DOMAIN in Firebird
- Fix a regression in CREATE SEQUENCE
2020-05-29 15:39:47 +02:00
Lukas Eder
2d62a406c4 [jOOQ/jOOQ#681] Add support for type DOMAINs (WIP)
- Added org.jooq.Domain
- Add DSL API to construct domain references
- Add code generator support for domains
- Add DDL support for domains (CREATE, ALTER, DROP)
- Add parser support
- Add dialect support (H2, PostgreSQL, SQL Server)
2020-05-27 17:58:16 +02:00
Lukas Eder
937a34e0f6 [jOOQ/jOOQ#10205] Fixed the NPE 2020-05-19 17:14:59 +02:00
Lukas Eder
83a0225cbe [jOOQ/jOOQ#6256] Fix kotlin-stdlib-jdk8 dependency 2020-05-07 15:14:29 +02:00
Lukas Eder
74fcb44060 [jOOQ/jOOQ#6256] Add jOOQ-kotlin
This commit includes a first draft of Extensions.kt to improve the Kotlin/jOOQ experience. More work to be added soon
2020-05-07 14:35:17 +02:00
Lukas Eder
aaa9f2c563 [jOOQ/jOOQ#10024] Upgraded spring dependency from 5.1.9 to 5.2.5 2020-04-01 14:24:59 +02:00
Lukas Eder
fded3f189b Regenerate examples 2020-03-16 11:35:44 +01:00
Gerald Venzl
2eb35d6cd0 Add verification steps after data load
Signed-off-by: Gerald Venzl <gerald.venzl@gmail.com>
2020-03-10 21:21:15 -07:00
Gerald Venzl
ea7124de77 Add ReadMe with install instructions
Signed-off-by: Gerald Venzl <gerald.venzl@gmail.com>
2020-03-10 21:08:10 -07:00
Gerald Venzl
3271b0073e Add commit, disable/enable constraints
Signed-off-by: Gerald Venzl <gerald.venzl@gmail.com>
2020-03-10 21:05:37 -07:00
Gerald Venzl
b88d59c206 add commits, graceful constraints
Add commits after each table to avoid unnecessary UNDO tablespace growth due to one big transaction

DISABLE and ENABLE constraints rather than DROP and CREATE so taht constraint definition remains in schema.sql alone

Signed-off-by: Gerald Venzl <gerald.venzl@gmail.com>
2020-03-10 21:04:44 -07:00
Gerald Venzl
ecdda13f60 Remove redunant / (only needed for PL/SQL)
Signed-off-by: Gerald Venzl <gerald.venzl@gmail.com>
2020-03-10 21:01:48 -07:00
Knut Wannheden
9faa244a0d [#282] Stop removing trailing spaces outside delimited code regions 2020-02-20 12:20:19 +01:00
Lukas Eder
dffa77f470 Regenerated example code 2020-02-12 12:20:19 +01:00
Lukas Eder
330dac76de Release 3.14.0-SNAPSHOT 2020-02-12 11:29:19 +01:00
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