diff --git a/jpa/java8/pom.xml b/jpa/java8/pom.xml index 5d2561fa..981ae6d6 100644 --- a/jpa/java8/pom.xml +++ b/jpa/java8/pom.xml @@ -18,6 +18,12 @@ spring-aspects + + org.jadira.usertype + usertype.extended + 3.2.0.GA + + \ No newline at end of file diff --git a/jpa/java8/src/main/java/example/springdata/jpa/java8/AbstractEntity.java b/jpa/java8/src/main/java/example/springdata/jpa/java8/AbstractEntity.java index d625f98f..74592608 100644 --- a/jpa/java8/src/main/java/example/springdata/jpa/java8/AbstractEntity.java +++ b/jpa/java8/src/main/java/example/springdata/jpa/java8/AbstractEntity.java @@ -21,6 +21,7 @@ import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.MappedSuperclass; +import org.hibernate.annotations.Type; import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.LastModifiedDate; @@ -33,10 +34,10 @@ public class AbstractEntity { @Id @GeneratedValue Long id; @CreatedDate// - // @Type(type = "org.jadira.usertype.dateandtime.threetenbp.PersistentZonedDateTime")// + @Type(type = "org.jadira.usertype.dateandtime.threeten.PersistentZonedDateTime")// ZonedDateTime createdDate; @LastModifiedDate// - // @Type(type = "org.jadira.usertype.dateandtime.threetenbp.PersistentZonedDateTime")// + @Type(type = "org.jadira.usertype.dateandtime.threeten.PersistentZonedDateTime")// ZonedDateTime modifiedDate; }