-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
1,029 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
package com.wzy.wiki.domain; | ||
|
||
import java.util.Date; | ||
|
||
public class EbookSnapshot { | ||
private Long id; | ||
|
||
private Long ebookId; | ||
|
||
private Date date; | ||
|
||
private Integer viewCount; | ||
|
||
private Integer voteCount; | ||
|
||
private Integer viewIncrease; | ||
|
||
private Integer voteIncrease; | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
public Long getEbookId() { | ||
return ebookId; | ||
} | ||
|
||
public void setEbookId(Long ebookId) { | ||
this.ebookId = ebookId; | ||
} | ||
|
||
public Date getDate() { | ||
return date; | ||
} | ||
|
||
public void setDate(Date date) { | ||
this.date = date; | ||
} | ||
|
||
public Integer getViewCount() { | ||
return viewCount; | ||
} | ||
|
||
public void setViewCount(Integer viewCount) { | ||
this.viewCount = viewCount; | ||
} | ||
|
||
public Integer getVoteCount() { | ||
return voteCount; | ||
} | ||
|
||
public void setVoteCount(Integer voteCount) { | ||
this.voteCount = voteCount; | ||
} | ||
|
||
public Integer getViewIncrease() { | ||
return viewIncrease; | ||
} | ||
|
||
public void setViewIncrease(Integer viewIncrease) { | ||
this.viewIncrease = viewIncrease; | ||
} | ||
|
||
public Integer getVoteIncrease() { | ||
return voteIncrease; | ||
} | ||
|
||
public void setVoteIncrease(Integer voteIncrease) { | ||
this.voteIncrease = voteIncrease; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append(getClass().getSimpleName()); | ||
sb.append(" ["); | ||
sb.append("Hash = ").append(hashCode()); | ||
sb.append(", id=").append(id); | ||
sb.append(", ebookId=").append(ebookId); | ||
sb.append(", date=").append(date); | ||
sb.append(", viewCount=").append(viewCount); | ||
sb.append(", voteCount=").append(voteCount); | ||
sb.append(", viewIncrease=").append(viewIncrease); | ||
sb.append(", voteIncrease=").append(voteIncrease); | ||
sb.append("]"); | ||
return sb.toString(); | ||
} | ||
} |
Oops, something went wrong.