Commit Graph

800 Commits

Author SHA1 Message Date
Lukas Eder
0f5b8799b9 [jOOQ/jOOQ#9048] Delete module-info.java.invalid files 2019-08-16 14:02:45 +02:00
Knut Wannheden
fcf927b271 [jOOQ/jOOQ#2059] Update module-info with MemSQL export
Also adds missing `org.jooq.meta.tools` export.
2019-08-15 15:14:24 +02:00
Knut Wannheden
6a28099723 [jOOQ/jOOQ#8939] Marking classes package protected 2019-08-06 10:03:44 +02:00
Lukas Eder
854375dbcf [jOOQ/jOOQ#7789] Revert change
The jOOQ 3.12 Open Source Edition will continue to support Java 8. The only things we gain from the JDK 11 dependency is:

- Updated logic for reflection when mapping into proxied default methods (that stuff has changed completely in JDK 9). This is a regression, which we can live with. The workaround is to write a custom
- Explicit dependency on the JDK 9  API, for which we provide a Java 8 compatible alternative via reactive streams anyway.
- JDBC 4.3 compatibility (mostly sharding). We currently don't use that yet.

We're not even using  internally, outside of a few integration tests. So, we'll postpone the JDK 11 *requirement* (while supporting it nonetheless) to a later release, e.g. 3.13. We'll observe market share shifts. Currently Java 11's market share is a bit of a disappointment, so making it a requirement might be premature.
2019-07-26 15:18:18 +02:00
Knut Wannheden
4dfc457f7f [jOOQ/jOOQ#8984] Address potential NumberFormatException 2019-07-26 07:35:22 +02:00
Lukas Eder
95168c1e76 [jOOQ/jOOQ#8939] Handle __ prefix in file names 2019-07-25 17:26:33 +02:00
Lukas Eder
990bfa4663 [jOOQ/jOOQ#8939] Various fixes
- Fixed a bug when FlywayFileComparator compares non-flyway files
- Added a unit test
- Added examples to jOOQ-examples module as submodules
- Split flyway migration in one more migration file
- Check in generated sources
2019-07-25 15:51:37 +02:00
Lukas Eder
df390cf919
Merge pull request #8976 from yuecelm/feature/8939
[jOOQ/jOOQ#8939] Support Flyway file ordering in DDLDatabase
2019-07-25 14:43:51 +02:00
Mustafa Yücel
8767b8014d [jOOQ/jOOQ#8939] Support Flyway file ordering in DDLDatabase 2019-07-23 13:56:51 +02:00
Lukas Eder
7a3374f28d [jOOQ/jOOQ#8975] Log warning when user uses <inputSchema/> on a database
that does not support schemas
2019-07-23 13:23:18 +02:00
Lukas Eder
4e9a29dbd6 [jOOQ/jOOQ#8972] jOOQ-meta should query dictionary views for column
existence rather than the column itself
2019-07-23 12:35:09 +02:00
Lukas Eder
83a6711412 [jOOQ/jOOQ#8972] jOOQ-meta should query dictionary views for column existence rather than the column itself (WIP) 2019-07-22 11:27:01 +02:00
Lukas Eder
18998166bf [jOOQ/jOOQ#2026] Another internal class 2019-07-15 10:39:37 +02:00
Lukas Eder
cacc3e5a7c [jOOQ/jOOQ#8932] Use diamond operator in jOOQ code 2019-07-11 11:55:51 +02:00
Knut Wannheden
8b04f08e15 [jOOQ/jOOQ#8919] Implement formatting in MiniJAXB
The formatting logic is encapsulated by the new internal `XMLBuilder`
class which also required a new internal interface `XMLAppendable` which
is implemented by all XJC generated classes.

The XJC plugin was modified accordingly and all code was regenerated.

Also note that the `MiniJAXB` class was moved to package
`org.jooq.util.jaxb.tools`.
2019-07-10 11:26:58 +02:00
Knut Wannheden
d4e24de598 [jOOQ/jOOQ#7827] MiniJAXB should only omit optional elements
While marshalling MiniJAXB should only omit an XML element if the
corresponding @XmlElement annotation has `required = false`. With
`required = true` the output should instead have an empty XML element.
2019-07-09 17:55:22 +02:00
Lukas Eder
8c69160983 [jOOQ/jOOQ#7827] Prevent NPE in XMLDatabase#getSchemata0() 2019-07-09 17:52:51 +02:00
Knut Wannheden
9020e4eb42 [jOOQ/jOOQ#8914] Consistently use MiniJAXB 2019-07-09 14:34:17 +02:00
Lukas Eder
58954539cb [jOOQ/jOOQ#8900] Regenerated PostgreSQL information_schema code 2019-07-04 16:45:19 +02:00
Knut Wannheden
f8a6dfacf1 [jOOQ/jOOQ#8900] Make jOOQ compatible with Java 6
- Mostly surround pieces of code with [java-8] preprocessor tags
- Added ExceptionTools#sneakyThrow() which is used in MiniJAXB
2019-07-04 16:26:21 +02:00
Lukas Eder
514f2eda6d [jOOQ/jOOQ#5412] Reverted the feature 2019-07-03 15:27:09 +02:00
Knut Wannheden
c5c8d1d256 Fixed more Javadoc warnings in jOOQ-codegen and jOOQ-meta 2019-06-26 10:26:28 +02:00
Lukas Eder
5aee8a9b5d [jOOQ/jOOQ#5412] Generate a Record from POJO unmapper on generated
records
2019-06-18 17:04:54 +02:00
Lukas Eder
45c298a4bc [jOOQ/jOOQ#5412] Generate a Record to POJO mapper on generated records 2019-06-18 16:48:44 +02:00
Lukas Eder
7c94342142 [jOOQ/jOOQ#2059] Fixed regression
This newly introduced DISTINCT keyword needs to include all columns that appear in the ORDER BY clause. I'm not sure if the effect is still the desired one in MemSQL (nor why this even worked in MemSQL), but it doesn't work in MySQL this way.
2019-06-04 16:25:26 +02:00
Knut Wannheden
d751d6edc7 [#8547] Fix SQLITE comparisons against dialect
SQLITE should normally be compared against the dialect family.

Also replace some occurrences of `context.configuration().dialect()`
with `context.dialect()`.
2019-05-28 15:51:08 +02:00
Lukas Eder
e16465c56b [jOOQ/jOOQ#8693] Add support for generation of comments on HSQLDB schema objects 2019-05-27 13:16:13 +02:00
Knut Wannheden
85a1d1f31e [#2059] Remove some MemSQL related code 2019-05-21 14:56:49 +02:00
Knut Wannheden
35fc136643 [#2059] Add MemSQL support
Implement support for new dialect SQLDialect#MEMSQL. Excluded from the
support are stored procedures, MemSQL specific DDL keywords, MemSQL
specific DML (like REPLACE), and for the time being also the PIVOT
clause (see #8643).

Approved-by: Lukas Eder
2019-05-21 14:38:06 +02:00
Lukas Eder
fce9626b13 [jOOQ/jOOQ#8615] Missing NOTICE file from commons-lang 2019-05-21 12:23:17 +02:00
Knut Wannheden
58e3b64d85 [#8584] Use fetch(String, Object...) in SQLiteDatabase#loadPrimaryKeys()
Protect against the case of table names containing quotes.
2019-05-01 13:35:54 +02:00
Knut Wannheden
06a6c783ab [#8581] Explicitly specify column types for PRAGMA TABLE_INFO
Using SQLite driver version 3.27.2 the jOOQ code generator no longer
generates the default value for VARCHAR typed columns, due to how the
driver determines the column type. Thus the PRAGMA TABLE_INFO query now
specifies the column types up-front.
2019-05-01 13:35:26 +02:00
Knut Wannheden
726897cf1d [#8513] Fix potential NPE source in getConfiguredForcedType()
Fixes a potential NPE source in
AbstractDatabase#getConfiguredForcedType().
2019-04-23 14:15:32 +02:00
lukaseder
a7215a91ba [#8551] Support old SQLDialects only in commercial distributions 2019-04-18 16:11: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
66249dcfb7 [#7545] Fixed regression caused by unnecessary application of Filters 2019-04-17 14:18:09 +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
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
Knut Wannheden
a5d4c00b7a [#6971] Regenerated code from jooq-codegen-3.12.0.xsd 2019-04-10 16:25:51 +02:00
lukaseder
5832e45eaf [#6971] Added missing class 2019-04-10 14:40:37 +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
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
lukaseder
2785bc84ae [#8491] Remove unnecessary marker tokens in source code 2019-04-05 11:52:34 +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
a088bec1af [#8463] Add <includeCheckConstraints/> flag to code generator 2019-03-29 15:08:59 +01:00
lukaseder
8f7e2f0dbf [#8465] Add a new <logSlowResultsAfterSeconds/> code generation flag 2019-03-29 15:00:41 +01:00
lukaseder
f39e15be04 [#8464] Log slow result set fetching in code generator 2019-03-29 14:41:23 +01:00
lukaseder
2ea2d93736 [#8447] Add <sqlMatchesPartialQualification> 2019-03-26 10:54:54 +01:00
lukaseder
d31c34c91a [#8446] Add <sql> to <forcedType> to allow for matching columns with SQL 2019-03-26 10:36:30 +01:00