Commit Graph

1583 Commits

Author SHA1 Message Date
Jens Schauder
eabcee7c4e Polishing.
Standardized GitHub references of tests.

Original pull request spring-projects/spring-data-r2dbc/pull/691
2022-02-23 11:00:55 +01:00
Jens Schauder
36c332bf87 Polishing.
Refactored the assertions towards a custom assertion class, taking care of limited parsing of the generated SQL statements.

Original pull request spring-projects/spring-data-r2dbc/pull/691
2022-02-23 11:00:55 +01:00
Auzel
15f46e42c2 Fixes flaky tests in PartTreeR2dbcQueryUnitTests.java
The order of selected columns depended on the nondeterministic behavior of getDeclaredFields.

Original pull request spring-projects/spring-data-r2dbc/pull/691
2022-02-23 10:49:04 +01:00
Jens Schauder
56ece619d2 Polishing.
See spring-projects/spring-data-jdbc/issues/1041
Original pull request spring-projects/spring-data-r2dbc/pull/720
2022-02-22 16:17:22 +01:00
Diego Krupitza
910c34014d 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 H2 `Select ... FOR UPDATE`.

Closes spring-projects/spring-data-jdbc#1041
See #643,
Original pull request spring-projects/spring-data-jdbc/pull/1158
2022-02-22 16:17:22 +01:00
Jens Schauder
4edb39800e Move Lock to relational module.
This allows both Spring Data R2DBC and Spring Data JDBC to use the same annotation.

See spring-projects/spring-data-jdbc/issues/1041, spring-projects/spring-data-r2dbc/pull/720, spring-projects/spring-data-jdbc/pull/1158
2022-02-22 16:17:22 +01:00
Mark Paluch
efb48bc222 Update CI properties.
See #1132
2022-02-22 14:10:51 +01:00
Jens Schauder
a4e04dde56 Avoid conversion when return value is null.
Closes #1167
2022-02-21 15:16:28 +01:00
Mark Paluch
71cad5ff2c Polishing.
Align Oracle container versions for testing.

See #1179
2022-02-21 13:31:57 +01:00
Diego Krupitza
66d1e54179 Remove unnecessary toString() call.
There were few explicit `toString()` calls that are not needed, since `toString()` will be called by default.

Original pull request #1172
2022-02-21 11:11:52 +01:00
Diego Krupitza
7868dff4b8 StringBuilder can be replaced with String concatenation.
In this case the usage of `StringBuilder` has no additional benefit, since it is not inside a loop where the JVM may have problems detecting String concatenation that can be optimized. The usage of "simple" String concatenation makes the code more readable and the code will be automatically optimised by the compiler.

Original pull request #1173
2022-02-21 11:00:57 +01:00
Mark Paluch
9a42776381 Import Spring Data R2DBC module into Spring Data Relational.
Closes #1179
2022-02-21 10:43:01 +01:00
Mark Paluch
824885e2ad Add 'spring-data-r2dbc/' from commit '6289f4de9bf89f1d371ea3ae8810865a20beca9c'
git-subtree-dir: spring-data-r2dbc
git-subtree-mainline: c1c38a71d6
git-subtree-split: 6289f4de9b
2022-02-21 10:26:05 +01:00
Christoph Strobl
6289f4de9b Update copyright year to 2022.
See: #722
2022-02-17 14:45:17 +01:00
Christoph Strobl
c1c38a71d6 Update copyright year to 2022.
See: #1168
2022-02-17 13:56:04 +01:00
Oliver Drotbohm
4218d5a321 Adapt to changes in entity creation metadata APIs in Spring Data Commons. 2022-02-16 08:04:35 +01:00
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
Greg L. Turnquist
0d3dbeba70 Update CI properties.
See #706
2022-02-15 09:00:20 -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
a17e4bba49 Follow through with the split of CRUD repository and sorting repository.
Closes #719
See spring-projects/spring-data-commons#2537
2022-02-11 11:43:31 +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
dependabot[bot]
74ecdb5de9 Upgrade postgresql to 42.2.25.
Bumps [postgresql](https://github.com/pgjdbc/pgjdbc) from 42.2.5 to 42.2.25.
- [Release notes](https://github.com/pgjdbc/pgjdbc/releases)
- [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pgjdbc/pgjdbc/compare/REL42.2.5...REL42.2.25)

---
updated-dependencies:
- dependency-name: org.postgresql:postgresql
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Closes #716
2022-02-10 10:56:06 +01:00
Mark Paluch
7c3ff05cb5 Upgrade tests to use R2DBC 0.9.
See #710
2022-02-07 11:14:25 +01:00
Mark Paluch
907f4865b5 Upgrade to R2DBC 0.9.
Remove MySQL support as the MySQL driver is not yet published. Update groupId for Postgres driver to org.postgresql.

See #710
2022-02-07 11:00:30 +01:00
Mark Paluch
b951610fc3 Update CI properties.
See #706
2022-02-07 09:32:14 +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
ae46cff781 Upgrade to netty 4.1.73.Final.
Closes #717
2022-02-04 09:07:19 +01:00
Mark Paluch
b3c33ab428 Upgrade to R2DBC Spec 0.9 (Borca release train).
Closes #710
2022-02-04 09:07:17 +01:00
Mark Paluch
b06c90cfa1 Upgrade to Oracle JDBC driver 21.4.0.0.1.
See #710
2022-02-04 09:06:58 +01:00
Mark Paluch
fd342b9f8c Polishing.
Use AUTO_INCREMENT instead of serial data type for H2 tests.

See #710.
2022-02-04 09:06:30 +01:00
Mark Paluch
abf597c6f3 Polishing.
Extract docker credentials into properties file.

See #715
2022-02-03 13:21:55 +01:00
Greg L. Turnquist
c427efc1ac Externalize build properties.
See #715.
2022-02-03 13:17:23 +01:00
Mark Paluch
dbc4365eef Remove deprecated DatabaseClient, connectionfactory package and other deprecated code
Removal of the connectionfactory package and deprecated core classes that were migrated into Spring Framework R2DBC.

Closes #712
2022-01-28 10:31:42 +01:00
Mark Paluch
eab9a89082 Guard access to identifier property.
We now check in all places where we optionally use the Id property that an entity actually has an Id property and fall back leniently if the entity doesn't have an identifier property.

Also, we use IdentifierAccessor consistently if the property is an identifier property.

See #711
2022-01-20 13:43:43 +01:00
Mark Paluch
1cd5bc835a Polishing.
Reformat code. Add author tags.

See: #698
Original pull request: #708.
2022-01-17 11:00:19 +01:00