From c9d1bb1022cd74afe201ab4113f908be32e6dc6a Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Mon, 25 Jul 2016 21:15:49 +0200 Subject: [PATCH] Spring JPA: a few improvements --- .../de/spring/example/persistence/domain/audit/MyCustomRevision.java | 1 - .../example/persistence/domain/audit/MyCustomRevisionListener.java | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/SpringJava/JPA/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/MyCustomRevision.java b/SpringJava/JPA/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/MyCustomRevision.java index 3df9d95..3211cb8 100644 --- a/SpringJava/JPA/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/MyCustomRevision.java +++ b/SpringJava/JPA/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/MyCustomRevision.java @@ -1,6 +1,5 @@ package de.spring.example.persistence.domain.audit; -import java.time.LocalDateTime; import java.util.Date; import javax.persistence.Column; diff --git a/SpringJava/JPA/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/MyCustomRevisionListener.java b/SpringJava/JPA/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/MyCustomRevisionListener.java index fbdc708..ff5f57e 100644 --- a/SpringJava/JPA/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/MyCustomRevisionListener.java +++ b/SpringJava/JPA/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/MyCustomRevisionListener.java @@ -6,6 +6,7 @@ import de.spring.example.context.UsernameThreadContext; public class MyCustomRevisionListener implements RevisionListener { + // It will be used by Hibernate. protected MyCustomRevisionListener() { } -- 2.1.4