Commit Graph

130 Commits

Author SHA1 Message Date
John Blum
b7855d010f Prepare next development iteration.
See #1614
2023-10-13 08:51:59 -07:00
John Blum
74ae9af708 Release version 3.2 RC1 (2023.1.0).
See #1614
2023-10-13 08:44:26 -07:00
Mark Paluch
5398b94020 Deprecate Basic…Converter infrastructure.
Merge basic converters into Mapping…Converters and introduce deprecated variant to provide guidance for migration off the deprecated types.

Cleanup no longer required code.

Original pull request #1618
See #1554
2023-10-13 10:28:18 +02:00
Mark Paluch
665ae6b5a8 Migrate R2DBC to read RowDocument.
Original pull request #1618
See #1554
2023-10-13 10:27:53 +02:00
Jens Schauder
88ab6b60ca Remove excludes for maven test execution.
Maven Surefire and Failsafe plugins by default do not run inner classes, no matter if they are `@Nested` or just plain static inner classes.

This change removes this default exclude.

Closes #1627
See https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#excludes
2023-09-28 14:21:03 +02:00
Mark Paluch
a555119f8b Polishing.
Remove Jetbrains annotation usage.

Simplify code, remove code that is commented out, extract methods, pass PersistentEntity as argument instead of creating instances that hold PersistentEntity as field to align the class lifecycle with its contextual usage.

Refactor AggregateReader lifecycle, use a single instance as there is no entity-specific state attached to AggregateReader.

Add Javadoc.

See #1448
Original pull request: #1622
2023-09-27 10:05:16 +02:00
Jens Schauder
f3bc0af8c4 Polishing.
Simplify ValueFunction mapping. Remove invariants of findBy SQL generation in favor of the Condition-based variant. Reduce visibility. Change return value of AggregateReader to List

See #1601
Original pull request: #1617
2023-09-26 14:36:47 +02:00
Jens Schauder
0fdeaebbee Add support for arbitrary where clauses in Single Query Loading.
Closes #1601
Original pull request: #1617
2023-09-26 14:36:46 +02:00
Mark Paluch
813fdf2a31 Prepare next development iteration.
See #1592
2023-09-15 15:06:53 +02:00
Mark Paluch
c8de948d3e Release version 3.2 M3 (2023.1.0).
See #1592
2023-09-15 15:06:53 +02:00
Mark Paluch
bd1c670d55 Add support for fluent limit(int) and scroll(OffsetScrollPosition) to Query by Example queries.
Closes #1609
2023-09-14 08:40:56 +02:00
valery1707
6d1d96681f Remove an extra level in the class hierarchy.
Closes #1574
2023-09-13 15:10:36 +02:00
Mark Paluch
d6d99571b1 Introduce MappingRelationalConverter.
Add sophisticated converter to read aggregates from a RowDocument including support for maps, collections, subdocuments, and embeddables considering registered converters.
Use ResultSetRowDocumentExtractor to extract result multi-sets into RowDocument and then later apply object mapping.

Original pull request #1604
Closes #1586
2023-09-08 16:04:12 +02:00
Mark Paluch
879984d2b6 Polishing.
Push JDBC-specific simple types into JdbcPostgresDialect instead of having these in the top-level dialect that shouldn't be tied to any driver technology.

Introduce profile to run Postgres tests only.
2023-09-06 14:54:09 +02:00
Mark Paluch
99a8b01809 Harmonize content.
Refactor content to a natural flow, remove duplications, extract partials.

See #1597
2023-09-01 11:14:02 +02:00
Mark Paluch
4202b090ed Migrate documentation to Antora.
Closes #1597
2023-08-31 11:56:42 +02:00
Mark Paluch
f71b41fd2c Correctly convert enum array values.
We now correctly convert array write values. Previously, enum arrays were converted to null as these fell through the entity conversion.

Closes #1593
2023-08-23 15:42:41 +02:00
Julia Lee
2b1d2c834c Prepare next development iteration.
See #1562
2023-08-18 08:59:38 -04:00
Julia Lee
cb7b4679c5 Release version 3.2 M2 (2023.1.0).
See #1562
2023-08-18 08:50:33 -04:00
Christoph Strobl
e9e21c5918 Update broken links in Javadoc.
Closes: #1578
2023-08-03 09:28:39 +02:00
Jens Schauder
d00e928db5 Introduce AggregatePath.
AggregatePath replaces PersistentPropertyPathExtension.
It gets created and cached by the RelationalMappingContext, which should be more efficient and certainly looks nicer.

Closes #1525
Original pull request #1486
2023-07-21 17:39:17 +02:00
Mark Paluch
1ccaaf3cd5 Prepare next development iteration.
See #1511
2023-07-14 14:57:11 +02:00
Mark Paluch
f6f4ad39a0 Release version 3.2 M1 (2023.1.0).
See #1511
2023-07-14 14:53:19 +02:00
Mark Paluch
28adfe0c32 Upgrade to latest R2DBC drivers.
Closes #1559
2023-07-14 10:21:10 +02:00
Jens Schauder
cf126d2d42 Remove lombok annotations.
Closes #1557
2023-07-10 14:57:19 +02:00
Mark Paluch
e2514a3454 Allow non-domain sort orders to be used with R2dbcQueryCreator.
Closes #1548
2023-06-30 10:42:55 +02:00
Mark Paluch
f1ece358a1 Add test to verify empty enum collection behavior.
See #1544
2023-06-28 12:02:14 +02:00
Mark Paluch
6b3819c6db Use snapshot and milestone repositories instead of libs-snapshot and libs-milestone.
Closes #1527
2023-06-06 09:59:33 +02:00
Kurt Niemi
5f4ef2ffcb Add support for schema creation using Liquibase.
We now support schema creation and schema migration by generating Liquibase changesets from mapped entities. We also support evolution of schema by comparing existing tables with mapped entities to compute differential changesets.

Closes #756
Original pull request: #1520
2023-06-06 08:51:16 +02:00
George Papadopoulos
ac80e51425 Use awaitSingle operator instead of awaitFirst.
Operators `awaitFirstXxx` are going to be deprecated. Also, awaitFirst operator has no value on Mono types.

Closes: #1355

Signed-off-by: George Papadopoulos <george.719pap@gmail.com>
2023-05-26 15:18:11 +02:00
Mark Paluch
bc70b0d435 Polishing.
Reformat code.

See #1512
Original pull request: #1513
2023-05-17 10:52:52 +02:00
Jens Schauder
e0a0bb2b5d Do not prefix unsafe orer by expressions with table prefix.
Such expressions now get passed on unchanged.

This also deprecates org.springframework.data.r2dbc.query.QueryMapper.getMappedObject(Sort, RelationalPersistentEntity<?>).
It was only used in tests and translates an Order into another Order, which sounds wrong.

Closes #1512
Original pull request: #1513
2023-05-17 10:52:48 +02:00
Christoph Strobl
999124763d Prepare next development iteration.
See #1498
2023-05-12 14:18:52 +02:00
Christoph Strobl
69ce8b7edf Release version 3.1 GA (2023.0.0).
See #1498
2023-05-12 14:14:39 +02:00
Jens Schauder
a26557e76b Introduce SqlSort.
SqlSort allows the specification of unsafe order-by-expressions.
Order-by-expressions that are not declared unsafe are only accepted when they
either match a property or consist only of digits, letters, underscore, dot, or parentheses.

 Closes #1507
2023-05-12 10:54:17 +02:00
Oleg Oshmyan
15980174af Remove unnecessary reification from Kotlin R2DBC extensions.
This allows calling the extensions from generic code that has erased types.

Original pull request #1496
2023-04-25 09:32:04 +02:00
Greg L. Turnquist
ffefc99e2e Prepare next development iteration.
See #1456
2023-04-14 11:59:59 -05:00
Greg L. Turnquist
4fd5d6c81d Release version 3.1 RC1 (2023.0.0).
See #1456
2023-04-14 11:54:02 -05:00
Mikhail2048
e106b2099b Migrated off deprecated PropertyPath methods.
Closes #1489
2023-04-12 11:08:54 +02:00
Mark Paluch
44f77215bf Reinstate integration tests for R2DBC MySQL.
Closes #1475
2023-04-11 10:50:40 +02:00
Greg L. Turnquist
ccd7f19073 Test against Java 20 on CI.
See #1462.
2023-04-04 16:16:27 -05:00
Jens Schauder
58a67ceb2a Polishing.
Added `@author` tags.
Undo the change in behaviour of getReference(IdentifierProcessing).

See #1110
Original pull request #1458
2023-03-23 10:48:31 +01:00
Kurt Niemi
18eda61f15 Deprecate redundant getReference(IdentifierProcessing) method.
Closes #1110
Original pull request #1458
2023-03-23 10:45:49 +01:00
Christoph Strobl
0bfed4042d Prepare next development iteration.
See #1430
2023-03-20 15:05:34 +01:00
Christoph Strobl
3ff271f100 Release version 3.1 M3 (2023.0.0).
See #1430
2023-03-20 15:01:48 +01:00
Mark Paluch
7341a02345 Reinstate support for mariadb-r2dbc.
Closes #1364
2023-03-16 15:51:37 +01:00
Mark Paluch
637d06a9a0 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 #1452
2023-03-15 16:46:01 +01:00
Jens Schauder
c7e7f3eced Reenable DependencyTests.
Closes #1441
2023-03-03 12:27:49 +01:00
Christoph Strobl
eac53196b6 Prepare next development iteration.
See #1429
2023-02-17 14:25:47 +01:00
Christoph Strobl
0cca3e817e Release version 3.1 M2 (2023.0.0).
See #1429
2023-02-17 14:22:31 +01:00