Skip to content

Commit 8d85c61

Browse files
author
Mathias Düsterhöft
committed
fixed with skipping ignored properties
only working with jackson 2.8.7-SNAPSHOT see FasterXML/jackson-databind#935
1 parent c46df6e commit 8d85c61

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@
117117
<id>spring-libs-snapshot</id>
118118
<url>https://repo.spring.io/libs-snapshot</url>
119119
</repository>
120+
<repository>
121+
<id>sonatype-nexus-snapshots</id>
122+
<name>Sonatype Nexus Snapshots</name>
123+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
124+
</repository>
120125
</repositories>
121126

122127
<pluginRepositories>

spring-data-rest-webmvc/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<dependency>
4747
<groupId>com.fasterxml.jackson.core</groupId>
4848
<artifactId>jackson-databind</artifactId>
49-
<version>${jackson}</version>
49+
<version>2.8.7-SNAPSHOT</version>
5050
</dependency>
5151

5252
<dependency>

spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/MappedProperties.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ private MappedProperties(PersistentEntity<?, ?> entity, BeanDescription descript
6464

6565
for (BeanPropertyDefinition property : description.findProperties()) {
6666

67+
if (description.getIgnoredPropertyNames().contains(property.getName())) {
68+
continue;
69+
}
6770
PersistentProperty<?> persistentProperty = entity.getPersistentProperty(property.getInternalName());
6871

6972
if (persistentProperty != null) {

0 commit comments

Comments
 (0)