Commit Graph

8081 Commits

Author SHA1 Message Date
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
1be45e7a30 [jOOQ/jOOQ#7511] Make ParserImpl OSS compatible 2019-12-12 10:24:42 +01:00
Knut Wannheden
ffb4ad44a9 [jOOQ/jOOQ#7511] Fix DDLInterpreter and AlterTableImpl in OSS edition 2019-12-12 09:16:43 +01:00
Lukas Eder
effc7a09d8 [jOOQ/jOOQ#7511] [jOOQ/jOOQ#9662] WIP 2019-12-11 16:14:08 +01:00
Lukas Eder
6d000bd55b [jOOQ/jOOQ#7511] [jOOQ/jOOQ#9662] WIP 2019-12-11 15:33:09 +01:00
Lukas Eder
a471e023d1 [jOOQ/jOOQ#9661] Support parsing MySQL's unnamed constraint syntax 2019-12-11 13:33:50 +01:00
Knut Wannheden
83fb81f927 [jOOQ/jOOQ#9660] Adding test dependencies back to jOOQ
The dependencies to some embedded database drivers are required by some
of the unit tests.
2019-12-11 12:17:52 +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
Lukas Eder
ff37976991 [jOOQ/jOOQ#9661] Support parsing MySQL's unnamed constraint syntax 2019-12-11 11:10:08 +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
Lukas Eder
4da8a11f92 [jOOQ/jOOQ#8528] Don't allow duplicate column names in tables 2019-12-11 09:52:39 +01:00
Lukas Eder
a5aac20b8c [jOOQ/jOOQ#8528] Unused annotation 2019-12-10 16:06:23 +01:00
Lukas Eder
23e94bf403 [jOOQ/jOOQ#8528] Fix duplicate constraint names 2019-12-10 15:37:43 +01:00
Lukas Eder
d60e67abc6 [jOOQ/jOOQ#9434] Fixed DDLExportConfiguration.respectConstraintOrder 2019-12-10 14:57:40 +01:00
Lukas Eder
b7b8d5bb28 [jOOQ/jOOQ#9653] Meta.ddl() loses Schema and Constraint Name.quoted() information 2019-12-10 13:14:04 +01:00
Lukas Eder
94d2595130 [jOOQ/jOOQ#9425] Diff for cross schema FKs
In order to better reuse diff logic, the lambdas are now extracted as
members.
2019-12-10 12:56:23 +01:00
Lukas Eder
38cc7d4733 [jOOQ/jOOQ#8528] Fix interpretation of DROP SCHEMA .. CASCADE
When there are inbound foreign keys into a schema that is being dropped with CASCADE, those foreign keys have to be deleted first
2019-12-10 12:18:32 +01:00
Lukas Eder
c9e2c764fb [jOOQ/jOOQ#9533] Fixed syntax error 2019-12-10 11:55:54 +01:00
Lukas Eder
3bfb0c9756 [jOOQ/jOOQ#9157] [jOOQ/jOOR#57] Try again
When running the Java 8 distribution's code of jOOR on Java 9,
CACHED_LOOKUP_CONSTRUCTOR is null because we're not allowed to access
that from JDK 9+. This means we can no longer use it in reflection
logic, e.g. when implementing in-memory compilation. We have to use the
Java 9+ logic via meta-reflection.
2019-12-10 11:29:45 +01:00
Lukas Eder
d8b63da46c [jOOQ/jOOQ#9157] [jOOQ/jOOR#57] Try again
When running the Java 8 distribution's code of jOOR on Java 9, CACHED_LOOKUP_CONSTRUCTOR is null because we're not allowed to access that from JDK 9+. This means we can no longer use it in reflection logic, e.g. when calling default methods. We have to use the Java 9+ logic via meta-reflection.
2019-12-10 11:05:00 +01:00
Lukas Eder
5f3f2e101c The example code shouldn't use var yet 2019-12-10 10:29:27 +01:00
Lukas Eder
131ed5fbfd [jOOQ/jOOQ#9648] ArrayIndexOutOfBoundsException if query has a single or double quote char in vendor specific comment 2019-12-10 09:57:55 +01:00
Lukas Eder
40ef8cda06 [jOOQ/jOOQ#9425] DDLDiffConfiguration.dropTableCascade() support
- Enhanced IN/OUT parameter that wraps the existing List<Query> and allows for passing around additional context information
- Prevent FKs from being dropped twice
2019-12-09 13:21:56 +01:00
Lukas Eder
f7e2229f53 [jOOQ/jOOQ#9382] Added DDL interpretation support 2019-12-09 12:20:52 +01:00
Lukas Eder
41263129d2 [#9382] Add support for Oracle's ALTER TABLE .. DROP UNIQUE (<columns>) syntax 2019-12-09 11:55:25 +01:00
Lukas Eder
a78679b0fa [jOOQ/jOOQ#9636] Add Settings.locale() as a default for renderLocale()
and other locales
2019-12-06 17:48:37 +01:00
Lukas Eder
007d25fb76 [jOOQ/jOOQ#8528] Cache interpreted objects for better bi-directionality 2019-12-06 17:48:12 +01:00
Lukas Eder
e8e2218673 [jOOQ/jOOQ#9636] Add Settings.locale() as a default for renderLocale() and other locales 2019-12-06 11:32:07 +01:00
Lukas Eder
d5ecab1e71 [jOOQ/jOOQ#9633] Add a new Settings.interpreterNameLookupCaseSensitivity
- Default is now ParseNameCase.UPPER_IF_UNQUOTED ([jOOQ/jOOQ#9238])
- Made ParseNameCase logic reusable for ParserImpl and DDLInterpreter
- DDLInterpreter MutableNamed model now uses inner classes to share
  Configuration instance access
- Case insensitive comparisons now use Settings.renderLocale()
  TODO: [jOOQ/jOOQ#9636]
2019-12-06 11:15:19 +01:00
Lukas Eder
b5b5bc4f6b [jOOQ/jOOQ#9633] Add a new Settings.interpreterNameLookupCaseSensitivity
(WIP, see new TODOs)
2019-12-05 20:49:29 +01:00
lukaseder
726e338f04 [jOOQ/jOOQ#8528] Removed normalization in DDL interpreter
This concept needs to be solved more globally by supporting new settings that govern case sensitivity of identifiers. The default is case insensitive.

Also, some refactorings that unify name lookups to prepare for this new feature
2019-12-05 18:10:22 +01:00
lukaseder
2f9325ea5f [jOOQ/jOOQ#9425] Diff support for ALTER .. SET DATA TYPE
See also [jOOQ/jOOQ#9632]
2019-12-05 16:04:03 +01:00
lukaseder
c4ed8e7dce [jOOQ/jOOQ#9425] Diff renaming of indexes 2019-12-05 15:27:45 +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
lukaseder
c4d6155aeb [jOOQ/jOOQ#9506] Added more TODOs 2019-12-05 08:33:05 +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
Lukas Eder
f00cbabd5e [jOOQ/jOOQ#8545] More casting 2019-12-04 16:40:51 +01:00
Lukas Eder
80b3148739 [jOOQ/jOOQ#8545] Emulate ON CONFLICT .. ON CONSTRAINT 2019-12-04 16:30:57 +01:00
Lukas Eder
f0902e65e1 [jOOQ/jOOQ#8545] Some cast fixes 2019-12-04 16:03:58 +01:00
Lukas Eder
ef3f9df088 [jOOQ/jOOQ#8528] More cleaning up bi-directional associations 2019-12-04 15:38:46 +01:00
Lukas Eder
890cb5de20 [jOOQ/jOOQ#8528] Clean up cross schema references after drop schema cascade event. 2019-12-04 15:33:41 +01:00
Lukas Eder
55e45a9f14 [jOOQ/jOOQ#8528] Added some lifecycle for bi-directional associations 2019-12-04 15:22:15 +01:00
Lukas Eder
358871ed21 [jOOQ/jOOQ#8528] Added TODO 2019-12-04 14:04:28 +01:00
Lukas Eder
6f7f7f239e [jOOQ/jOOQ#9621] NullPointerException in DefaultRecordMapperProvider when setting a new instance to a Configuration 2019-12-04 13:08:35 +01:00
Lukas Eder
cd196d1712 [jOOQ/jOOQ#8545] Use Field.concat() to re-use internal casts 2019-12-04 12:24:28 +01:00