Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IT for coercing epoch to Dates #320

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions elide-integration-tests/src/test/java/example/Book.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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<Author> authors = new ArrayList<>();
private Collection<Chapter> chapters = new ArrayList<>();
private String editorName;
Expand Down Expand Up @@ -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;
}

Expand Down