Commit Graph

392 Commits

Author SHA1 Message Date
Lukas Eder
619bb92702 [jOOQ/jOOQ#11194] Fixed formatting regression 2021-01-14 17:38:38 +01:00
Lukas Eder
9f6d867417 Re-generated example code 2021-01-14 17:19:20 +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
ba18c30c1e Re-generated code 2020-12-14 12:45:22 +01:00
Lukas Eder
66e86da28e [jOOQ/jOOQ#11066] Tests failed for jooq-spring-boot-example 2020-12-09 16:51:30 +01:00
Lukas Eder
685f2fdbe8 Re-generated example code 2020-12-09 15:53:14 +01:00
Lukas Eder
519e9ae501 [jOOQ/jOOQ#11066] Fixed jooq-jpa-example pom.xml dependencies 2020-12-09 15:53:08 +01:00
Lukas Eder
20a60f6f38 [jOOQ/jOOQ#10972] Downgrade ErrorProne again 2020-11-19 11:09:12 +01:00
Lukas Eder
8076b700f3 [jOOQ/jOOQ#10972] Upgraded error prone and other dependencies 2020-11-18 16:54:52 +01:00
Lukas Eder
49f646a33c Re-generated example code 2020-11-04 11:42:53 +01:00
Lukas Eder
7cff2cae7e Release 3.15.0-SNAPSHOT 2020-10-20 10:20:20 +02:00
Lukas Eder
c4bb6cb967 Upgrade junit to 4.13.1, use managed versions where available 2020-10-13 12:07:56 +02:00
Lukas Eder
58ee7b5ade
Merge pull request #10731 from jOOQ/dependabot/maven/jOOQ-examples/jOOQ-spark-example/junit-junit-4.13.1
Bump junit from 4.13 to 4.13.1 in /jOOQ-examples/jOOQ-spark-example
2020-10-13 10:31:30 +02:00
Lukas Eder
33e861d61f
Merge pull request #10732 from jOOQ/dependabot/maven/jOOQ-examples/jOOQ-academy/junit-junit-4.13.1
Bump junit from 4.13 to 4.13.1 in /jOOQ-examples/jOOQ-academy
2020-10-13 10:31:01 +02:00
Lukas Eder
1cb6d1bdd8
Merge pull request #10733 from jOOQ/dependabot/maven/jOOQ-examples/jOOQ-javafx-example/junit-junit-4.13.1
Bump junit from 4.13 to 4.13.1 in /jOOQ-examples/jOOQ-javafx-example
2020-10-13 10:28:43 +02:00
dependabot[bot]
a4ad6dae38
Bump junit from 4.13 to 4.13.1 in /jOOQ-examples/jOOQ-oracle-example
Bumps [junit](https://github.com/junit-team/junit4) from 4.13 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.13...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 06:46:06 +00:00
dependabot[bot]
b77dae3814
Bump junit from 4.13 to 4.13.1 in /jOOQ-examples/jOOQ-javafx-example
Bumps [junit](https://github.com/junit-team/junit4) from 4.13 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.13...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 06:45:07 +00:00
dependabot[bot]
e080252d29
Bump junit from 4.13 to 4.13.1 in /jOOQ-examples/jOOQ-academy
Bumps [junit](https://github.com/junit-team/junit4) from 4.13 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.13...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 06:40:41 +00:00
dependabot[bot]
63430f67d0
Bump junit from 4.13 to 4.13.1 in /jOOQ-examples/jOOQ-spark-example
Bumps [junit](https://github.com/junit-team/junit4) from 4.13 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.13...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 06:39:22 +00:00
Lukas Eder
640e49ac78 Re-generated example code 2020-10-05 12:17:05 +02:00
Lukas Eder
b32d747387 Removed some redundant managed version numbers from pom.xml files 2020-09-09 15:59:03 +02:00
Lukas Eder
a35a6c052f [jOOQ/jOOQ#10554] Re-generated example code 2020-09-02 14:37:09 +02:00
Lukas Eder
9d5c87d35a [jOOQ/jOOQ#10534] <enumConverter/> and <lambdaConverter/> don't work in ScalaGenerator and KotlinGenerator 2020-08-28 10:59:46 +02:00
Lukas Eder
47d5276038 [jOOQ/jOOQ#2530] Kotlin code generation fixes 2020-08-20 11:23:32 +02:00
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