From: Gustavo Martin Morcuende Date: Mon, 25 Jul 2016 19:15:49 +0000 (+0200) Subject: Spring JPA: a few improvements X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=c9d1bb1022cd74afe201ab4113f908be32e6dc6a;p=JavaForFun Spring JPA: a few improvements --- 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() { }