Commit Graph

58 Commits

Author SHA1 Message Date
Jens Schauder
004804aad8 Introduce @InsertOnlyProperty.
You may now annotate properties of the aggregate root with `@InsertOnlyProperty`.
Properties annotated in such way will be written to the database only during insert operations, but they will not be updated afterwards.

Closes #637
Original pull request #1327
2022-10-06 12:54:33 +02:00
Jens Schauder
e171d4b91b Remove non-Javadoc comments.
These are no longer serve their purpose.

Closes #1347
2022-10-05 15:34:11 +02:00
Jens Schauder
ea00369f07 Add support for factory methods.
R2DBC now supports the use of factory methods for entity creation.
Spring Data JDBC already does so via f326897950

Simply annotate a static factory method on your entity class with `@PersistenceCreator`.

Closes #1346
See https://github.com/spring-projects/spring-data-commons/issues/2476
See f326897950
2022-10-05 15:34:10 +02:00
Jens Schauder
f326897950 Removed deprecations.
Removed deprecated API and usasage of deprecated API.

Closes #1340
2022-09-28 12:02:46 +02:00
Spring Builds
3ab0731fe4 Prepare next development iteration.
See #1295
2022-09-19 14:39:01 +00:00
Spring Builds
22618431d8 Release version 3.0 M6 (2022.0.0).
See #1295
2022-09-19 14:15:28 +00:00
Mark Paluch
3f1dab93e4 Adopt to changed Mockk artifact name.
Closes #1326
2022-09-12 11:16:58 +02:00
Jens Schauder
bf356f561d Clarify documentation for @Modifying.
Modifying queries are executed directly against the database.
No events or callbacks get called.
Therefore also fields with auditing annotations do not get updated if they don't get updated in the annotated query.

Closes #970
2022-09-08 15:31:17 +02:00
Joshua Sattler
f5989e1cfc Simplify code in mapping example.
Original pull request #1319
2022-08-29 09:07:48 +02:00
Mark Paluch
b46e34263e 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 #1310
2022-08-18 12:06:03 +02:00
Mark Paluch
92e77a47c9 Retain element ordering in AfterConvertCallbacks.
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 #1307
2022-08-16 11:21:07 +02:00
Mark Paluch
e246cc4f59 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 #1306
2022-08-16 11:06:30 +02:00
Mark Paluch
0d1ba211c5 Polishing.
Reuse H2 dialect settings in R2DBC-specific H2 dialect.
Refactor ArrayColumns support classes, into toplevel-types. Let R2DBC H2 sublass the relational H2Dialect to decouple from Postgres.

See #1287
Original pull request #1297
2022-08-10 13:01:02 +02:00
dependabot[bot]
d4fe31a9e8 Upgrade to postgresql 42.4.1.
Bumps [postgresql](https://github.com/pgjdbc/pgjdbc) from 42.4.0 to 42.4.1.
- [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.4.0...REL42.4.1)

---
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 #1302
2022-08-08 09:43:45 +02:00
Jens Schauder
fcbecda414 Remove the namespace reference and links to it.
Closes #1290
See https://github.com/spring-projects/spring-data-commons/issues/2662
Original pull request #1298
2022-07-26 10:16:02 +02:00
Christoph Strobl
6b9f49e86a Prepare next development iteration.
See #1247
2022-07-15 15:30:49 +02:00
Christoph Strobl
92150f721d Release version 3.0 M5 (2022.0.0).
See #1247
2022-07-15 15:18:32 +02:00
Mark Paluch
3f256047fd Polishing.
Update tests to work with SQL server inserts.

See #1292
2022-07-15 09:08:15 +02:00
Mark Paluch
f442261936 Upgrade to R2DBC MSSQL 1.0.0.RC1.
Enable tests for SQL Server.

See #1292
2022-07-14 11:37:57 +02:00
Jens Schauder
6958157a7e Use TypeScanner instead of ClassPathScanningCandidateComponentProvider.
Closes #1288
2022-07-13 16:02:04 +02:00
Mark Paluch
df9cecbdcf Polishing.
Adopt to improved naming scheme for runtime hints.

See #1269
2022-07-13 15:03:41 +02:00
Mark Paluch
ee6c2c89b5 Upgrade to R2DBC 1.0.
Removed SQL Server and MariaDB tests for the time being until drivers are available.

Closes #1292
2022-07-13 12:10:04 +02:00
Christoph Strobl
1467d63f61 Simplify auditing setup
Use IsNewAwareAuditingHandler factory method to avoid exposing additional beans.

See: #1279
2022-07-08 11:21:37 +02:00
Mark Paluch
b71e3b9697 Polishing.
Refine name and visibility of runtime hints registrars.

See #1279
see #1269
2022-07-07 09:01:39 +02:00
Mark Paluch
70eca3a2ca Add support for R2DBC RelationalManagedTypes.
See #1279
2022-07-06 15:27:40 +02:00
Christoph Strobl
59a1761dbc Add AOT r2dbc repository support.
We now use the AOT infrastructure of Spring Framework 6 and data commons to provide AOT support building the foundation for native image compilation.
Additionally we register hints for GraalVM native image.
Also update r2dbc auditing configuration to avoid inner bean definitions.

See: #1279
2022-07-06 15:01:52 +02:00
Christoph Strobl
dd3a69c20d Adopt to Reactor 2022 changes.
Closes: #1285
2022-07-05 12:30:48 +02:00
Jens Schauder
ce68431b49 Upgrade SQL Server JDBC driver to 10.2.1.jre17
Closes #1284
2022-07-04 16:09:02 +02:00
Jens Schauder
09c3088a78 Upgrade MariaDb Docker image to 10.8.3
Closes #1282
2022-07-04 12:37:46 +02:00
Jens Schauder
3dc3f98ec2 Upgrade Oracle JDBC driver to the latest working version.
Turns out the latest working version for Spring Data JDBC is ojdbc8 19.15.0.0.1. ojdbc11 or later versions of ojdbc8 contain a bug that breaks batching.

Since Spring Data R2DBC only uses the driver for testing. fFor it the latest working version is ojdbc11 21.6.0.0.1.

Closes #1270
2022-06-22 16:13:16 +02:00
Jens Schauder
a263d992b7 Upgrade Oracle Docker image to version 21.3.0-slim
Closes #1268
2022-06-21 12:56:49 +02:00
Jens Schauder
0b686ef3a7 Upgrade PostgreSql Docker image to version 14.3
Closes #1267
2022-06-21 11:27:53 +02:00
Jens Schauder
e151a84d6e Upgrade PostgreSql JDBC driver to 42.4.0
Closes #1266
2022-06-21 09:49:38 +02:00
Jens Schauder
d40c540be5 Upgrade to mysql connector 8.0.29
Closes #1265
2022-06-21 09:38:53 +02:00
John Blum
483b30e8c2 Remove punctuation in Exception messages.
Closes #1259.
2022-06-08 12:16:37 -07:00
Christoph Strobl
b671f48a2c Prepare next development iteration.
See #1206
2022-05-13 10:53:24 +02:00
Christoph Strobl
4e82d9d496 Release version 3.0 M4 (2022.0.0).
See #1206
2022-05-13 10:44:01 +02:00
Mark Paluch
f6e7792094 Polishing.
Introduce Query.isLimited method to avoid magic numbers.

See #1233
Original pull request: #1233.
2022-04-29 11:06:40 +02:00
Robert Heim
76ed7e23e4 Do not override existing limit in R2dbcEntityTemplate.selectOne.
Closes #1233
2022-04-29 11:00:41 +02:00
Mark Paluch
1ae5174c4c Remove …ConverterOverride converters in favor of R2dbcCustomConversionsConfiguration converter filters.
Closes #1225
2022-04-20 14:34:49 +02:00
Mark Paluch
86e36b08f6 Prepare next development iteration.
See #1205
2022-03-22 14:07:37 +01:00
Mark Paluch
755dc05502 Release version 3.0 M3 (2022.0.0).
See #1205
2022-03-22 14:00:24 +01:00
Mark Paluch
8aeb9bfb97 Prepare next development iteration.
See #1132
2022-03-21 16:44:40 +01:00
Mark Paluch
7f2534a384 Release version 3.0 M2 (2022.0.0).
See #1132
2022-03-21 16:35:09 +01:00
Mark Paluch
2831685c9d Adopt to Spring R2DBC changes.
Update counts now return Long instead of Integer.

Closes #1198
2022-03-18 08:56:09 +01:00
Mark Paluch
ce83eacfd1 Upgrade to netty 4.1.75.Final.
See #1197
2022-03-18 08:43:06 +01:00
Mark Paluch
6d9cf19a8f Upgrade to R2DBC Borca-SR1.
Closes #1197
2022-03-18 08:42:51 +01:00
Mark Paluch
05e96557bd Associate value with isTrue/isFalse criteria operators.
We now associate a boolean value with both operators as those operators are rendered using equals comparison in the actual SQL text.

Orginal pull request #1188
2022-03-01 14:41:14 +01:00
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