Commit Graph

2250 Commits

Author SHA1 Message Date
Christoph Strobl c254f1d7e5 fix preferred constructor lookup 2020-11-12 18:42:00 +01:00
Christoph Strobl f8daa19fe9 Hacking: resolve annotations on parent & add map type information
inheritance might be part of the annotation processor once done.
2020-11-12 18:42:00 +01:00
Christoph Strobl 8a3343ae12 Hacking: some unit test to back the integration ones in sd-mongodb 2020-11-12 18:42:00 +01:00
Christoph Strobl a0a85cb6df Hacking: DomainTypeMetadata 2020-11-12 18:42:00 +01:00
Christoph Strobl 593cda3d6b Prepare issue branch. 2020-11-12 18:42:00 +01:00
Mark Paluch 1512e878c4 DATACMNS-1823 - Updated changelog. 2020-11-11 12:34:36 +01:00
Mark Paluch cd482bf9e3 DATACMNS-1827 - Polishing.
Consider Qualifier meta-annotated Sort and Pageable method parameters. Add author tag.

Original pull request: #473.
2020-11-11 09:30:06 +01:00
Vedran Pavic e758dd3a84 DATACMNS-1827 - Pageable and Sort arguments with empty qualifier value shouldn't be prefixed with delimiter.
Original pull request: #473.
2020-11-11 09:30:01 +01:00
Mark Paluch 1d146da048 DATACMNS-1828 - Revert custom collection component type lookup.
We now report the first generic parameter for collection-like types to use the behavior that was previously in place. We will address the issues resulting of the intent to report the correct component type of Iterable in a later change.
2020-11-06 16:08:06 +01:00
Oliver Drotbohm 9fddd402f7 DATACMNS-1828 - Fix Map component type lookup for custom Map implementations.
Instead of using the first generic type parameter of a parameterized type as Map component type, we now explicitly lookup the super type's Map-specific generics configuration and use its first generic type parameter. The same for collection like types falling back to the parameter type bound to Iterable.
2020-11-05 15:21:55 +01:00
Mark Paluch 98d61d6f25 DATACMNS-1810 - After release cleanups. 2020-10-28 16:10:23 +01:00
Mark Paluch 9296538c71 DATACMNS-1810 - Prepare next development iteration. 2020-10-28 16:10:20 +01:00
Mark Paluch a7b7711569 DATACMNS-1810 - Release version 2.4 GA (2020.0.0). 2.4.0 2020-10-28 15:46:54 +01:00
Mark Paluch 2d705ccf38 DATACMNS-1810 - Prepare 2.4 GA (2020.0.0). 2020-10-28 15:46:31 +01:00
Mark Paluch 0b03e6d9c4 DATACMNS-1810 - Updated changelog. 2020-10-28 15:46:08 +01:00
Mark Paluch 92ee075a6e DATACMNS-1797 - Updated changelog. 2020-10-28 15:03:01 +01:00
Mark Paluch 7a65cdf5ca DATACMNS-1796 - Updated changelog. 2020-10-28 12:15:03 +01:00
Mark Paluch 3ae6149231 DATACMNS-1815 - Updated changelog. 2020-10-28 11:32:26 +01:00
Jens Schauder 6572880412 DATACMNS-1820 - Moves PageabeExecutionUtils to o.s.data.support.
This avoids module cycles when it is used from a template.
The old version is still there, deprecated and delegates to the new version.

Original pull request: #472.
2020-10-28 09:54:54 +01:00
Mark Paluch 0902fe8f8b DATACMNS-1819 - Use awaitSingleOrNull to bridge Publisher to Coroutines Repositories.
We're now awaiting completion of the underlying Publisher to ensure all completion tasks have finished before continuing with the execution. This is to avoid completion running in parallel to the actual coroutine as not awaiting completion can result in race conditions.
2020-10-27 16:43:29 +01:00
Greg L. Turnquist 84d9ef0e09 DATACMNS-1799 - Use JDK 15 for latest CI jobs. 2020-10-26 13:00:16 -05:00
John Blum 2fbf709459 DATACMNS-1804 - Correct grammar in Exception messages thrown by Repository classes.
Original pull request: #467.
2020-10-23 17:03:36 +02:00
Alec Landow 4f06c71e8f DATACMNS-1792 - Fixes typos.
Fixes typos in in commons/repositories documentation.

Original pull request: #466.
2020-10-23 16:58:56 +02:00
Jay Bryant 0d40e216a2 DATACMNS-1816 - Wording changes.
Replace potentially insensitive language with more neutral language.

Original pull request: #451.
2020-10-23 14:19:39 +02:00
Jay Bryant d18701a329 DATACMNS-1814 - Editing pass.
Edited some new content and (I think) some old content that I somehow missed.

Original pull request: #471.
2020-10-16 14:25:26 +02:00
Jay Bryant 5330d4c1e0 DATACMNS-1814 - Fixes missing anchors.
Fixes the problem of the "Using filters" link jumping to the top of
the document. There was another of these ("Configuration") later in
the document, and this commit fixes that one, too.

Original pull request: #470.
2020-10-16 14:25:19 +02:00
Christoph Strobl 85915268b2 DATACMNS-1798 - After release cleanups. 2020-10-14 14:48:47 +02:00
Christoph Strobl d89f2b2f32 DATACMNS-1798 - Prepare next development iteration. 2020-10-14 14:48:45 +02:00
Christoph Strobl 5f3759b74a DATACMNS-1798 - Release version 2.4 RC2 (2020.0.0). 2.4.0-RC2 2020-10-14 14:28:55 +02:00
Christoph Strobl ebe1064060 DATACMNS-1798 - Prepare 2.4 RC2 (2020.0.0). 2020-10-14 14:27:37 +02:00
Christoph Strobl f4a8a8829f DATACMNS-1798 - Updated changelog. 2020-10-14 14:27:29 +02:00
Jens Schauder e002afa4fc DATACMNS-1807 - Correctly tagging Kotlin code as such in the documentation. 2020-10-02 12:53:21 +02:00
Oliver Drotbohm e3e23828ef DATACMNS-1806 - Polishing.
Styilistic tweaks (we only qualify writing field access with this).

Original pull request: #468.
2020-09-25 16:42:41 +02:00
Henning Rohlfs a442b90021 DATACMNS-1806 - Prevent returning null from Lazy due to concurrency problem.
When accessed concurrently from multiple threads, Lazy.getNullable() could return null unexpectedly.

Original pull request: #468.
2020-09-25 16:42:41 +02:00
Mark Paluch d10560f238 DATACMNS-1762 - Reintroduce calls to ReactiveWrapperConverters.supports(…) after decoupling from QueryExecutionConverters.
We now consider reactive wrapper types in all areas that previously relied on QueryExecutionConverters to handle reactive type information correctly. Specifically, we call supports(…) and perform type unwrapping to ensure to detect the correct return type.
2020-09-25 16:25:43 +02:00
Oliver Drotbohm af9dd6110d DATACMNS-1726 - Polishing of nullability after Lombok removal.
Reviewed visibility modifiers manually introduced constructors previously provided by Lombok. Also some nullability constraints have been accidentally changed by that.
2020-09-25 15:29:08 +02:00
Mark Paluch 5876bd2e5a DATACMNS-1762 - Consider reactive types as wrappers during method introspection.
We now perform type unwrapping and introspection for reactive types for method return types and method arguments after decoupling QueryExecutionConverters.supports(…) from ReactiveWrapperConverters.
2020-09-25 14:41:54 +02:00
Christoph Strobl f261220372 DATACMNS-1762 - Polishing.
Update JavaDoc, remove unused imports and reduce method visibility.

Original Pull Request: #459
2020-09-25 08:00:29 +02:00
Wim Deblauwe 97df0fa899 DATACMNS-1762 - Add tests for projections returning Optional.
Original Pull Request: #459
2020-09-25 08:00:08 +02:00
Mark Paluch bd3992dfc5 DATACMNS-1762 - Support Optional wrapping for projection getters.
We now support nullable wrappers for projection interfaces. Getters are inspected whether their return type is a supported nullable wrapper. If so, then the value can be wrapped into that type. Null values default in that case to their corresponding empty wrapper representation.

Original Pull Request: #459
2020-09-25 07:59:02 +02:00
Mark Paluch 04f59f1307 DATACMNS-1762 - Extract NullableWrapperConverters from QueryExecutionConverters.
Nullable wrappers such as Java 8 Optional, Guava Optional, Scala Option and Vavr Option are now handled in NullableWrapperConverters and are no longer coupled to QueryExecutionConverters so that this functionality can be reused.

Original Pull Request: #459
2020-09-25 07:58:52 +02:00
Mark Paluch 9ced611ea5 DATACMNS-1762 - Remove ReactiveWrappers support from from QueryExecutionConverters.
ReactiveWrappers doesn't belong in there in the first place so we're removing ReactiveWrappers support from QueryExecutionConverters so ReactiveWrappers is used from parts that need to be reactive-aware.

Original Pull Request: #459
2020-09-25 07:54:21 +02:00
Mark Paluch eadbe80f03 DATACMNS-1802 - Extract Flux.from(…) into own method.
For some reason, calling Flux.from(…) in its own, static method, heals NoClassDefFoundError even though the method is not used during runtime nor Publisher is defined in a method signature.
2020-09-22 16:07:52 +02:00
Mark Paluch b3d0fea061 DATACMNS-1637 - Add default stream() method to CloseableIterator.
CloseableIterator now allows construction of a Stream that is associated with a close hook to release resources after its use.

CloseableIterator<Person> iterator = …;

try (Stream<Person> stream = iterator.stream()) {
	assertThat(stream.count()).isEqualTo(3);
}
2020-09-22 15:47:48 +02:00
Mark Paluch 82cb36f727 DATACMNS-1802 - Add support for suspend repository query methods returning List<T>.
We now support returning List<T> from a suspended repository query method to simplify consumption of collection queries.
2020-09-22 14:44:46 +02:00
Greg L. Turnquist af00979784 DATACMNS-1799 - Only test other versions for local changes on main branch. 2020-09-18 10:57:59 -05:00
Mark Paluch a2773ce9e9 DATACMNS-1786 - After release cleanups. 2020-09-16 14:05:28 +02:00
Mark Paluch 6fc95bed1b DATACMNS-1786 - Prepare next development iteration. 2020-09-16 14:05:24 +02:00
Mark Paluch 9111933ba0 DATACMNS-1786 - Release version 2.4 RC1 (2020.0.0). 2.4.0-RC1 2020-09-16 13:57:41 +02:00
Mark Paluch 7c02b47579 DATACMNS-1786 - Prepare 2.4 RC1 (2020.0.0). 2020-09-16 13:57:08 +02:00