Commit Graph

101 Commits

Author SHA1 Message Date
Tran Ngoc Nhan
9a7f209a94 Polishing.
Original pull request #1894
2024-09-23 09:22:24 +02:00
Sanghyuk Jung
904a71a8a2 Remove duplicated "the" in JavaDoc.
Original pull request #1840
2024-08-02 13:23:34 +02:00
Mark Paluch
463e3290ef Fix Javadoc build.
Remove package-info for package without sources. Remove ci profile from initial build steps to avoid duplicate tasks. Remove unused asciidoctor plugin.

See #1742
2024-02-20 09:32:33 +01:00
Mark Paluch
1397d514fb Read properties for DTO projections only once.
We now skip property population for properties that are populated through an entity creator (constructor/factory method).

Closes #1725
2024-01-29 09:00:17 +01:00
Mark Paluch
a103d03acb Polishing.
Reformat code.

See #1723
2024-01-25 16:24:05 +01:00
Sebastian Wieland
7bc07b60b8 Fix R2dbcEntityTemplate.getRowsFetchSpec(…) to use the correct Converter for result type conversion.
Closes #1723
2024-01-25 16:24:05 +01:00
Mark Paluch
764b9b2e29 Polishing.
Add Geometry super-type only as subtypes are considered simple types already. Ensure reflective simple type AOT registration.

Original pull request: #1713
See #1711
2024-01-08 13:39:31 +01:00
Pete Setchell
17bfe4a579 Consider JTS geometry types as simple types.
Original pull request: #1713
Closes #1711
2024-01-08 13:39:31 +01:00
Mark Paluch
c80873019c Consider registered converters using Row and RowDocument as source.
We now consider converters for RowDocument. Additionally, we reinstated conversion from R2DBC's Row type into entities as that converter functionality got lost during the converter revision.

Closes #1710
2024-01-04 15:00:50 +01:00
Mark Paluch
b1002fe124 Extend license header copyright years to 2024.
See #1708
2024-01-02 13:55:08 +01:00
Mark Paluch
58d344a1a9 Consider io.r2dbc.spi.Parameter as simple type.
We now consider R2DBC's Parameter as simple type to avoid entity handling.

Closes #1696
2023-12-13 08:39:29 +01:00
Mark Paluch
bca5b1b4ac Fix interface projection for entities that implement the interface.
Using as with an interface that is implemented by the entity, we no longer attempt to instantiate the interface bur use the entity type instead.

Closes #1690
2023-12-06 15:29:12 +01:00
Mark Paluch
40ba2c99bf Add test to verify interface projections through R2dbcEntityTemplate.
See #1690
2023-12-06 10:26:08 +01:00
Mark Paluch
0da08e7d3a Polishing.
Switch to spaces.

See #1690
2023-12-06 10:22:11 +01:00
Mark Paluch
1ba80a6244 Use Converter-based projection for R2DBC repository queries.
Previously, we instantiated the underlying entity. Now, we either read results directly into the result type or use a Map-backed projection.

Closes #1687
2023-12-05 15:46:37 +01:00
Mark Paluch
f9c6aaeec7 Create PartTree against the domain type.
We now derive queries against the domain type and no longer using the result type to ensure query mapping and query creation against the domain type.

Closes #1688
2023-12-05 15:46:37 +01:00
Jens Schauder
72bbcc4fc4 Switch to Testcontainers Oracle Free.
Timeout increased from the default because that cause problems on CI.
Brought SD JDBC now uses `ojdbc11` as R2DBC.

Closes #1665
Original pull request #1668
2023-11-20 15:32:16 +01:00
Mark Paluch
003531216a Polishing.
Fix line breaks.

See #1647
2023-11-06 10:35:16 +01:00
Mark Paluch
9ffbfb6f99 Improve count and exists query projections.
We now use COUNT(*) and SELECT 1 for count respective exists queries to enable database optimizers instead of using the key columns.

Closes #1647
2023-11-06 10:35:05 +01:00
Mark Paluch
5312731623 Reject Limit parameter using String-based queries.
Document limitations, add test cases for derived queries.

Closes #1654
2023-11-02 09:26:43 +01: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
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
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
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
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
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
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
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
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
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