diff --git a/elide-integration-tests/src/test/java/example/Book.java b/elide-integration-tests/src/test/java/example/Book.java index 52c7d2353c..9f1354166f 100644 --- a/elide-integration-tests/src/test/java/example/Book.java +++ b/elide-integration-tests/src/test/java/example/Book.java @@ -28,6 +28,10 @@ import javax.persistence.Table; import javax.persistence.Transient; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Date; + /** * Model for books. */ @@ -43,7 +47,7 @@ public class Book extends BaseId { private String title; private String genre; private String language; - private long publishDate = 0; + private Date publishDate = new Date(0); private Collection authors = new ArrayList<>(); private Collection chapters = new ArrayList<>(); private String editorName; @@ -75,11 +79,11 @@ public void setLanguage(String language) { this.language = language; } - public void setPublishDate(final long publishDate) { + public void setPublishDate(final Date publishDate) { this.publishDate = publishDate; } - public long getPublishDate() { + public Date getPublishDate() { return this.publishDate; }