DATAREST-1325 - Upgrade Hibernate dependency to 5.2.17.

This commit is contained in:
Oliver Drotbohm
2018-12-20 17:17:17 +01:00
parent 13370f8e2f
commit 5f4abe70f3
3 changed files with 4 additions and 3 deletions

View File

@@ -37,7 +37,7 @@
<springdata.keyvalue>2.2.0.BUILD-SNAPSHOT</springdata.keyvalue>
<spring-hateoas>0.25.0.RELEASE</spring-hateoas>
<hibernate.version>4.3.10.Final</hibernate.version>
<hibernate.version>5.2.17.Final</hibernate.version>
<jsonpath>1.1.0</jsonpath>
<bundlor.enabled>false</bundlor.enabled>
</properties>

View File

@@ -51,7 +51,7 @@
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-hibernate4</artifactId>
<artifactId>jackson-datatype-hibernate5</artifactId>
</dependency>
<dependency>

View File

@@ -79,7 +79,8 @@ public class Jackson2DatatypeHelperIntegrationTests {
PersistentEntity<?, ?> entity = entities.getRequiredPersistentEntity(Order.class);
PersistentProperty<?> property = entity.getRequiredPersistentProperty("creator");
PersistentPropertyAccessor accessor = entity.getPropertyAccessor(orders.findById(this.order.getId()).orElse(null));
PersistentPropertyAccessor<?> accessor = entity
.getPropertyAccessor(orders.findById(this.order.getId()).orElse(null));
assertThat(objectMapper.writeValueAsString(accessor.getProperty(property))).isNotEqualTo("null");
}