diff --git a/pom.xml b/pom.xml index 8d857f94b..59e882cce 100644 --- a/pom.xml +++ b/pom.xml @@ -117,6 +117,11 @@ spring-libs-snapshot https://repo.spring.io/libs-snapshot + + sonatype-nexus-snapshots + Sonatype Nexus Snapshots + https://oss.sonatype.org/content/repositories/snapshots + diff --git a/spring-data-rest-webmvc/pom.xml b/spring-data-rest-webmvc/pom.xml index a25530b54..03f482e02 100644 --- a/spring-data-rest-webmvc/pom.xml +++ b/spring-data-rest-webmvc/pom.xml @@ -46,7 +46,7 @@ com.fasterxml.jackson.core jackson-databind - ${jackson} + 2.8.7-SNAPSHOT diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappedProperties.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappedProperties.java index 3492eb38d..bc3eb9677 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappedProperties.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappedProperties.java @@ -64,6 +64,9 @@ private MappedProperties(PersistentEntity entity, BeanDescription descript for (BeanPropertyDefinition property : description.findProperties()) { + if (description.getIgnoredPropertyNames().contains(property.getName())) { + continue; + } PersistentProperty persistentProperty = entity.getPersistentProperty(property.getInternalName()); if (persistentProperty != null) {