Commit Graph

41 Commits

Author SHA1 Message Date
Oliver Gierke
631d1d2f74 DATAKV-110 - After release cleanups. 2015-10-31 15:17:19 +01:00
Spring Buildmaster
eac3cb8523 DATAKV-110 - Prepare next development iteration. 2015-10-31 15:16:22 +01:00
Spring Buildmaster
9a3052ad33 DATAKV-110 - Release version 1.0.0.RELEASE (Gosling GA). 2015-09-01 01:56:14 -07:00
Oliver Gierke
44839d2982 DATAKV-110 - Prepare 1.0.0.RELEASE (Gosling GA). 2015-09-01 09:44:23 +02:00
Oliver Gierke
3a717b4497 DATAKV-110 - Updated changelog. 2015-09-01 09:44:20 +02:00
Oliver Gierke
21500d7777 DATAKV-109 - After release cleanups. 2015-08-04 14:09:23 +02:00
Spring Buildmaster
b096130309 DATAKV-109 - Prepare next development iteration. 2015-08-04 04:32:50 -07:00
Spring Buildmaster
51f5561c34 DATAKV-109 - Release version 1.0.0.RC1 (Gosling RC1). 2015-08-04 04:32:44 -07:00
Oliver Gierke
7ee5c663bb DATAKV-109 - Prepare 1.0.0.RC1 (Gosling RC1). 2015-08-04 11:48:44 +02:00
Oliver Gierke
b7f565f181 DATAKV-109 - Updated changelog. 2015-08-04 11:48:42 +02:00
Oliver Gierke
5b54d9328e DATAKV-108 - After release cleanups. 2015-06-02 11:40:23 +02:00
Spring Buildmaster
9126f9da0a DATAKV-108 - Prepare next development iteration. 2015-06-02 01:25:38 -07:00
Spring Buildmaster
ff66fde000 DATAKV-108 - Release version 1.0.0 M1 (Gosling). 2015-06-02 01:25:37 -07:00
Oliver Gierke
7b2e624b86 DATAKV-108 - Prepare 1.0.0.M1 (Gosling M1).
Added changelog, license and notice file.
2015-06-02 09:20:38 +02:00
Oliver Gierke
6a71a1ebbd DATAKV-108 - Switch to 1.x version numbers. 2015-06-01 18:12:42 +02:00
Oliver Gierke
da7493483e DATAKV-107 - Added license file. 2015-05-19 18:15:54 +02:00
Oliver Gierke
25a5a91a7c DATAKV-106 - Ported README to Asciidoctor. 2015-05-19 18:12:59 +02:00
Oliver Gierke
ef84f01d8c DATAKV-106 - Added configuration file for Travis CI. 2015-05-19 18:08:05 +02:00
Oliver Gierke
3371a6b7a2 DATAKV-104 - Polishing.
Moved configuration setters under constructors of KeyValueTemplate.

Original pull request: #12.
2015-05-19 17:49:12 +02:00
Christoph Strobl
fe50d6b242 DATAKV-104 - Refactor event handling according to design in Spring Data MongoDB.
We now favor dedicated types over event type enum and allow events to be generically typed. We favor ApplicationEventPublisherAware over ApplicationContextAware. By default we now publish all events and allow user to opt out.

Original pull request: #12.
2015-05-19 17:49:12 +02:00
Oliver Gierke
e3733ab9b5 DATAKV-105 - Polishing.
Moved KeySpaceResolver interfaces into mapping package. Let defaulting happen in BasicKeyValuePersistentEntity so that ClassNameKeySpaceResolver can be made package protected.

FowardingCloseableIterator is now generically typed and not bound to Map.Entry.

Original pull request: #11.
2015-05-19 17:36:00 +02:00
Christoph Strobl
f19a6c0faf DATAKV-105 - Polish implementation after recent addition of features.
Remove obsolete method hasKeyspace() from KeyValueAdapter. Transition from List to Iterable for find methods in KeyValueTemplate.

We now offer a plug able KeySpace resolution by providing a KeySpaceResolver via the KeyValueMappingContext. By default an AnnotationBasedKeySpaceResolver will be used to examine the type for @KeySpace. In case of non explicit keySpace we fall back to using the class' fully-qualified name as the default key space.

Key space resolution is now fixed on resolving @KeySpace on a given PersistentEntity. In case no annotation key space can be found we by default fall back to a class name based key space. It is possible to configure the fallback via the MappingContext.

Refactored names & visibility of types required for tests.
Removed shortcut for returning results not having an explicit key space, since we now can no longer rely on the type name strategy dividing non explicit types into separate key spaces.

Original pull request: #11.
2015-05-19 17:35:56 +02:00
Christoph Strobl
02759f58ea DATAKV-99 - Polishing.
Removed dedicated Entry<K,V> interface, since Map.Entry<K,V> is already sufficient. Favoured CloseableIterator over KeyValueIterator since it offers no additional functionality but less generic parameter clutter.
Added missing JavaDoc.
2015-05-13 12:53:44 +02:00
Christoph Strobl
952a901164 DATAKV-101 - Favor Iterable over Collection types for KeyValueOperations.
Change return types for Adapter and Operations from Collection types to Iterable. Added count(keyspace) to KeyValueAdapter.

Original pull request: #8.
2015-05-11 11:39:56 +02:00
Christoph Strobl
16dc4b5e7d DATAKV-99 - Add KeyValueIterator.
We now offer the possibility to iterate through available key/value pairs via a KeyValueIterator. The default implementation for java.util.Map based Adapters is a ForwardingKeyValueIterator delegating to the underlying entrySet iterator.

Original pull request: #7.
2015-05-11 11:26:31 +02:00
A.J. Brown
aa3204e464 DATAKV-100 - Update Maven download instructions.
Updated invalid maven artifactId and added note on spring-snapshot repository for consuming those.

Original Pull Request: #6
2015-05-07 14:49:17 +02:00
Christoph Strobl
07b3a1547c DATAKV-91 - Add support for sending application events.
We now allow definition of event types to be published via the application context.

Original pull request: #5.
2015-05-05 16:09:31 +02:00
Christoph Strobl
a8a37d4a32 DATAKV-98 - Adapt to changes in Spring Data Commons.
Tweaked method signatures in KeyValueRepositoryFactory after some signature changes in Spring Data Commons. Use newly introduced getTragetRepositoryViaReflection(…) to obtain the repository instance via the super class.

Added repositoryBaseClass() attribute to @EnableMapRepositories.

Related tickets: DATACMNS-542.
2015-05-05 12:20:30 +02:00
Thomas Darimont
e019ed1da8 DATAKV-97 - Upgrade to gosling build pom.
Updated versions of spring-data-commons / spring-data-build to the gosling snapshot versions.
2015-04-03 16:42:17 +02:00
Thomas Darimont
c305988582 DATAKV-96 - Added QueryDslPredicateExecutor.findAll(Predicate, Sort).
We now support findAll on QuerydslKeyValueRepository that accepts a Querydsl Predicate and a Sort.

Original pull request: #4.
2015-02-24 10:18:19 +01:00
Oliver Gierke
8f1bc111b4 DATAKV-95 - Added exists(…) method to QuerydslKeyValueRepository.
Renamed QueryDsl… classes to Querydsl… for consistency. Restructured test cases for repositories to make better use of generics.
2015-02-03 11:50:16 +01:00
Christoph Strobl
b8de114457 DATAKV-94 - Remove @since attributes from left over from sd-commons. 2014-12-19 08:36:24 +01:00
Christoph Strobl
680d32fff8 DATAKV-93 - Added README and reference documentation.
Original pull request: #3.
2014-12-05 19:38:16 +01:00
Oliver Gierke
bc88cb48ac DATAKV-87 - Polished implementation of configurability of Map type on @EnableMapRepositories.
Removed the MapKeyValueAdapterFactory in favor of using instantiating MapKeyValueAdapters directly. Reverted additional hook in KeyValueRepositoryConfigurationExtension as we now rather use inner bean definitions.

Original pull request: #2.
2014-12-05 19:38:13 +01:00
Christoph Strobl
b16a454c6c DATAKV-87 - Allow definition of target Map type via @EnableMapRepositories.
We added the configuration attribute ‘mapType’ to @EnableMapRepositories which allows to change defaulting of the Map structure used by the MapKeyValueAdapter. To do so we now register a MapKeyValueAdapterFactory and delegate creation of the adapter to it. This also allows usage of interface types such as plain java.util.Map which will initialize the adapter with the approximated type resolved via CollectionFactory.

Original pull request #2.
2014-12-05 19:37:55 +01:00
Oliver Gierke
5a14d7bc12 DATAVK-86 - Improved auto-template-registration infrastructure.
KeyValueRepositoryConfigurationExtension now need to report the default value for the KeyValueTemplate reference. We now only register a default template if the reference has not been customized. Changed the default reference value for Maps to mapKeyValueTemplate to allow individual defaults per store.

Removed obsolete RepositoryNamespaceHandler.

Original pull request: #1.
2014-12-01 16:35:28 +01:00
Christoph Strobl
ff1338a99c DATAKV-86 - Move configuration infrastructure for Map-based repositories.
We removed the EnableKeyValueRepositories in favor of store specific implementations. In this case EnableMapRepositories.

The configuration now defaults a KeyValueTemplate with a MapKeyValueAdapter but allows overriding the template in a bean named keyValueTemplate.
2014-12-01 16:13:01 +01:00
Christoph Strobl
4f37a7ecc3 DATAKV-90 - Add findAll variant with QueryDSL OrderSpecifier without a Predicate. 2014-11-28 15:17:51 +01:00
Christoph Strobl
5f62882a3e DATAKV-89 - KeyValueTemplate now throws DuplicateKeyException.
We now throw DuplicateKeyException instead of InvalidDataAccessApiUsageException in case an object with given id already exists.

Original pull request: spring-projects/spring-data-commons#106.
2014-11-27 14:30:22 +01:00
Oliver Gierke
42a13a7403 DATAKV-85 - Ported key-value infrastructure from Spring Data Commons. 2014-11-27 14:19:30 +01:00
Oliver Gierke
2ebac47e31 DATAKV-84 - Project setup. 2014-11-27 12:36:10 +01:00