projects
/
JavaForFun
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66c15a2
)
Spring JPA: a few improvements
author
Gustavo Martin Morcuende
<gu.martinm@gmail.com>
Mon, 25 Jul 2016 19:15:49 +0000
(21:15 +0200)
committer
Gustavo Martin Morcuende
<gu.martinm@gmail.com>
Mon, 25 Jul 2016 19:15:49 +0000
(21:15 +0200)
SpringJava/JPA/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/MyCustomRevision.java
patch
|
blob
|
history
SpringJava/JPA/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/MyCustomRevisionListener.java
patch
|
blob
|
history
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
(file)
--- 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
(file)
--- 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() {
}