Commit Graph

502 Commits

Author SHA1 Message Date
Mark Paluch
2404942b7a Prepare 1.5.13 (2021.2.13).
See #828
2023-06-16 14:55:58 +02:00
Christoph Strobl
3bcd100521 Prepare 1.5.12 (2021.2.12).
See #826
2023-05-12 10:17:43 +02:00
Greg L. Turnquist
10d2efebb8 Prepare 1.5.11 (2021.2.11).
See #821
2023-04-14 09:19:15 -05:00
Christoph Strobl
0936179f9c Prepare 1.5.10 (2021.2.10).
See #820
2023-03-20 13:42:32 +01:00
Mark Paluch
ba4e49a297 Apply custom converter for Collection-like values in queries.
We now apply converters only for Collection-like values and no longer to Iterable types.

Closes #819
2023-03-15 16:45:19 +01:00
Mark Paluch
aec5f16139 Prepare 1.5.9 (2021.2.9).
See #816
2023-03-03 10:18:47 +01:00
Mark Paluch
0c818dcf96 Prepare 1.5.8 (2021.2.8).
See #811
2023-02-17 10:08:08 +01:00
Mark Paluch
5b0e87fdab Remove superfluous Arrays.fill(…) from ArrayUtils.getArrayClass(…).
Closes #813
2023-01-30 15:40:51 +01:00
Mark Paluch
70825592fd Prepare 1.5.7 (2021.2.7).
See #802
2023-01-13 10:32:31 +01:00
Mark Paluch
b6a464d6d7 Fix BLOB reading and writing.
We now correctly consider ByteBuffer, Clob, and Blob types as additional types to read and write blob data.

Closes #809
2023-01-10 15:23:46 +01:00
Mark Paluch
1d3ec3b293 Extend license header copyright years to 2023.
See #808
2023-01-02 09:52:01 +01:00
Mark Paluch
8d4ec7ed5a Prepare 1.5.6 (2021.2.6).
See #793
2022-11-18 10:44:44 +01:00
Mark Paluch
ea000275e2 Fix empty collection conversion.
We now consider the target type for empty collections.

Closes #796
2022-11-11 15:57:51 +01:00
Spring Builds
c35b3371b4 Prepare 1.5.5 (2021.2.5).
See #792
2022-10-13 13:21:31 +00:00
Spring Builds
ae13c995c3 Prepare 1.5.4 (2021.2.4).
See #786
2022-10-13 08:57:03 +00:00
Spring Builds
7a9df60d55 Prepare 1.5.3 (2021.2.3).
See #769
2022-09-19 11:36:19 +00:00
Mark Paluch
5c8dc09dc0 Fix COUNT/EXISTS projections for entities without an identifier.
We now issue a COUNT(1) respective SELECT 1 for COUNT queries and EXISTS queries for entities that do not specify an identifier.

Previously these query projections could fail because of empty select lists.

Closes #773
2022-08-18 11:54:24 +02:00
Mark Paluch
dd2d94e2bd Retain element ordering in entity callbacks.
We now use concatMap on result Fluxes to retain the object order. Previously, we used flatMap on a flux that has led to changes in element ordering.

Closes #777
2022-08-16 11:19:44 +02:00
Mark Paluch
39216db553 Fix parameter binding of reused named parameters using anonymous bind markers.
We now properly bind values for reused named parameters correctly when using anonymous bind markers (e.g. ? for MySQL). Previously, the subsequent usages of named parameters especially with IN parameters were left not bound.

Closes #778
2022-08-16 11:11:33 +02:00
Christoph Strobl
2d110063ff Prepare 1.5.2 (2021.2.2).
See #764
2022-07-15 11:07:50 +02:00
Mark Paluch
787daa0789 Prepare 1.5.1 (2021.2.1).
See #759
2022-06-20 11:29:05 +02:00
Christoph Strobl
af1c427779 Prepare 1.5 GA (2021.2.0).
See #753
2022-05-13 10:04:20 +02:00
Robert Heim
6583fe03f2 Do not override existing limit in R2dbcEntityTemplate.selectOne.
Closes #758
2022-04-29 11:08:51 +02:00
Mark Paluch
386e04bee3 Deprecate R2dbcConverters.getOverrideConvertersToRegister() and its converters.
…OverrideConverters are no longer required as converters are filtered using ConverterConfiguration.

Closes #750
2022-04-20 14:26:14 +02:00
Christoph Strobl
7cd74048ad Prepare 1.5 RC1 (2021.2.0).
See #744
2022-04-19 11:10:14 +02:00
Greg L. Turnquist
1da1b3308c Prepare 1.5 M4 (2021.2.0).
See #725
2022-03-21 10:07:09 -05:00
Mark Paluch
c95dba2022 Disable package cycle tests.
Property Converters introduced a cycle so we're disabling the tests for now as we cannot resolve these from here.

See #725
2022-03-21 08:51:05 +01:00
Mark Paluch
2b0d9823e6 Correctly apply bind value for isTrue/isFalse criteria.
We now translate isTrue/isFalse criteria values if their actual value is not provided.

The more correct approach would be setting a value in Criteria.

Closes #733
2022-02-28 15:10:25 +01:00
Jens Schauder
09c0fc8883 Polishing.
Standardized GitHub references of tests.

Original pull request spring-projects/spring-data-r2dbc/pull/691
2022-02-23 10:33:21 +01:00
Jens Schauder
859c01162a 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 10:27:04 +01:00
Auzel
2d53c3fcce 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:26:50 +01:00
Mark Paluch
3a64e3b1b9 Prepare 1.5 M3 (2021.2.0).
See #709
2022-02-18 11:08:46 +01:00
Christoph Strobl
6803115e9d Update copyright year to 2022.
See: #722
2022-02-17 14:40:16 +01:00
Oliver Drotbohm
b2d5a1f35c Adapt to changes in entity creation metadata APIs in Spring Data Commons. 2022-02-15 16:08:38 +01:00
Mark Paluch
4da260e4e5 Upgrade tests to use R2DBC 0.9.
See #710
2022-02-07 11:20:09 +01:00
Mark Paluch
cf3f7c251c Upgrade to Oracle JDBC driver 21.4.0.0.1.
See #710
2022-01-27 09:21:49 +01:00
Mark Paluch
81ccfb3d12 Disable Oracle integration tests.
Disabling tests until the driver no longer throws NullPointerException on Statement.returnGeneratedKeys().

See #710
2022-01-26 10:24:51 +01:00
Mark Paluch
cd0e807840 Polishing.
Use AUTO_INCREMENT instead of serial data type for H2 tests.

See #710.
2022-01-25 11:18:34 +01:00
Mark Paluch
36a1400e55 Build against Borca snapshots.
Remove MySQL support as the MySQL driver is not yet published. Update groupId for Postgres driver to org.postgresql.

See #710
2022-01-24 15:50:54 +01:00
Mark Paluch
8893a4650b 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:36:11 +01:00
Christoph Strobl
33287918c9 Prepare 1.5 M2 (2021.2.0).
See #705
2022-01-18 09:09:00 +01:00
Mark Paluch
bc861e6864 Polishing.
Reformat code. Add author tags.

See: #698
Original pull request: #708.
2022-01-17 10:55:24 +01:00
Manousos Mathioudakis
403ae5803f Fix isTrue/isFalse comparison for SQL server by using bind values.
Closes: #698
Original pull request: #708.
2022-01-17 10:54:38 +01:00
Christoph Strobl
12dc989302 Prepare 1.5 M1 (2021.2.0).
See #688
2022-01-14 10:57:50 +01:00
Mark Paluch
2753a1cc34 Adopt to Mockito changes.
Closes #700
2022-01-04 14:50:18 +01:00
Mark Paluch
7c2942e459 Reflectively invoke RowMetadata.getColumnMetadatas.
We now use reflection to call RowMetadata.getColumnMetadatas to avoid NoSuchMethodError when using R2DBC 0.9 as the return type has changed in newer R2DBC versions.

Closes #699
2022-01-03 16:28:03 +01:00
Mark Paluch
7bd27c6a51 Unwrap Parameter objects when used within PreparedOperation.
We now unwrap Parameter objects containing type and value for bind parameters when binding these from within a PreparedOperation to a statement.

PreparedOperation objects are expected to use low-level R2DBC API (bind, bindNull) instead of using the Parameter abstraction. Previously, we tried to bind Parameter objects to R2DBC Statements and that has failed as drivers cannot encode Spring's Pararameter type.

Closes #694
2021-12-14 14:45:22 +01:00
Mark Paluch
b827915ceb Polishing.
Remove unused imports. Use more explicit lambda parameter naming.

Also, adopt tests to changed Spring Data Relational SQL generation.

Original pull request: #690.
See #689
2021-12-07 09:23:20 +01:00
JoseLion
25323caf2b Use BeforeConvert callback result on non-versioned updates.
Previously, we used the original entity.

Closes #689
Original pull request: #690.
2021-12-07 09:22:30 +01:00
Jens Schauder
3a3a9d6bdd Prepare 1.4 GA (2021.1.0).
See #668
2021-11-12 10:49:15 +01:00