From c8d6a8c02172fc182983aaa574ab30fbe74f4560 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 3 Jul 2016 17:36:56 +0200 Subject: [PATCH] Spring JPA: Jackson, OffsetDateTime object serialization --- SpringJava/JPA/pom.xml | 4 ++- .../LocalDateTimeAttributeConverter.java | 22 ------------ .../OffsetDateTimeAttributeConverter.java | 39 ++++++++++++++++++++++ .../de/spring/persistence/example/domain/Ad.java | 23 ++++++++----- 4 files changed, 56 insertions(+), 32 deletions(-) delete mode 100644 SpringJava/JPA/src/main/java/de/spring/persistence/converters/LocalDateTimeAttributeConverter.java create mode 100644 SpringJava/JPA/src/main/java/de/spring/persistence/converters/OffsetDateTimeAttributeConverter.java diff --git a/SpringJava/JPA/pom.xml b/SpringJava/JPA/pom.xml index 0794f92..aebecc9 100644 --- a/SpringJava/JPA/pom.xml +++ b/SpringJava/JPA/pom.xml @@ -184,12 +184,14 @@ + + Non required dependency. It is already declared in jackson-datatype-jsr310 com.fasterxml.jackson.core jackson-databind 2.6.4 + -->