From f8bfe5c79e30eeb7986e0cbd886ac92abcdbd046 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Fri, 18 Mar 2016 16:06:04 +0100 Subject: [PATCH] #163 - Upgraded to Hopper RC1. Removed all previous references to snpahosts. Removed explicit version declaration of Lombok as Boot sets that for us in 1.4. Upgraded Elasticsearch dependency to 2.2 and uncommented the actual sample module as it needs to be updated due to API changes in Elasticsearch and Spring Data Elasticsearch in turn. Adapt to API changes in entity lookup configuration for Spring Data REST. Tweaked Neo4j build setup by using the dedicated embedded driver JAR. --- elasticsearch/pom.xml | 6 +++++- jpa/query-by-example/pom.xml | 4 ---- mongodb/query-by-example/pom.xml | 4 ---- neo4j/example/pom.xml | 13 +++++++------ pom.xml | 2 +- redis/repositories/pom.xml | 4 ---- .../rest/uris/SpringDataRestCustomization.java | 2 +- 7 files changed, 14 insertions(+), 21 deletions(-) diff --git a/elasticsearch/pom.xml b/elasticsearch/pom.xml index 942fbaea..6f044323 100644 --- a/elasticsearch/pom.xml +++ b/elasticsearch/pom.xml @@ -15,8 +15,12 @@ Sample projects for Spring Data Elasticsearch https://github.com/spring-projects/spring-data-elasticsearch + + 2.2.0 + + - example + diff --git a/jpa/query-by-example/pom.xml b/jpa/query-by-example/pom.xml index 351caaf8..0a2ee143 100644 --- a/jpa/query-by-example/pom.xml +++ b/jpa/query-by-example/pom.xml @@ -10,9 +10,5 @@ spring-data-jpa-query-by-example Spring Data JPA - Query-by-Example (QBE) - - - Hopper-BUILD-SNAPSHOT - diff --git a/mongodb/query-by-example/pom.xml b/mongodb/query-by-example/pom.xml index f723882d..a0652f4c 100644 --- a/mongodb/query-by-example/pom.xml +++ b/mongodb/query-by-example/pom.xml @@ -11,8 +11,4 @@ spring-data-mongodb-query-by-example Spring Data MongoDB - Query-by-Example (QBE) - - Hopper-BUILD-SNAPSHOT - - diff --git a/neo4j/example/pom.xml b/neo4j/example/pom.xml index 5e3ecfbe..cc6afdfc 100644 --- a/neo4j/example/pom.xml +++ b/neo4j/example/pom.xml @@ -1,14 +1,13 @@ - + 4.0.0 spring-data-neo4j-example Spring Data Neo4j - Example - 2.0.0-M02 + 2.0.0-M04 @@ -26,9 +25,11 @@ - org.springframework.boot - spring-boot-starter-data-rest + org.neo4j + neo4j-ogm-embedded-driver + ${neo4j-ogm.version} + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 57c8266f..b52234d4 100644 --- a/pom.xml +++ b/pom.xml @@ -35,6 +35,7 @@ 1.1.3 1.8 4.0.8 + Hopper-RC1 @@ -71,7 +72,6 @@ org.projectlombok lombok - 1.16.6 provided diff --git a/redis/repositories/pom.xml b/redis/repositories/pom.xml index 60c396fe..923782e6 100644 --- a/redis/repositories/pom.xml +++ b/redis/repositories/pom.xml @@ -12,10 +12,6 @@ ../pom.xml - - Hopper-RC1 - - diff --git a/rest/uri-customization/src/main/java/example/springdata/rest/uris/SpringDataRestCustomization.java b/rest/uri-customization/src/main/java/example/springdata/rest/uris/SpringDataRestCustomization.java index e512e8e7..f224b0b9 100644 --- a/rest/uri-customization/src/main/java/example/springdata/rest/uris/SpringDataRestCustomization.java +++ b/rest/uri-customization/src/main/java/example/springdata/rest/uris/SpringDataRestCustomization.java @@ -34,7 +34,7 @@ public class SpringDataRestCustomization extends RepositoryRestConfigurerAdapter @Override public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) { - config.withCustomEntityLookup().// + config.withEntityLookup().// forRepository(UserRepository.class, User::getUsername, UserRepository::findByUsername); } }