Commit Graph

884 Commits

Author SHA1 Message Date
Jens Schauder
97331f72e3 Replaces java.sql.Types constants with java.sql.SQLType values.
java.sql.Types constants are int values and therefore make it tedious to read and debug the code.
SQLType values are mostly enum constants which are much nicer to use.

Original pull request #1142
2022-02-04 13:26:54 +01:00
Jens Schauder
a132d432e8 Render windowing functions without arguments correctly.
Closes #1153
See #1019
2022-02-02 15:31:50 +01:00
Greg L. Turnquist
0dcf12c83c Externalize build properties.
See #1151.
2022-01-31 16:41:24 -06:00
Jens Schauder
cef041f683 Polishing.
See #1046
Original pull request #1144
2022-01-31 15:58:09 +01:00
Jens Schauder
45e15b1593 Replaces broken test with a working one.
See #1046, #498
Original pull request #1144
2022-01-31 15:42:57 +01:00
Chirag Tailor
c4933c0be9 Support element conversion of array results.
This is achieved by passing the full availabe type information of the conversion target to the conversion service.

This broke a test which wasn't functional in the first place which becomes obvious when adding the proper assertion.

Closes #1046
Original pull request #1144
2022-01-31 15:39:06 +01:00
Christoph Strobl
eee773ea82 After release cleanups.
See #1131
2022-01-18 09:21:32 +01:00
Christoph Strobl
dce0e36c90 Prepare next development iteration.
See #1131
2022-01-18 09:21:29 +01:00
Christoph Strobl
76ece50f2b Release version 2.4 M2 (2021.2.0).
See #1131
2022-01-18 09:09:34 +01:00
Christoph Strobl
d879f21f57 Prepare 2.4 M2 (2021.2.0).
See #1131
2022-01-18 09:08:59 +01:00
Christoph Strobl
cb5e3271a4 After release cleanups.
See #1088
2022-01-14 11:08:02 +01:00
Christoph Strobl
51ffa1c59f Prepare next development iteration.
See #1088
2022-01-14 11:07:59 +01:00
Christoph Strobl
38a8089cb5 Release version 2.4 M1 (2021.2.0).
See #1088
2022-01-14 10:58:16 +01:00
Christoph Strobl
c5df8f3d1c Prepare 2.4 M1 (2021.2.0).
See #1088
2022-01-14 10:57:50 +01:00
Jens Schauder
794b031507 Prepared move of JdbcValue to mapping.
This is to avoid dependency cycles between mapping and conversion.

Closes #1128
2022-01-14 08:45:05 +01:00
Jens Schauder
09f78c4786 Add JdbcValue as a simple type.
Closes #1122
2022-01-12 11:45:36 +01:00
Jens Schauder
0388315ea5 Adds support for windowing functions.
This allows us to use analytic functions aka windowing functions in generated select statements.

Closes #1019
2021-12-17 16:38:07 +01:00
Jens Schauder
1acb66645d Fix missing class issue with H2 version 2.0.202
With older versions H2 returned a proprietary  instance of `TimestampWithTimeZone` from `ResultSet.getObject()`.
We used to support the conversion of that to an `OffsetDateTime`.

With the most recent versions `TimestampWithTimeZone` is no longer part of the H2 driver, and we only register the converter when we encounter older versions of H2.

Closes #1114
See https://github.com/h2database/h2database/pull/1359
2021-12-17 09:15:55 +01:00
Jens Schauder
ee1f420d81 Polishing.
Original pull request #1097
2021-12-07 15:22:57 +01:00
Charles
af72307d4b Fix Flaky Tests.
Original pull request #1097
2021-12-07 15:02:27 +01:00
Jens Schauder
9fc74826ff Polishing.
Removed jetbrains annotation.
Removed attempt to cache annotation lookup.
Those lookups are already cached and obtaining them in the constructor causes overhead when they aren't requested at all.
Limit the use of Optional.

See #1099
Original pull request #1108
2021-12-07 14:11:44 +01:00
Mikhail-Polivakha
d12146d78c Support specification of a schema in Column annotations.
Closes #1099
Original pull request #1108
2021-12-07 11:08:57 +01:00
Jens Schauder
cdff3850ae Migrate off Slf4J to JCL.
Closes #1091
Original pull request #1092
2021-12-07 10:58:11 +01:00
Jens Schauder
4ef014246b Polishing.
Removing final on local variable.

See #1065
Original pull request #1085
2021-12-07 10:43:16 +01:00
Jens Schauder
2fc35f4ced Postgres geometric types are considered simple.
Closes #1065
Original pull request #1085
2021-12-07 10:42:50 +01:00
조찬형[Plasma]
e637190ee8 Fix broken links in documentation.
Closes #954
Original pull request #1109
2021-12-07 10:19:03 +01:00
Jens Schauder
aa39f3524e Disable broken part of DependencyTests.
See #777
See #1105
2021-12-01 13:42:54 +01:00
Jens Schauder
61c6438bc3 Polishing.
Simplified the code structure.
Ensured backward compatibility by recreating some methods often immediately deprecating them.

Moved new classes to the places where they belong, so that the package ...core.sql.render depends on ...core.dialect and not the other way round.
This causes dependency cycles because dependencies in the other direction already exists.
This will be properly fixed by #1105.
For now the offending classes are ignored by the DependencyTests.

See #777
See #1105

Polishing
2021-12-01 13:39:54 +01:00
Mikhail-Polivakha
7551cbd763 Support inserts for id only entities.
This broke in the past for some databases that do not support empty value lists.

Closes #777
Original pull request #1047
2021-11-29 15:24:24 +01:00
Jens Schauder
a2a5953cda Fixing a typo in JavaDoc.
See #1090
2021-11-17 15:52:07 +01:00
Jens Schauder
7138f6ee35 After release cleanups.
See #1070
2021-11-12 10:59:43 +01:00
Jens Schauder
7dc249d117 Prepare next development iteration.
See #1070
2021-11-12 10:59:41 +01:00
Jens Schauder
5040f949c9 Release version 2.3 GA (2021.1.0).
See #1070
2021-11-12 10:49:36 +01:00
Jens Schauder
33c8212a58 Prepare 2.3 GA (2021.1.0).
See #1070
2021-11-12 10:49:15 +01:00
Mark Paluch
66067a553e Polishing.
Reformat code. Consistently use String.format(…) instead of string concatenation.

See #1078
2021-11-08 11:31:10 +01:00
Jens Schauder
e9e07bd4a3 Render LOCK clause through SelectRenderContext.
Closes #1078
2021-11-08 11:20:55 +01:00
Mark Paluch
7e7e9d59c4 Polishing.
Reformat code.

See #1007
Original pull request: #1079.
2021-11-08 11:07:28 +01:00
Jens Schauder
bd8b3c63d9 Conditions are Expressions.
Selection of condition expressions yielding a boolean value is supported by some databases.

Closes #1007
Original pull request: #1079.
2021-11-08 11:05:29 +01:00
Mark Paluch
239f8c75bd Polishing.
Use column aliases in order-by/expressions when column is aliased. Reduce method visibility in tests.

Closes #968
Original pull request: #1080.
2021-11-08 10:22:07 +01:00
Jens Schauder
7d1ed85cbe Use fully qualified names in ORDER BY clause.
Closes #968
Original pull request: #1080.
2021-11-08 10:22:03 +01:00
Jens Schauder
bc164cd4fb Slightly simplified an example.
Removed superfluous `@Autowired` and made the constructor package private.

Closes #1072
2021-11-05 11:32:06 +01:00
Jens Schauder
baee76a46d Make Oracle tests work with Testcontainers 1.16.2.
The new Testcontainers version comes with a standard Oracle image configured and doesn't work with the one we used so far.
Making the standard image work required some tweaks to the setup so that the test user has the required privileges.

Closes #1081
2021-11-05 09:20:16 +01:00
Mark Paluch
b1b5fe90da Polishing.
Remove unecessary toString calls. Make Cast.create public to align with other factory methods. Fix AbstractSegment.toString

See #1066
Original pull request: #1071.
2021-10-25 14:19:41 +02:00
Jens Schauder
cf39fa2cfb Adds a CAST expression to the SQL DSL.
Example: Expressions.cast(table_user.column("name"),"VARCHAR2")

Also adds a toString to AbstractSegment to avoid stack overflows.

Closes #1066
Original pull request: #1071.
2021-10-25 14:19:41 +02:00
Mark Paluch
b2c45094fb After release cleanups.
See #1052
2021-10-18 13:55:41 +02:00
Mark Paluch
546d7dccda Prepare next development iteration.
See #1052
2021-10-18 13:55:38 +02:00
Mark Paluch
a8fc77b14c Release version 2.3 RC1 (2021.1.0).
See #1052
2021-10-18 13:48:13 +02:00
Mark Paluch
bf4944b38f Prepare 2.3 RC1 (2021.1.0).
See #1052
2021-10-18 13:47:46 +02:00
Peter Luladjiev
101b3c8d47 Fix typo in Query Methods documentation.
Closes #1064
2021-10-13 14:18:16 +02:00
Mark Paluch
c372eb8fe2 Upgrade to Maven Wrapper 3.8.3.
See #1067
2021-10-11 14:30:22 +02:00