Commit Graph

904 Commits

Author SHA1 Message Date
Oliver Drotbohm
99d2f62646 Adapt to changes in entity creation metadata APIs in Spring Data Commons. 2022-02-16 08:01:00 +01:00
Greg L. Turnquist
7a991ff7ee Update CI properties.
See #1132
2022-02-15 09:00:21 -06:00
Jens Schauder
31dc93a0e2 Polishing.
Original pull request #1166
2022-02-15 11:49:01 +01:00
Diego Krupitza
55b6180d12 Added reference documentation for Lock on derived queries.
The reference documentation now contains how to use `@Lock` on derived queries and what to expect from it.

Original pull request #1166
2022-02-15 11:49:00 +01:00
Jens Schauder
21a2228204 Fixes NPE in PersistentPropertyPathExtension.equals.
Closes #1164
2022-02-15 11:49:00 +01:00
Jens Schauder
606f63b2ab Polishing.
Adding references to issues on test annotations.
Made test methods package private.

See #1164
2022-02-15 11:49:00 +01:00
Jens Schauder
351ed47d7c Polishing.
Refactored the unit tests to include a negative case and to separate the different scenarios tested.

Removed the default LockMode from the Lock annotation.
I have the feeling that most users will assume an exclusive Lock when none is specified, but also don't want to request stronger locks than required.

Original pull request #1158
See #1041
2022-02-15 11:49:00 +01:00
Diego Krupitza
11a236402b Introduced pessimistic locks for derived queries.
Methods which use the derive query functionality now can be annotated with `@Lock` to used a given `LockMode`. Right now there are two different modes `PESSIMISTIC_READ` and `PESSIMISTIC_WRITE`. Based on the dialect the right select is generated. For example for HSQLDB `Select ... FOR UPDATE`.

See #1041
Original pull request #1158
2022-02-15 11:49:00 +01:00
Jan Michal
c0cd813f3d Fix a typo in the docs for query methods.
Original pull request #1163
2022-02-15 11:49:00 +01:00
Jens Schauder
4066df9cf9 Polishing.
Rename "null handling" to "null precedence".
This is somewhat inconsistent with commons null handling, but more descriptive.

Minor formatting.

Original pull request #1156
See #821
2022-02-15 11:49:00 +01:00
Chirag Tailor
60a59b61c1 Null precedence is now supported if the underlying database supports it.
Original pull request #1156
Closes #821
2022-02-15 11:48:59 +01:00
Jens Schauder
73a6b3390e 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-15 11:46:55 +01:00
Jens Schauder
14c5e3f1e5 Render windowing functions without arguments correctly.
Closes #1153
See #1019
2022-02-15 11:44:05 +01:00
Jens Schauder
38372544f3 Polishing.
See #1046
Original pull request #1144
2022-02-15 11:40:32 +01:00
Jens Schauder
7babd7ab86 Replaces broken test with a working one.
See #1046, #498
Original pull request #1144
2022-02-15 11:40:10 +01:00
Chirag Tailor
9aa67f5e51 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-02-15 11:39:52 +01:00
Jens Schauder
45b4092e8c Follow through with the split of CRUD repository and sorting repository.
See #1165
2022-02-11 11:18:20 +01:00
Mark Paluch
b485106de4 Polishing.
Extract docker and artifactory credentials into property file.

See #1151
2022-02-04 14:55:42 +01:00
Greg L. Turnquist
1dc986851f Externalize build properties.
See #1151.
2022-02-04 14:53:23 +01:00
Mark Paluch
d04373b5a8 After release cleanups.
See #1126
2022-01-14 14:43:22 +01:00
Mark Paluch
5a312d4b2d Prepare next development iteration.
See #1126
2022-01-14 14:43:19 +01:00
Mark Paluch
595d58b18a Release version 3.0 M1 (2022.0.0).
See #1126
2022-01-14 14:35:09 +01:00
Mark Paluch
b7b1d87603 Prepare 3.0 M1 (2022.0.0).
See #1126
2022-01-14 14:34:46 +01:00
Jens Schauder
07cef3f21a Moved JdbcValue
This avoids cyclic dependencies between mapping and conversion.

Closes #1062
See #1128
2022-01-14 09:31:13 +01:00
Jens Schauder
a5d584ec42 Remove Eclipse Non-Javadoc comments.
Closes #1120
2022-01-14 08:48:28 +01:00
Jens Schauder
4e8a404139 Polishing.
Setting Log level to WARN/INFO for relational.

See #1058
Original pull request #1107
2022-01-14 08:48:28 +01:00
Jens Schauder
4042522474 Reimplemented dependency tests using ArchUnit.
Moved RelationalAuditingCallback and JdbcArrayColumns to remove dependency cycle.

Closes #1058
Original pull request #1107
2022-01-14 08:48:28 +01:00
Mark Paluch
235d9bc196 Refine CI triggers.
See #1054
2022-01-14 08:48:28 +01:00
Jens Schauder
45c57acbb4 Fix JavaDoc.
Self closing <p/> tags cause build failures now.

Closes #1059
2022-01-14 08:48:28 +01:00
Jens Schauder
a75dba3d20 Moving off removed constructor of AuditHandler
See #1055
2022-01-14 08:48:28 +01:00
Jens Schauder
2646fd5bba Disabling Degraph DependencyTests.
See #1058
2022-01-14 08:48:28 +01:00
Jens Schauder
f6f9d7e22f Move baseline build to JDK17.
Closes #1057
2022-01-14 08:48:27 +01:00
Jens Schauder
f0bc1b179f Fixed inconsistent poms.
See: #1055
2022-01-14 08:48:27 +01:00
Jens Schauder
f32e4c2cbe Prepare Spring Data 3.0 branch.
Includes the upgrade to spring-data-commons:3.0.0

Closes #1055
2022-01-14 08:48:27 +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