diff --git a/elasticsearch/pom.xml b/elasticsearch/pom.xml
index 2709a282..116ed244 100644
--- a/elasticsearch/pom.xml
+++ b/elasticsearch/pom.xml
@@ -30,7 +30,13 @@
spring-data-next-releasetrain
- 6.5.0
+ 6.6.0
+
+
+
+ spring-data-next-releasetrain-released
+
+ 6.6.0
diff --git a/jdbc/basics/pom.xml b/jdbc/basics/pom.xml
index ec70bbce..47056a01 100644
--- a/jdbc/basics/pom.xml
+++ b/jdbc/basics/pom.xml
@@ -13,5 +13,12 @@
Spring Data JDBC - Basic usage examples
Sample project demonstrating Spring Data JDBC features
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index e59f00de..ad2e24d1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,7 +35,7 @@
1.1.3
- 1.18.0
+ 1.18.4
@@ -49,12 +49,16 @@
spring-data-next-releasetrain
Moore-BUILD-SNAPSHOT
+ 1.0.0.BUILD-SNAPSHOT
+ 2.0.0.BUILD-SNAPSHOT
spring-data-next-releasetrain-released
- Lovelace-SR3
+ Moore-M2
+ 1.0.0.M1
+ 2.0.0.M1
diff --git a/rest/starbucks/src/main/java/example/springdata/rest/stores/web/StoresController.java b/rest/starbucks/src/main/java/example/springdata/rest/stores/web/StoresController.java
index 75f99be6..84a6a5a0 100644
--- a/rest/starbucks/src/main/java/example/springdata/rest/stores/web/StoresController.java
+++ b/rest/starbucks/src/main/java/example/springdata/rest/stores/web/StoresController.java
@@ -34,6 +34,7 @@ import org.springframework.data.geo.Distance;
import org.springframework.data.geo.Metrics;
import org.springframework.data.geo.Point;
import org.springframework.data.rest.webmvc.support.RepositoryEntityLinks;
+import org.springframework.hateoas.LinkRelation;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -89,7 +90,8 @@ class StoresController {
model.addAttribute("selectedDistance", distance.orElse(DEFAULT_DISTANCE));
model.addAttribute("location", point);
model.addAttribute("locations", KNOWN_LOCATIONS);
- model.addAttribute("api", entityLinks.linkToSearchResource(Store.class, "by-location", pageable).getHref());
+ model.addAttribute("api",
+ entityLinks.linkToSearchResource(Store.class, LinkRelation.of("by-location"), pageable).getHref());
return "index";
}
diff --git a/rest/starbucks/src/test/java/example/springdata/rest/stores/StarbucksClient.java b/rest/starbucks/src/test/java/example/springdata/rest/stores/StarbucksClient.java
index 28549fbe..6fd0d991 100644
--- a/rest/starbucks/src/test/java/example/springdata/rest/stores/StarbucksClient.java
+++ b/rest/starbucks/src/test/java/example/springdata/rest/stores/StarbucksClient.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014-2018 the original author or authors.
+ * Copyright 2014-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -32,18 +32,18 @@ import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.boot.web.server.LocalServerPort;
import org.springframework.context.annotation.Bean;
+import org.springframework.hateoas.CollectionModel;
+import org.springframework.hateoas.EntityModel;
import org.springframework.hateoas.Link;
import org.springframework.hateoas.Links;
import org.springframework.hateoas.MediaTypes;
-import org.springframework.hateoas.PagedResources;
-import org.springframework.hateoas.PagedResources.PageMetadata;
-import org.springframework.hateoas.Resource;
-import org.springframework.hateoas.Resources;
+import org.springframework.hateoas.PagedModel;
+import org.springframework.hateoas.PagedModel.PageMetadata;
import org.springframework.hateoas.client.Traverson;
import org.springframework.hateoas.client.Traverson.TraversalBuilder;
-import org.springframework.hateoas.mvc.TypeReferences.PagedResourcesType;
-import org.springframework.hateoas.mvc.TypeReferences.ResourceType;
-import org.springframework.hateoas.mvc.TypeReferences.ResourcesType;
+import org.springframework.hateoas.server.core.TypeReferences.CollectionModelType;
+import org.springframework.hateoas.server.core.TypeReferences.EntityModelType;
+import org.springframework.hateoas.server.core.TypeReferences.PagedModelType;
import org.springframework.http.RequestEntity;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.web.client.RestOperations;
@@ -90,16 +90,16 @@ public class StarbucksClient {
parameters.put("location", "40.740337,-73.995146");
parameters.put("distance", "0.5miles");
- PagedResources> resources = builder.//
+ PagedModel> resources = builder.//
withTemplateParameters(parameters).//
- toObject(new PagedResourcesType>() {});
+ toObject(new PagedModelType>() {});
PageMetadata metadata = resources.getMetadata();
log.info("Got {} of {} stores: ", resources.getContent().size(), metadata.getTotalElements());
StreamSupport.stream(resources.spliterator(), false).//
- map(Resource::getContent).//
+ map(EntityModel::getContent).//
forEach(store -> log.info("{} - {}", store.name, store.address));
}
@@ -112,14 +112,15 @@ public class StarbucksClient {
URI uri = URI.create(String.format(SERVICE_URI, port));
RequestEntity request = RequestEntity.get(uri).accept(HAL_JSON).build();
- Resource