Skip to content

Commit

Permalink
IT for coercing epoch to Dates
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyao1991 committed Aug 19, 2016
1 parent 297f3a0 commit 646e75e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions elide-integration-tests/src/test/java/example/Book.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import javax.persistence.Table;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;

/**
* Model for books.
Expand All @@ -37,7 +38,7 @@ public class Book {
private String title;
private String genre;
private String language;
private long publishDate = 0;
private Date publishDate = new Date(0);
private Collection<Author> authors = new ArrayList<>();
private Collection<Chapter> chapters = new ArrayList<>();

Expand Down Expand Up @@ -74,11 +75,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;
}

Expand Down

0 comments on commit 646e75e

Please sign in to comment.