Commit Graph

2036 Commits

Author SHA1 Message Date
Mark Paluch
2c81eccb0a Prepare 3.2.6 (2023.1.6).
See #1767
2024-05-17 11:22:00 +02:00
Mark Paluch
61c6fcfd39 Polishing.
Reduce test element visibility.

See #1750
Original pull request: #1785
2024-05-15 14:56:52 +02:00
Mark Paluch
9e8e3ce64e Move AggregateReference converter registration into MappingJdbcConverter.
See #1750
Original pull request: #1785
2024-05-15 14:56:52 +02:00
Jens Schauder
284509a40f Reuse custom converters from AggregateReferenceConverters.
Let the AggregateReference converters now receive also custom converters as delegates.
Remove the ArrayToObjectConverter which just uses the first element of the array from the DefaultConversion service.

This does NOT solve the underlying problem, of having two DefaultConversionServices at work.
One is in the store conversion, one constructed in the AbstractRelationalConverter.
Although it looks like they get merged, the former contains converters, using that ConversionService as a delegate.

Attempts were made to move AggregateReferenceConverters out of the store converters and just register them directly,
but then no custom read/write targets are detected, leading to failed conversions.
The same problem prevents a registration in CustomConversions as a Function<ConversionService, GenericConverter> or similar, which would allow late registration.
The problem here is that custom read/write targets require the function to get evaluated, before custom read/write targets can be determined.

Closes #1750
Original pull request: #1785
2024-05-15 14:56:47 +02:00
Paul-Christian Volkmer
a03441598e Remove redundant code
createPersistentEntity(..) effectively only calls the overriden method.
It therefore can be deleted.

Remove error message no longer used.

Original pull request #1783
2024-04-30 09:16:39 +02:00
Mark Paluch
9b9508a35f Polishing.
Fix since version. Update Javadoc. Adjust visibility for subclassing usage.

See #1781
2024-04-29 11:35:22 +02:00
Mark Paluch
df601852fe Deprecate RowDocumentAccessor.document().
This method was never intended to be exposed (record-style accessor) as there is getDocument().

See #1781
2024-04-29 11:35:20 +02:00
chanhyeong-cho
110e3ee02e Remove duplicate declaration of document() accessor in RowDocument.
Closes #1781
2024-04-29 11:35:17 +02:00
Jens Schauder
a0a01a70b6 Fix typo in documentation example.
Closes #1782
2024-04-29 09:58:06 +02:00
Jens Schauder
792d773cbd Fix broken merge.
See #1721
Original pull request #1722
2024-04-24 15:24:59 +02:00
Jens Schauder
ecdf7039ed Remove check for constructor parameter names.
For Kotlin constructors and possibly others parameters maybe unnamed and still work with our infrastructure.

Closes #1762
2024-04-24 12:18:58 +02:00
Jens Schauder
13ed4baf45 Polishing.
Add author tags.

See #1721
Original pull request #1722
2024-04-23 12:04:43 +02:00
Mark Paluch
f50609f7b1 Performance improvements.
Introduce caching for configured RowMapper/ResultSetExtractor.

We now create RowMapper/ResultSetExtractor instances only once if they are considered static configuration.
A configured RowMapper ref/class is always static.
A configured ResultSetExtractor ref/class is static when the extractor does not accept a RowMapper or if the RowMapper is configured.

Default mappers or projection-specific ones require ResultSetExtractor recreation of the ResultSetExtractor is configured as Class.

Reuse TypeInformation as much as possible to avoid Class -> TypeInformation conversion.
Introduce LRU cache for DefaultAggregatePath to avoid PersistentPropertyPath lookups.
Introduce best-effort quoted cache for SqlIdentifier to avoid excessive string object creation.

Closes #1721
Original pull request #1722
2024-04-23 12:04:43 +02:00
Jens Schauder
9b41c1d236 Fix access of root property instead of child property.
When the child of a one-to-one relationship has an id, the value for that id gets read in the wrong way.
We get the column name for that id use that to access the value in the RowDocument.

This results in either no value at all being found or even worse, the value of a root entity with a property of same name being accessed.

This is fixed by using the full AggregatePath instead of just the property for accessing that value.

Closes #1684
Original pull request: #1775
2024-04-22 09:29:59 +02:00
Jens Schauder
b22ccad36d Fix loading of 2nd level collections.
Construction of the back reference assumed that the table holding the parent of the foreign key is the actual parent property.
This is now corrected by using the correct API to identify the ancestor which holds the id.

Closes: #1692
Original pull request: #1773
2024-04-18 10:28:39 +02:00
Mark Paluch
65bf64e3f5 After release cleanups.
See #1753
2024-04-12 10:17:29 +02:00
Mark Paluch
93fe8604ff Prepare next development iteration.
See #1753
2024-04-12 10:17:28 +02:00
Mark Paluch
0d5a9c036f Release version 3.2.5 (2023.1.5).
See #1753
2024-04-12 10:15:11 +02:00
Mark Paluch
0cda559b7f Prepare 3.2.5 (2023.1.5).
See #1753
2024-04-12 10:14:56 +02:00
Aaron Paterson
374ccc3bed Small documentation fix.
Improve grammar.
Remove redundant line.

Original pull request #1765
2024-04-11 09:23:29 +02:00
Mark Paluch
160c665f36 Upgrade to R2DBC Postgresql 1.0.5.RELEASE.
Closes #1763
2024-04-10 15:47:13 +02:00
Vitalii Mahas
7a4cc64fa1 Fix typo ignoreing -> ignoring
Original pull request #1756
2024-04-03 12:08:55 +02:00
Mark Paluch
f391bfd52d After release cleanups.
See #1741
2024-03-15 10:20:09 +01:00
Mark Paluch
66b5877df5 Prepare next development iteration.
See #1741
2024-03-15 10:20:08 +01:00
Mark Paluch
fd3ada182e Release version 3.2.4 (2023.1.4).
See #1741
2024-03-15 10:17:49 +01:00
Mark Paluch
0feade80bf Prepare 3.2.4 (2023.1.4).
See #1741
2024-03-15 10:17:31 +01:00
Mark Paluch
bc94d8b71f Upgrade to Netty 4.1.107.Final.
Closes #1749
2024-03-11 09:24:58 +01:00
Mourjo Sen
8946089fca Grammatical improvement in documentation.
This fixes a minor grammatical error.

Closes #1746
2024-03-04 15:18:15 +01: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
00d162eee5 After release cleanups.
See #1718
2024-02-16 13:53:53 +01:00
Mark Paluch
4f16e5f312 Prepare next development iteration.
See #1718
2024-02-16 13:53:51 +01:00
Mark Paluch
ea5a612dd2 Release version 3.2.3 (2023.1.3).
See #1718
2024-02-16 13:50:30 +01:00
Mark Paluch
544bde10a5 Prepare 3.2.3 (2023.1.3).
See #1718
2024-02-16 13:50:02 +01:00
Nick
6d988f9b7c Fix documentation grammar.
Replace "significant" with "significantly"

Closes #1731
Original pull request: #1735
2024-02-07 09:06:44 +01:00
Mark Paluch
f75ab2d40a Refine Artifactory build name.
See #1672
2024-01-31 15:15:59 +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
7f35619a0e After release cleanups.
See #1703
2024-01-12 10:54:33 +01:00
Mark Paluch
523b5e6091 Prepare next development iteration.
See #1703
2024-01-12 10:54:32 +01:00
Mark Paluch
ba143f8886 Release version 3.2.2 (2023.1.2).
See #1703
2024-01-12 10:51:32 +01:00
Mark Paluch
6c2bad0f11 Prepare 3.2.2 (2023.1.2).
See #1703
2024-01-12 10:50:45 +01:00
Mark Paluch
6de3b583c1 Upgrade to R2DBC Postgresql 1.0.4.RELEASE.
Closes #1716
2024-01-10 10:14:03 +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
Jens Schauder
134556ff72 Fix documenation.
Replace the deprecated `NamingStrategy.getReverseColumnName(PersistentPropertyPathExtension path)` with `getReverseColumnName(RelationalPersistentEntity<?> owner)`

Closes #1693
2024-01-04 09:29:12 +01:00
Jens Schauder
252ca6218f Nested tests now get properly executed.
See 9a00e62fe7
See #1681
2024-01-03 14:59:31 +01:00
Jens Schauder
00d23e65ec Properly delegate method calls for EscapingParameterSource.
Closes #1681
See #1682
2024-01-03 14:59:31 +01:00
Mark Paluch
b1002fe124 Extend license header copyright years to 2024.
See #1708
2024-01-02 13:55:08 +01:00