Commit Graph

7165 Commits

Author SHA1 Message Date
lukaseder
c7beac5ae3 [#8547] Add SQLDialect.SQLITE_3_28 and SQLDialect.SQLITE_3_25 2019-04-18 16:26:06 +02:00
lukaseder
a7215a91ba [#8551] Support old SQLDialects only in commercial distributions 2019-04-18 16:11:37 +02:00
lukaseder
1116644cde [#8550] Improve formatting of generated table-level JPA annotations 2019-04-18 11:23:35 +02:00
lukaseder
65d779065f [#8536] Missing constraint name in generated @UniqueConstraint annotation 2019-04-18 10:56:38 +02:00
lukaseder
b7e6923f34 [#8502] Missing annotation 2019-04-18 10:56:29 +02:00
Knut Wannheden
e24d186330 [#8433] INSERT ... ON CONFLICT clause for SQLite
As of version 3.24.0 SQLite natively supports INSERT's ON CONFLICT
clause, which can thus also be used by jOOQ.

Note: SQLite doesn't support combining DEFAULT VALUES with ON CONFLICT.
And since SQLite does not support the DEFAULT keyword in INSERT the
DEFAULT VALUES clause cannot be emulated.
2019-04-18 10:48:37 +02:00
Knut Wannheden
861c4422c7 Regenerate JAXB code
Specify <noFileHeader> option to maven-jaxb2-plugin and also normalize
line terminators to UNIX style.
2019-04-18 10:22:24 +02:00
lukaseder
b65a945c91 [#8539] Add alias DSL.default_() for DSL.defaultValue() 2019-04-17 14:27:43 +02:00
lukaseder
66249dcfb7 [#7545] Fixed regression caused by unnecessary application of Filters 2019-04-17 14:18:09 +02:00
lukaseder
c5903425ee [#8537] Parsing CREATE SEQUENCE always leads to quoted sequence names 2019-04-17 13:38:03 +02:00
lukaseder
348909d9e2 Regenerated example code 2019-04-17 11:27:10 +02:00
lukaseder
97cab67e4a [#8535] Generate @UniqueConstraint annotation instead of @Column(unique = true)
The current distinction is confusing, and if redundant uniqueness information is present, then Hibernate ignores the @UniqueConstraint name. Hence, we will only generate the @UniqueConstraint annotation
2019-04-17 11:26:59 +02:00
lukaseder
5156f503b4 [#7490] Upgrade jOOQ-meta-extensions dependency to Hibernate 5.4 2019-04-17 09:38:27 +02:00
lukaseder
be6200e1ba [#8522] Added integration test for chained function calls 2019-04-16 16:55:15 +02:00
Knut Wannheden
56fe33475d [#8529] Clean up Javadoc for INSERT ... ON CONFLICT
Improves the DSL Javadoc for INSERT ... ON [ CONFLICT | DUPLICATE KEY ]
2019-04-16 16:22:16 +02:00
lukaseder
97f8700abf [#8531] Wrong Context.subqueryLevel() when emulating derived column lists
If a QueryPart generates a subquery explicitly, then it has to mark it as such.
2019-04-16 16:08:40 +02:00
Knut Wannheden
adcb72fcfb [#7545] Add <includeExpression> and <excludeExpression> to <forcedType>
Add <includeExpression> and <excludeExpression> as well as
<includeTypes> and <excludeTypes> to <forcedType>. The generator will
warn about usage conflicting with the legacy <expression>,
<expressions>, and <types> elements.
2019-04-16 15:34:24 +02:00
Knut Wannheden
840f5a2aed [#8527] Fix MiniJAXB#append() when called using enums
The JAXB generated models also define Java enums, which should thus also
be supported by MiniJAXB#append().
2019-04-16 12:55:45 +02:00
Knut Wannheden
652e2b1a96 [#8515] Fix type hierarchy of InsertOnConflictConditionStep
InsertOnConflictConditionStep now extends InsertReturningStep rather
than InsertFinalStep and is now also the type returned by the methods
declared in InsertOnConflictWhereStep.
2019-04-16 12:49:47 +02:00
Knut Wannheden
14a0f6ddc8 [#3607] [#8522] Support PL/SQL BOOLEAN types in SQL functions 2019-04-16 12:49:37 +02:00
lukaseder
927708b15a [#3607] [#8522] Support PL/SQL BOOLEAN types in SQL functions
[#8522] Emulate the PL/SQL BOOLEAN type in SQL functions in Oracle 12c
[#3607] Allow for emitting common table expression declarations to RenderContext
2019-04-16 12:04:53 +02:00
lukaseder
1673a1b971 [#6234] The encoded newline characters must be decoded 2019-04-13 18:37:54 +02:00
lukaseder
ab3f0ed371 [#8512] JPADatabase may not be able to properly detect AttributeConverter
Some implementation of this database may have already configured a forced type programmatically, so we must not set the list but append it.
2019-04-11 16:54:56 +02:00
lukaseder
381adbc492 [#8512] JPADatabase may not be able to properly detect AttributeConverter 2019-04-11 16:26:07 +02:00
Knut Wannheden
a5d4c00b7a [#6971] Regenerated code from jooq-codegen-3.12.0.xsd 2019-04-10 16:25:51 +02:00
lukaseder
cd057d34d4 [#461] [#473] [#2597] [#8234] Unnecessary casts should no longer be ignored
Historically, SQL casts were ignored if jOOQ's Field<T> type was of the same type T as the cast type. This makes sense for some internals, but not in the public API. When a user wants to cast an expression, this should always produce a SQL cast.
2019-04-10 16:16:20 +02:00
lukaseder
5832e45eaf [#6971] Added missing class 2019-04-10 14:40:37 +02:00
lukaseder
320b7a5b85 [#8505] Modules should reference managed H2 dependency 2019-04-10 14:27:30 +02:00
lukaseder
d3a19273ad [#8504] Remove manual from OSS repository 2019-04-10 14:26:36 +02:00
Knut Wannheden
df2ec439bc [#6971] Add <onError/> to generator's <configuration/>
Using the new <onError/> (which accepts the values FAIL (default), LOG,
and SILENT) the generator's behavior on an encountered exceptions can be
controlled.
2019-04-10 12:20:17 +02:00
lukaseder
929529ec7a [#8503] Make SET clause in ON DUPLICATE KEY UPDATE optional in parser
jOOQ parses a synthetic SET clause which is not supported by MySQL. This clause must be parsed optionally
2019-04-10 12:01:55 +02:00
lukaseder
3f84ccf58f [#8479] Emulate INSERT .. ON DUPLICATE KEY UPDATE .. WHERE on MySQL
MySQL doesn't support the useful WHERE clause on ON DUPLICATE KEY UPDATE like PostgreSQL does on ON CONFLICT. But it can easily be emulated using CASE if users do not rely on the effective update counts.
2019-04-10 11:52:56 +02:00
lukaseder
72eda66bdf [#8434] Support H2 v1.4.198 array syntax
H2 1.4.198 changed array syntax incompatibly to align the syntax with PostgreSQL, HSQLDB, and the SQL standard. The old syntax (which conflicts with row value expression) is no longer really supported.
2019-04-10 11:50:28 +02:00
lukaseder
6d630cd53a [#8434] Support H2 v1.4.198 array syntax
H2 1.4.198 changed array syntax incompatibly to align the syntax with PostgreSQL, HSQLDB, and the SQL standard. The old syntax (which conflicts with row value expression) is no longer really supported.
2019-04-10 11:12:28 +02:00
lukaseder
a55a362fd8 [#8502] Add support for H2 1.4.198 row value expression subquery syntax
H2 breaks backwards compatibility in 1.4.198 and supports row value expressions at the price of desupporting the "old" vendor specific array syntax. This means we can now remove some H2 specific logic and implement standard row value expression syntax also for H2
2019-04-09 17:49:26 +02:00
lukaseder
19b19411c0 [#8493] Support JSR 310 types as <name/> in <forcedType/> data type rewriting feature
Some SQLDataTypes are "synthetic" aliases of other types, and as such could not yet be used as forcedType names because they were not recognised, despite what the manual says.
2019-04-09 17:08:10 +02:00
Knut Wannheden
ab3ea42784 Release 3.11.11 2019-04-09 16:38:32 +02:00
Knut Wannheden
f50f71eb9f [#8429] Fix escaping in AbstractField#endsWith(Object)
Since client code can specify a different value when the query is being
executed, the escaping must be done in SQL rather than in Java. The same
applies to AbstractField#startsWith(Object) and some more LIKE-based
predicates.
2019-04-09 16:37:22 +02:00
lukaseder
f37d66de12 [#8498] Add more documentation to the RETURNING clause 2019-04-09 12:45:51 +02:00
lukaseder
baeae9a24b [#7953] [#8496] Search the hierarchy for a matching setter 2019-04-09 12:33:43 +02:00
lukaseder
af286d96b7 [#8486] Add Settings.renderNamedParamPrefix to support dialect specific named parameter placeholders 2019-04-08 11:16:48 +02:00
lukaseder
dfaddcaca8 [#7643] Updated slf4j once more 2019-04-05 17:32:00 +02:00
lukaseder
519e870394 [#4498] emulate INSERT .. RETURNING via SQL Server OUTPUT clause (WIP) 2019-04-05 17:08:02 +02:00
lukaseder
2785bc84ae [#8491] Remove unnecessary marker tokens in source code 2019-04-05 11:52:34 +02:00
Knut Wannheden
420b4d28d3 [#7789] Update Travis configuration to Java 11 and Maven 3.6.0 2019-04-05 10:57:11 +02:00
Knut Wannheden
ed38769655 [#7789] Change Maven projects to use Java 11 2019-04-05 10:36:37 +02:00
Knut Wannheden
24db79da74 [#8489] Add TableImpl#fieldsRow() override due to Scala compiler bug 2019-04-04 17:51:57 +02:00
Knut Wannheden
7fcbc8e135 [#8484] Fix 3.11 <-> 3.12 mismatches between XSDs and Constants class 2019-04-04 12:14:56 +02:00
lukaseder
c0ada90f6e [#8478] ERROR: conflicting ColumnTypes while executing meta query on CockroachDB 2019-04-03 16:14:41 +02:00
lukaseder
b00f17efcf [#8477] Support views with renamed columns in SQLite's CREATE VIEW statement 2019-04-01 13:02:54 +02:00