Commit Graph

902 Commits

Author SHA1 Message Date
Lukas Eder
f3ff999494 Whitespace change 2020-03-18 13:33:31 +01:00
Lukas Eder
7c86c20c22 [jOOQ/jOOQ#9945] Added PostgreSQL support 2020-03-13 13:16:43 +01:00
Lukas Eder
c7f6785c1d [jOOQ/jOOQ#9945] Added HSQLDB support 2020-03-13 13:01:17 +01:00
Lukas Eder
da7016e6bb [jOOQ/jOOQ#9945] Added TIMESTAMP precision support in MySQL 2020-03-13 12:11:02 +01:00
Lukas Eder
aebe5cf584 [jOOQ/jOOQ#9958] Add DataType.precisionDefined(), scaleDefined(),
lengthDefined()

Also, apply the optimistic locking truncation only if a precision is
defined on the TIMESTAMP data type [jOOQ/jOOQ#9933]
2020-03-13 11:59:30 +01:00
Lukas Eder
a92b633f76 [jOOQ/jOOQ#9916] NullPointerException in XMLDatabase when new <enforced> element is missing 2020-03-05 13:38:19 +01:00
Knut Wannheden
9faa244a0d [#282] Stop removing trailing spaces outside delimited code regions 2020-02-20 12:20:19 +01:00
Lukas Eder
5c6c00c99e [jOOQ/jOOQ#9842] Update error messages to refer to org.jooq.trial-java-8 Maven groupId 2020-02-14 17:40:17 +01:00
Lukas Eder
9f214edb1d [jOOQ/jOOQ#9834] jOOQ-meta Database implementations should dynamically
detect server version and use appropriate dialect version
2020-02-13 16:09:46 +01:00
Lukas Eder
84dfaa1ee2 [jOOQ/jOOQ#9835] NPE when using AbstractDatabase instance without explicit configuredCustomTypes 2020-02-13 16:00:36 +01:00
Lukas Eder
330dac76de Release 3.14.0-SNAPSHOT 2020-02-12 11:29:19 +01:00
Lukas Eder
32c536328c [jOOQ/jOOQ#9819] Add support for INFORMATION_SCHEMA.VIEWS in jooq-meta.xsd 2020-02-11 16:06:16 +01:00
Lukas Eder
20f3fce616 [jOOQ/jOOQ#9805] Generate view source code with generated views 2020-02-11 15:17:24 +01:00
Lukas Eder
04cfaaa329 [jOOQ/jOOQ#9816] Add Definition.getSource() 2020-02-10 13:00:44 +01:00
Lukas Eder
b0aab86afa [jOOQ/jOOQ#9801] Make TableOptions available through InformationSchema 2020-02-10 12:26:31 +01:00
Knut Wannheden
7daa6b365f [jOOQ/jOOQ#9807] Java 6 compatibility fix 2020-02-10 09:11:20 +01:00
Lukas Eder
92de670f5d [jOOQ/jOOQ#9807] Apply Configuration.onError flag also to SQL errors from AbstractDatabase 2020-02-07 10:33:51 +01:00
Lukas Eder
def16a89db [jOOQ/jOOQ#9808] Added missing implementations 2020-02-07 10:18:13 +01:00
Lukas Eder
0fef1bb67e [jOOQ/jOOQ#9799] Make TableOptions available through code generation 2020-02-06 18:07:19 +01:00
Lukas Eder
ed15aa3b83 [jOOQ/jOOQ#9799] Add H2 support 2020-02-06 15:36:11 +01:00
Lukas Eder
800c2a44d7 [jOOQ/jOOQ#9799] Make TableOptions available through code generation 2020-02-06 15:36:00 +01:00
Lukas Eder
4037ac40c4 [jOOQ/jOOQ#9604] Make default OrderProvider case insensitive 2020-02-03 10:12:29 +01:00
Lukas Eder
38febbc695 [jOOQ/jOOQ#9511] Avoid quoted identifiers in jOOQ-meta queries 2020-01-28 17:55:00 +01:00
Lukas Eder
9fc2e2cd61 [jOOQ/jOOQ#3521] Implement JDBCDatabase.loadForeignKeys() 2020-01-28 17:27:56 +01:00
Lukas Eder
4c5b8b0c7e [#9754] Commented out version of ordering by type signature 2020-01-28 11:20:42 +01:00
Lukas Eder
3af4c5f6ec [jOOQ/jOOQ#9758] Generated constraint names should not be table prefixed
in meta data (PostgreSQL fix)
2020-01-24 14:14:54 +01:00
Knut Wannheden
6ee58543fc [jOOQ/jOOQ#9200] Get rid of separate query to check for identity
Instead of running a separate query to check if the table has any
identity column this is now being done with a `COUNT(*) FILTER (WHERE
is_identity = 'YES') OVER ()` expression.
2020-01-23 09:53:12 +01:00
Knut Wannheden
c367663df7 [jOOQ/jOOQ#9200] Only use IS_IDENTITY if there are IDENTITY columns
The jOOQ code generator will now only map `COLUMNS.IS_IDENTITY` to
`ColumnDefinition#isIdentity()` if the table has a column for which
`COLUMNS.IS_IDENTITY` is `YES`. Otherwise it will continue to check if
the default value starts with `nextval`.
2020-01-22 16:02:36 +01:00
Knut Wannheden
91a5f9e3db [jOOQ/jOOQ#9200] Fix OSS edition incompatibility 2020-01-20 16:24:48 +01:00
Knut Wannheden
19a61d2214 [jOOQ/jOOQ#9200] Use COLUMNS.IS_IDENTITY for PostgreSQL 10+
As of PostgreSQL 10.0 the column
`INFORMATION_SCHEMA.COLUMNS.IS_IDENTITY` can be used to determine
whether a column represents a table's identity column or not. This is
now used by jOOQ's code generator and for older releases it will
continue to check wheter the default value (i.e. using
`INFORMATION_SCHEMA.COLUMNS.COLUMN_DEFAULT`) starts with `NEXTVAL`.
2020-01-20 15:54:09 +01:00
Lukas Eder
c2eb2e0dc7 [jOOQ/jOOQ#9734] Add <nonnullAnnotation/> and <nullableAnnotation/> 2020-01-15 16:13:42 +01:00
Lukas Eder
2323b2a3e1 [jOOQ/jOOQ#9733] Add <generatedNonnullAnnotationType/> and <generatedNullableAnnotationType/> 2020-01-15 14:26:27 +01:00
Lukas Eder
54e8a53628 [jOOQ/jOOQ#9732] Change default value of <generatedAnnotation/> to
"false"
2020-01-15 13:57:20 +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
e0cc5a4763 [jOOQ/jOOQ#9696] Add a new <generateGlobalIndexReferences/> flag
- This also fixes [jOOQ/jOOQ#9582]
2019-12-19 17:39:37 +01:00
Lukas Eder
4cd3a9f8f9 [jOOQ/jOOQ#9604] Implement a default OrderProvider in the code generator 2019-12-16 10:46:50 +01:00
Lukas Eder
f1bbecc136 [jOOQ/jOOQ#9663] Add code generator support for NOT ENFORCED constraint flag
This depends on [jOOQ/jOOQ#9672] Add ConstraintDefinition
2019-12-12 17:34:44 +01:00
Knut Wannheden
23e4dfaa86 [jOOQ/jOOQ#9667] Stop generating JAXB episode files
The Maven plugin maven-jaxb2-plugin has an option to turn this feature
off.
2019-12-12 12:19:43 +01:00
Lukas Eder
485afa0551 [jOOQ/jOOQ#9669] Move xjb files out of artifacts 2019-12-12 12:18:05 +01:00
Knut Wannheden
93346ea3c3 [jOOQ/jOOQ#9667] Ignore JAXB .episode files
The XJC .episode files are not relevant in the jOOQ build.
2019-12-12 11:46:23 +01:00
Knut Wannheden
2fd3e0b0f7 [jOOQ/jOOQ#9442] Sequence flags code generation support for Firebird 2019-12-11 12:11:40 +01:00
Knut Wannheden
b21a8c5f38 [jOOQ/jOOQ#9442] Support BigInteger for sequence flags
Java (and Scala) generator now also supports sequence flags where the
value is of type `BigInteger`.
2019-12-11 11:42:19 +01:00
Lukas Eder
35a3821efa [jOOQ/jOOQ#9660] Regenerate Derby's SYS schema without indexes 2019-12-11 11:14:07 +01:00
Knut Wannheden
420b5ca0cb [jOOQ/jOOQ#9660] Upgrade Derby to version 10.15
Also regenerates the `SYS` schema in `jOOQ-meta` for Derby.
2019-12-11 10:38:48 +01:00
Knut Wannheden
aa963f3010 [jOOQ/jOOQ#9629] Add "sequenceFlags" option to code generator
The `<generate>` element now has a `<sequenceFlags>` element which can
be used to disable the sequence flags generation, which is enabled by
default.
2019-12-05 14:29:09 +01:00
Knut Wannheden
791ed71c5b [jOOQ/jOOQ#9603] Change names to conform with SQL standard
The names of the XML elements in `jooq-meta-3.13.0.xsd` corresponding to
sequence flags have been changed to conform with the SQL standard.

Additionally the type of the numeric sequence flags have been changed
from `Long` to `BigInteger` and consequently also in other APIs from
`Long` to `Number`.
2019-12-05 13:51:48 +01:00
Knut Wannheden
9940a56afa [jOOQ/jOOQ#9603] Support sequence flags in jooq-meta.xsd
Sequence flags are now also supported in the jooq-meta.xsd model and
everywhere where this is used.
2019-12-04 17:17:03 +01:00
Knut Wannheden
f0950e0779 [jOOQ/jOOQ#9442] Support sequence flags in MariaDBDatabase 2019-12-04 08:44:10 +01:00
Knut Wannheden
7497d0006c [jOOQ/jOOQ#9442] H2Database: Replace default flags with null
With jOOQ/jOOQ#9602 this behavior can be fine-tuned.
2019-12-04 08:41:17 +01:00