Skip to content

Commit 5f4abe7

Browse files
committed
DATAREST-1325 - Upgrade Hibernate dependency to 5.2.17.
1 parent 13370f8 commit 5f4abe7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<springdata.keyvalue>2.2.0.BUILD-SNAPSHOT</springdata.keyvalue>
3838
<spring-hateoas>0.25.0.RELEASE</spring-hateoas>
3939

40-
<hibernate.version>4.3.10.Final</hibernate.version>
40+
<hibernate.version>5.2.17.Final</hibernate.version>
4141
<jsonpath>1.1.0</jsonpath>
4242
<bundlor.enabled>false</bundlor.enabled>
4343
</properties>

spring-data-rest-tests/spring-data-rest-tests-jpa/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
<dependency>
5353
<groupId>com.fasterxml.jackson.datatype</groupId>
54-
<artifactId>jackson-datatype-hibernate4</artifactId>
54+
<artifactId>jackson-datatype-hibernate5</artifactId>
5555
</dependency>
5656

5757
<dependency>

spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/json/Jackson2DatatypeHelperIntegrationTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ public void configuresHibernate4ModuleToLoadLazyLoadingProxies() throws Exceptio
7979

8080
PersistentEntity<?, ?> entity = entities.getRequiredPersistentEntity(Order.class);
8181
PersistentProperty<?> property = entity.getRequiredPersistentProperty("creator");
82-
PersistentPropertyAccessor accessor = entity.getPropertyAccessor(orders.findById(this.order.getId()).orElse(null));
82+
PersistentPropertyAccessor<?> accessor = entity
83+
.getPropertyAccessor(orders.findById(this.order.getId()).orElse(null));
8384

8485
assertThat(objectMapper.writeValueAsString(accessor.getProperty(property))).isNotEqualTo("null");
8586
}

0 commit comments

Comments
 (0)