📄 commentreply.java
字号:
package org.whatisjava.dang.domain;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
public class CommentReply implements java.io.Serializable {
private static final long serialVersionUID = 7967802923169773881L;
private Integer id;
private Integer commentId;
// private Integer userId;
private User user;
private Long replyTime;
private String replyContent;
private Integer turn;
// Constructors
/** default constructor */
public CommentReply() {
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getCommentId() {
return this.commentId;
}
public void setCommentId(Integer commentId) {
this.commentId = commentId;
}
public Long getReplyTime() {
return this.replyTime;
}
private static final DateFormat format;
static{
format=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
format.setTimeZone(TimeZone.getTimeZone("UTC"));
}
public String getReplyDate(){
return format.format(new Date(replyTime));
}
public void setReplyTime(Long replyTime) {
this.replyTime = replyTime;
}
public String getReplyContent() {
return this.replyContent;
}
public void setReplyContent(String replyContent) {
this.replyContent = replyContent;
}
public Integer getTurn() {
return this.turn;
}
public void setTurn(Integer turn) {
this.turn = turn;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -