Commit Graph

87 Commits

Author SHA1 Message Date
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
Christoph Strobl
7a89366075 DATAKV-197 - Polishing.
Update JavaDoc, fix trailing whitespace and add missing @Nullable annotations to methods potentially returning null values.

Original Pull Request:#28
2017-09-27 14:22:05 +02:00
Mark Paluch
83057f1288 DATAKV-197 - Introduce usage of nullable annotations for API validation.
Annotate all packages with Spring Frameworks @NonNullApi and @NonNullFields. Add Spring's @Nullable to methods, parameters and fields that take or produce null values. Adapted using code to make sure the IDE can evaluate the null flow properly. Fix Javadoc in places where an invalid null handling policy was advertised. Strengthened null requirements for types that expose null-instances.

Original Pull Request: #28
2017-09-27 14:21:31 +02:00
Mark Paluch
f0b3fc2b98 DATAKV-192 - Polishing.
Reduce member visibility according type visibility. Adapt to required argument in KeyValueRepository.findAll(Pageable). Replace cast with type to Class.cast(…). Use lombok for for getters/setters in test code. Suppress warnings, formatting.

Original pull request: #26.
2017-08-02 10:15:58 +02:00
Christoph Strobl
0025c03e5a DATAKV-192 - Move codebase to Java8 API.
Make use of stream lambdas in query execution. Remove copy of MetaAnnotationUtils in favor of @AliasFor usage.

Original pull request: #26.
2017-08-02 10:05:11 +02:00
Mark Paluch
aa6dcb945c DATAKV-175 - Remove deprecated KeyValueQuery.getCritieria() method.
Related ticket: DATAKV-170.
2017-07-26 14:39:47 +02:00
Mark Paluch
14da42ff15 DATAKV-187 - Polishing.
Remove Serializable ID constraints from factory beans. Replace casts with type.cast(…). Convert anonymous inner classes to lambdas. Remove unused code and casts. Simplify test entities by removing Serializable and using lombok. Letter casing, formatting, Javadoc.

Original pull request: #25.
2017-07-21 15:31:59 +02:00
Christoph Strobl
d6ee87ace5 DATAKV-187 - Remove restriction of ID type to be Serializable.
Original pull request: #25.
2017-07-21 15:31:47 +02:00
Christoph Strobl
8f5fa59386 DATAKV-186 - Polishing.
Add missing author information and split test.

Original Pull Request: #24
2017-07-20 10:49:16 +02:00
EugeneNik
c5e0d1a26c DATAKV-186 - SimpleKeyValueRepository.existsById(…) now evaluates findById(…) results properly.
ExistsById now evaluates Optional.isPresent() instead of comparing findById result to null.

Original Pull Request: #24
2017-07-20 10:48:08 +02:00
Christoph Strobl
256bb16dba DATAKV-185 - Polishing.
Fix NPE by now returning an expression that always resolves to true.
2017-07-04 22:02:14 +02:00
Mark Paluch
b99510b6e1 DATAKV-185 - Adapt to changes in SpEL parser. 2017-07-04 15:24:49 +02:00
Mark Paluch
9727c2c9a6 DATAKV-184 - Adapt to API changes in mapping subsystem. 2017-07-04 14:34:56 +02:00
Oliver Gierke
97a84c3445 DATAKV-179 - Adapt to API changes in QuerydslPredicateExecutor.findOne(…).
Related ticket: DATACMNS-1059.
2017-05-19 10:48:58 +02:00
Christoph Strobl
aa6e412602 DATAKV-176 - Adapt to API changes in repository interfaces.
We now follow a more consistent naming scheme for the methods in repository that are driven by the following guidelines:

* Methods referring to an identifier now all end on …ById(…).
* Methods taking or returning a collection are named …All(…)

Please see DATACMNS-944 for details.
2017-05-03 17:43:10 +02:00
Mark Paluch
3f21f10d78 DATAKV-170 - Fix KeyValue.getCriteria() method name.
Introduce KeyValue.getCriteria() method and deprecate KeyValue.getCritieria() for later removal. Use fixed method in affected classes.
2017-04-20 13:03:53 +02:00
Mark Paluch
12301efd94 DATAKV-169 - Polishing.
Fix typo in test method names. Some minor language level cleanups and removal of deprecated API usage.

Original pull request: #23.
2017-04-18 09:39:14 +02:00
Christoph Strobl
f67a66bf25 DATAKV-169 - Add support for IN keyword in derived queries.
We now support `In` keyword in derived finder methods (eg. `findByFirstnameIn(Collection<String> firstnames)`) when using SpEL based queries.

Original pull request: #23.
2017-04-18 09:38:58 +02:00
John Blum
138137390a DATAKV-166 - Rename getRepositoryFactoryClassName to getRepositoryFactoryBeanClassName. 2017-03-24 12:49:16 -07:00
Oliver Gierke
c9ce2f1f72 DATAKV-159 - Adapt to API changes in Spring Data Commons. 2017-03-24 10:12:03 +01:00
Christoph Strobl
71d2bfb254 DATAKV-159 - Open up API for extension.
Alter generic type declarations to open up repository related API for better extensibility.
2017-03-24 10:11:53 +01:00
Christoph Strobl
d3fe2f2e56 DATAKV-159 - Integrate DATACMNS Java 8 upgrade.
Related to: DATACMNS-867
2017-03-24 10:11:44 +01:00