Updating source to reflect latest changes in Spring HATEOAS snapshots.
This commit is contained in:
@@ -155,7 +155,7 @@ public class RepositoryAwareJacksonModule extends SimpleModule implements Initia
|
||||
}
|
||||
}
|
||||
if(entityConversionSvc.canConvert(sourceType, Resource.class)) {
|
||||
Set<Link> links = resource.getLinks();
|
||||
List<Link> links = resource.getLinks();
|
||||
resource = entityConversionSvc.convert(value, Resource.class);
|
||||
resource.add(links);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package org.springframework.data.rest.test.webmvc;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.codehaus.jackson.annotate.JsonAnyGetter;
|
||||
import org.codehaus.jackson.annotate.JsonProperty;
|
||||
@@ -23,7 +23,7 @@ public class CustomResource extends Resource<Map<String, Object>> {
|
||||
}
|
||||
|
||||
@JsonProperty("_links")
|
||||
@Override public Set<Link> getLinks() {
|
||||
@Override public List<Link> getLinks() {
|
||||
return super.getLinks();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user