Commit Graph

108 Commits

Author SHA1 Message Date
Mark Paluch
9f1c626b3e Extend license header copyright years to 2023.
See #469
2023-01-02 09:53:30 +01:00
Mark Paluch
d51ac8f482 Revise KeySpaceResolver support to primary KeySpace detector source.
A configured KeySpaceResolver is now used primarily to detect the KeySpace to allow further customization of the KeySpace detection strategy.

The concept of a fallback resolver is now deprecated.

Closes #461
2022-12-07 10:42:28 +01:00
Mark Paluch
b05bfc6adf Support adding a key prefix for keyspaces.
We now support prefixing keyspaces by introducing PrefixKeyspaceResolver.

Closes #461
2022-12-07 10:41:14 +01:00
Christoph Strobl
8958eb8738 Remove usage of RuntimeHintsUtils & SynthesizedAnnotation.
Closes: #451
2022-09-06 17:38:04 +02:00
Mark Paluch
094d25ef77 Polishing.
Improve hints type naming. Make runtime hints package-private.

See #449
2022-08-17 09:31:13 +02:00
Mark Paluch
421735261c Consume KeySpace annotation values without synthesizing the annotation.
Closes #449
2022-08-17 09:30:46 +02:00
Christoph Strobl
0fe65fec5a Add native runtime hints.
See: #445
2022-07-06 14:27:03 +02:00
John Blum
efaeeebe39 Remove punctuation in Exception messages.
Closes #442.
2022-06-08 16:59:58 -07:00
Mark Paluch
71105702e8 Provide deleted object to KeyValueTemplate instead of deleting entities by Id.
Closes #438
2022-05-19 11:21:06 +02:00
Christoph Strobl
c0f4189713 Update copyright year to 2022.
See: #419
2022-02-17 12:36:27 +01:00
Oliver Drotbohm
9f1b1b7c3a Adapt to changes in entity creation metadata APIs in Spring Data Commons. 2022-02-15 17:39:35 +01:00
Mark Paluch
524417fe5f Adapt repository to List-based interface variants.
Closes #418
2022-02-11 10:45:11 +01:00
Jens Schauder
57afa3dbbe Remove Eclipse Non-Javadoc comments.
Closes #409
2022-01-05 15:39:23 +01:00
John Blum
4bb23916ce Fix invalid Javadoc references and tags.
Closes #396.
2022-01-04 14:34:45 +01:00
Mark Paluch
c761ba3c6d Polishing.
Introduce default exists(…) method on KeyValueAdapter to allow for store-specific optimizations of the exists method. Lazily construct a single PartTree instance for reuse.

Refine generics.

See #386
Original pull request: #386.
2021-12-13 10:10:47 +01:00
Christoph Strobl
8c32f0ae6d Add support for executing derived existsBy queries.
Closes: #385
Original pull request: #386.
2021-12-13 10:01:47 +01:00
Mark Paluch
10f63387df Add fluent API support for QuerydslKeyValueRepository.
Also reuse ProjectionFactory from repository factory.

Closes #397.
2021-10-11 13:47:05 +02:00
Mark Paluch
b9b5aae60b Polishing.
Make fields final where possible.

See #398
2021-10-11 10:27:16 +02:00
Mark Paluch
201b957f9e Extract QuerydslPredicateExecutor to its own fragment.
Closes #398
2021-10-11 10:27:09 +02:00
Mark Paluch
44ab6db763 Add method signature to enable compilation until adding fluent API support.
See #397
2021-10-08 14:13:18 +02:00
Mark Paluch
dc5887fdb5 Consider java.math and java.util types as simple types.
Closes #374
2021-04-29 08:31:08 +02:00
Christoph Strobl
c9c73b6eb3 Reorder parameters in JavaDoc.
Original Pull Request: #356
2021-03-15 08:09:53 +01:00
Mark Paluch
ad5d2268ec Accept target type in KeyValueAdapter.entries(…) and getAllOf(…).
We now accept the target type in both methods to retain type hints so that the underlying adapter implementation can use this type when materializing object instances.

Original Pull Request: #356
2021-03-15 08:09:35 +01:00
AbassAdeyemi
c14bad70d3 Change findById(…) assert message to reflect the actual operation.
Original pull request: #345.
2021-01-13 08:47:47 +01:00
Mark Paluch
21556462ab Update copyright year to 2021.
Closes #346.
2021-01-12 11:29:16 +01:00
Mark Paluch
c0ead79916 DATAKV-330 - Polishing.
Reorder methods.

Original pull request: #52.
2020-11-25 14:18:40 +01:00
Jens Schauder
54c7603496 DATAKV-330 - Implement CrudRepository.deleteAllById(Iterable<ID> ids).
Original pull request: #52.
2020-11-25 14:18:32 +01:00
Mark Paluch
63a2316d0d DATAKV-206 - Polishing.
Add since tag.

Original pull request: #29.
2020-09-30 15:02:42 +02:00
Mert Z
e4d37f0aa6 DATAKV-206 - Support for custom identifier generators.
Original pull request: #29.
2020-09-30 15:02:39 +02:00
Mark Paluch
71f946e8ff DATAKV-297 - Polishing.
Fix typo in exception message.
2020-09-30 14:23:08 +02:00
Mark Paluch
b56a7e5b7b DATAKV-322 - Polishing.
Add since tags. Make fields final where possible.

Original pull request: #48.
2020-09-30 14:18:49 +02:00
Marcel Overdijk
228691c2b8 DATAKV-322 - Support setting the QueryEngine in the MapKeyValueAdapter.
MapKeyValueAdapter and KeyValueQuery provide now additional constructors that allow for extensibility.

Original pull request: #48.
2020-09-30 14:18:28 +02:00
Christoph Strobl
5c328f17c6 DATAKV-310 - Polishing.
Use consistent punctuation in asserts.
Update link to code of conduct.

Original Pull Request: #50
2020-07-15 07:13:46 +02:00
Mark Paluch
72636fb4fc DATAKV-310 - Polishing.
Fix link to code of conduct. Update Javadoc references to reflect com.mysema -> com.querydsl changes.

Original Pull Request: #50
2020-07-15 07:13:11 +02:00
Mark Paluch
1a5a74d2e9 DATAKV-310 - Guard repository implementations against null values.
SimpleKeyValueRepository and QuerydslKeyValueRepository now reject null arguments as per their interface contract.

Original Pull Request: #50
2020-07-15 07:12:36 +02:00
Derek Cochran
dc936f7267 DATAKV-290 - Synchronize creation of keyspace map.
Original Pull Request: #47
2020-02-11 13:30:40 +01:00
Mark Paluch
c0b4dda728 DATAKV-285 - Update copyright years to 2020. 2020-01-07 08:56:06 +01:00
Christoph Strobl
a73dda0736 DATAKV-268 - Polishing.
Add test for non annotation driven keyspace resolution and update documentation.

Original Pull Request: #46
2019-06-24 14:34:43 +02:00
Mark Paluch
07d2b8c015 DATAKV-268 - Polishing.
Original Pull Request: #46
2019-06-24 14:32:30 +02:00
Mark Paluch
e9128743b6 DATAKV-268 - Add SpEL support for @KeySpace.
We now support SpEL expressions in @KeySpace that gets evaluated on a per-operation basis.

@KeySpace("#{myProperty}")
class Person {}

Original Pull Request: #46
2019-06-24 14:23:56 +02:00
Christoph Strobl
f5e67237fb DATAKV-212 - Favor SimpleEvaluationContext over StandardEvaluationContext
This allows us to restrict data binding to be read only.
2019-04-26 10:12:45 +02:00
Spring Operator
115731519c DATAKV-253 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 2 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 79 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).

Original Pull Request: #45
2019-03-22 18:16:32 +01:00
Oliver Drotbohm
9b44b2dccb DATAKV-251 - Removed off deprecations in Spring Data Commons.
Some additional polishing.

Related ticket: DATACMNS-1496.
2019-03-13 17:13:12 +01:00
Mark Paluch
fbd03cc484 DATAKV-244 - Update copyright years to 2019. 2019-01-02 14:02:26 +01:00
Mark Paluch
4f49fe98f4 DATAKV-225 - Add support for immutable objects.
Add return type to KeyValueOperations.insert/update methods to return potentially changed object instances. Return KeyValueOperations.insert/update method result in SimpleKeyValueRepository.save(…).
2018-07-12 10:42:24 +02:00
Oliver Gierke
1e14c4443b DATAKV-219 - Adapt to SpEL extension API changes in Spring Data Commons.
Related ticket: DATACMNS-1260.
2018-05-15 09:24:48 +02:00
Mark Paluch
6c9b365287 DATAKV-213 - Update usage example for composed annotations using KeySpace.
We now mention an example using AliasFor that is used via AnnotatedElementUtils.findMergedAnnotation(…) to retrieve the keyspace value.
2018-04-03 15:36:49 +02:00
Mark Paluch
6381daacc9 DATAKV-205 - Update copyright years to 2018. 2018-01-08 16:25:58 +01:00
Christoph Strobl
5643799128 DATAKV-196 - Polishing.
Update JavaDoc and fix trailing whitespaces.
Add and use dedicated factory for caching constructors for and instantiating AbstractQueryCreator.

Original Pull Request: #27
2017-09-27 14:30:01 +02:00
Mark Paluch
80b2285c18 DATAKV-196 - Open up configuration and repository components for extension.
Make SpelSortAccessor public. Introduce getMappingContextBeanRef() template method to KeyValueRepositoryConfigurationExtension so subclasses may specify the mapping context bean name. Introduce createQueryCreator() template method to KeyValuePartTreeQuery for query creator customization in subclasses.

Original Pull Request: #27
2017-09-27 14:29:00 +02:00