Commit Graph

2647 Commits

Author SHA1 Message Date
Jens Schauder
e003edccc3 Improve documentation of SpelQueryContext.
Close #2693
2022-09-30 13:03:10 +02:00
Mark Paluch
1d7fc40068 Refine documentation to prefer Java configuration over XML.
Closes #2666
2022-09-27 10:58:23 +02:00
Mark Paluch
cdcd21a064 Allow functional mapping of Range and Boundary.
We now support functional mapping of Range values by accepting a mapping function.

Closes #2692
2022-09-26 14:12:24 +02:00
Spring Builds
b4511852d5 After release cleanups.
See #2659
2022-09-19 14:39:03 +00:00
Spring Builds
6d9ebaeffd Prepare next development iteration.
See #2659
2022-09-19 14:38:51 +00:00
Spring Builds
37bbd0fb64 Release version 3.0 M6 (2022.0.0).
See #2659
2022-09-19 14:15:19 +00:00
Spring Builds
fff27673c6 Prepare 3.0 M6 (2022.0.0).
See #2659
2022-09-19 14:12:50 +00:00
Mark Paluch
b902f230c9 Adopt to changed Mockk artifact name.
Closes #2687
2022-09-12 10:10:34 +02:00
Mark Paluch
3a486eba89 Upgrade to XMLBeam 1.4.24.
Closes #2686
2022-09-12 09:53:56 +02:00
Christoph Strobl
f157eff53c Remove usage of RuntimeHintsUtils & SynthesizedAnnotation.
Closes: #2685
2022-09-06 17:48:36 +02:00
Christoph Strobl
1ccdac2d05 Update usage of TestGenerationContext.
Add required artifact and update package name.

See: spring-projects/spring-framework#28877
2022-09-06 17:46:07 +02:00
Christoph Strobl
480522bbb7 Polishing.
Add issue reference and additional test for dot path resolution.

Original Pull Request: #2650
2022-08-30 16:08:41 +02:00
Mark Paluch
9e94e110e4 Fix argument conversion in QuerydslPredicateBuilder.
We now consider the correct argument type instead of checking assignability of the actual property type against the input value.

Closes: #2649
Original Pull Request: #2650
2022-08-30 15:50:34 +02:00
Mark Paluch
d25fd39974 Polishing.
Use TestGenerationContext in tests.

See #2675
2022-08-23 16:14:35 +02:00
Mark Paluch
a73b0d9936 Improve Pageable Javadoc.
Closes #2679
2022-08-23 10:34:32 +02:00
Mark Paluch
d07cc104fc Adopt to Spring Framework 6.0 M6 changes.
Closes #2675
2022-08-23 10:22:46 +02:00
Mark Paluch
02ec7ed19d Polishing.
Update Kotlin, Reactive and List repository variant documentation.

See #2651
Original pull request: #2673.
2022-08-05 10:49:53 +02:00
Jens Schauder
7ff171fa1d Clarify behaviour of when save or delete operations result in a NOOP.
Behaviour of implementing modules need to adapt to the new clarification.

Closes #2651
Original pull request #2673
2022-08-05 10:49:46 +02:00
Ayrossi
866968f9a8 JPA is now Jakarta Persistence API.
Closes #2475
2022-08-05 09:14:29 +02:00
MINSOO, NAM
e9852fcdc7 Change initialCapacity in AnnotationAuditingMetadata to match the number of data being added.
As support for Joda Time has been removed from the PR below, the amount of data added has been reduced. So I change the initialCapacity of List from 5 to 3.

Closes #2668
2022-08-05 09:12:12 +02:00
Michael Simons
d9c45a1bcd Specify title to auditing.auditor-aware.
Closes #2652
2022-08-05 09:09:59 +02:00
lanicc
062258768f Fix the JDK version documented to build the source code.
Closes: #2671
Original pull request: #2672.
2022-08-02 09:26:36 +02:00
Mark Paluch
42dadd89b4 Use CompletableFuture instead of deprecated ListenableFuture.
Closes #2669
2022-07-29 14:33:11 +02:00
Mark Paluch
7e1712a5de Refine @PageableDefault and @SortDefault annotations.
We now use MergedAnnotations to evaluate annotation attributes and to use aliasing across attributes. Also, SortDefault is not repeatable.

Closes #2657
2022-07-27 09:46:39 +02:00
Jens Schauder
3a6b04dfe1 Make reference to XML namespace optional.
Not all modules have a XML namespace.
Therefore it is now possible to exclude parts that reference the XML namespace from the documentation

By default the parts referring to the XML namespace are included just as before.
But they will get skipped if the `index.adoc` of the module defines the attribute `include-xml-namespaces` as `false` by including

```
:include-xml-namespaces: false
```

Closes #2662
See https://github.com/spring-projects/spring-data-relational/issues/1290
Original pull request #2664
2022-07-26 10:12:46 +02:00
Christoph Strobl
0a67a14fe6 After release cleanups.
See #2632
2022-07-15 15:30:53 +02:00
Christoph Strobl
c4e5c10c7d Prepare next development iteration.
See #2632
2022-07-15 15:30:45 +02:00
Christoph Strobl
46f2bc2395 Release version 3.0 M5 (2022.0.0).
See #2632
2022-07-15 15:18:29 +02:00
Christoph Strobl
24dae96204 Prepare 3.0 M5 (2022.0.0).
See #2632
2022-07-15 15:17:56 +02:00
Jens Schauder
0bf62a8a74 Polishing.
Incorporating feedback.

Original pull request #2655
See #2654
See #2228
2022-07-14 09:12:03 +02:00
Jens Schauder
b1aeec1576 Add documentation for the fluent API for Query By Example.
Closes #2654
Original pull request #2655
See #2228
2022-07-14 09:12:03 +02:00
Christoph Strobl
74e52612bf Use ManagedType BeanDefinition for AOT processing when possible.
We now try to read the types directly from the bean definition arguments first, before attempting to resolve the actual bean instance.
If resolving the bean fails, we currently only log an info message. This arrangement needs to be revisited.

See: #2593
2022-07-13 12:18:18 +02:00
John Blum
cfac78867e Adapt to the repackaging of the AOT RuntimeHintsPredicate.
Closes #2653.
2022-07-12 17:17:00 -07:00
Christoph Strobl
0905c77e5f Add factory method to Reactive-/AuditingHandler.
By providing a factory method that accepts the MappingContext we can avoid the creation of additional support beans during the configuration phase for store modules implementing auditing.

See: #2593
2022-07-11 12:14:38 +02:00
Christoph Strobl
fb07ad9b2e Add factory method to Reactive-/IsNewAwareAuditingHandler.
By providing a factory method that accepts the MappingContext we can avoid the creation of additional support beans during the configuration phase for store modules implementing auditing.

See: #2593
2022-07-08 08:32:27 +02:00
Mark Paluch
9c3696d335 Polishing.
Improve factory methods. Integrate auditing hints in AuditingBeanRegistrationAotProcessor. Reduce visibility, improve naming.

Original Pull Request: #2624
2022-07-04 14:22:08 +02:00
John Blum
7aafe577e2 Simplify logic in SpringDataBeanFactoryInitializationAotProcessor.
Original Pull Request: #2624
2022-07-04 14:22:08 +02:00
Mark Paluch
2d16692f51 Use constant fields for Reactive Wrapper Converters guards.
Enables reachability analysis. Previously, the presence checks were using method invocations and the AOT processing isn't following the methods.

Original Pull Request: #2624
2022-07-04 14:22:07 +02:00
Mark Paluch
e71f7c2bd6 Simplify field and method filter creation.
Update javadoc and reformat aot.factories.

Original Pull Request: #2624
2022-07-04 14:22:07 +02:00
Christoph Strobl
423edd21ea Use BeanRegistrationAotProcessor to provide hints for auditing.
This avoids having to touch modules to add something like ImportRuntimeHints(AuditingHints.ReactiveAuditingRuntimeHints.class) to the enabled auditing annotations.

Original Pull Request: #2624
2022-07-04 14:22:06 +02:00
Mark Paluch
0a423ac3f5 Open up AuditingBeanDefinitionRegistrarSupport.registerAuditHandlerBeanDefinition(…) to allow additional bean registrations.
Original Pull Request: #2624
2022-07-04 14:22:06 +02:00
Christoph Strobl
4e23153816 Move runtime hints into another package
Original Pull Request: #2624
2022-07-04 14:22:05 +02:00
Mark Paluch
51cda9993f Introduce PropertiesBasedNamedQueriesFactoryBean to reduce bean indirections.
We now provide PropertiesBasedNamedQueriesFactoryBean to create PropertiesBasedNamedQueries directly bypassing indirections through PropertiesFactoryBean and PropertiesBasedNamedQueries.

Original Pull Request: #2624
2022-07-04 14:22:05 +02:00
Christoph Strobl
0262380d29 Add native image runtime hints.
We provide an initial set of runtime hints required to spin up data repositories on GraalVM native image.
Additionally we skip synthetic types during type inspection.

Original Pull Request: #2624
2022-07-04 14:22:04 +02:00
John Blum
d8118de90f Review, refactor and polish Spring Data AOT infrastructure classes.
* Refactored logic in AOT infrastructure classes.
* Annotated AOT API with Spring's @NonNull and @Nullable annotations.
* Edited Javadoc.
* Introduced PredicateUtils abstract utility class encapsulating common Predicates on types and class members.
* Added comments for review and clarification.

Original Pull Request: #2624
2022-07-04 14:22:04 +02:00
Christoph Strobl
21ff2a7e34 Introduce infrastructure for AOT processing of repository declarations
This commit introduces initial support for framework 6 bases ahead of time processing of data components and adds extension points for module implementations.

See: #2593
Original Pull Request: #2624
2022-07-04 14:22:03 +02:00
Mark Paluch
8b560f96c3 Upgrade to Kotlin 1.7.
Adopt to stricter nullability checks.

Closes #2648
2022-06-24 11:52:08 +02:00
Florian Cramer
2a299b2ff2 Use TypeFilterUtils to create TypeFilters.
Original pull request: #2647.
Closes #2481
2022-06-23 13:59:02 +02:00
Oliver Drotbohm
dfc3060ed7 Polishing.
See #2644.
2022-06-20 17:18:45 +02:00
Oliver Drotbohm
75387bb8ae Add RepositoryConfiurationExtension.getModuleIdentifier().
We're now unifying the lookup of a unique identifier for a Spring Data module in the RepositoryConfigurationExtension interface. Previous users of getModulePrefix() in subclasses of RCE should rather call getModuleIdentifier(). Implementations of RCE that previously implemented getModulePrefix() directly should rather switch to implementing getModuleName() and additionally getModuleIdentifier() in case the default implementations derivation of the identifier from the name doesn't produce the results intended.

RepositoryConfigurationExtensionSupport.getDefaultNamedQueryLocation() was changed to rather use the identifier to calculate the name of the named query location instead of the prefix.

Fixes #2644.
2022-06-20 17:18:45 +02:00