@Entity
public class CmsVote
extends java.lang.Object
implements java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
private boolean |
allowAnonymous
allow anonymous
允许匿名
|
private java.util.Date |
createDate
create date
创建日期
|
private @Length(max=300) java.lang.String |
description
description
描述
|
private boolean |
disabled |
private java.util.Date |
endDate
end date
结束日期
|
private java.lang.Long |
id
id
|
private static long |
serialVersionUID |
private short |
siteId |
private java.util.Date |
startDate
start date
开始日期
|
private @NotBlank @Length(max=100) java.lang.String |
title
title
标题
|
private int |
votes
votes
投票次数
|
构造器和说明 |
---|
CmsVote() |
CmsVote(short siteId,
java.util.Date startDate,
java.util.Date endDate,
int votes,
java.lang.String title,
boolean allowAnonymous,
java.util.Date createDate,
boolean disabled) |
CmsVote(short siteId,
java.util.Date startDate,
java.util.Date endDate,
int votes,
java.lang.String title,
java.lang.String description,
boolean allowAnonymous,
java.util.Date createDate,
boolean disabled) |
限定符和类型 | 方法和说明 |
---|---|
java.util.Date |
getCreateDate() |
java.lang.String |
getDescription() |
java.util.Date |
getEndDate() |
java.lang.Long |
getId() |
short |
getSiteId() |
java.util.Date |
getStartDate() |
java.lang.String |
getTitle() |
int |
getVotes() |
boolean |
isAllowAnonymous() |
boolean |
isDisabled() |
void |
setAllowAnonymous(boolean allowAnonymous) |
void |
setCreateDate(java.util.Date createDate) |
void |
setDescription(java.lang.String description) |
void |
setDisabled(boolean disabled) |
void |
setEndDate(java.util.Date endDate) |
void |
setId(java.lang.Long id) |
void |
setSiteId(short siteId) |
void |
setStartDate(java.util.Date startDate) |
void |
setTitle(java.lang.String title) |
void |
setVotes(int votes) |
private static final long serialVersionUID
private java.lang.Long id
private short siteId
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") private java.util.Date startDate
开始日期
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") private java.util.Date endDate
结束日期
private int votes
投票次数
@NotBlank @Length(max=100) private @NotBlank @Length(max=100) java.lang.String title
标题
@Length(max=300) private @Length(max=300) java.lang.String description
描述
private boolean allowAnonymous
允许匿名
private java.util.Date createDate
创建日期
private boolean disabled
public CmsVote()
public CmsVote(short siteId, java.util.Date startDate, java.util.Date endDate, int votes, java.lang.String title, boolean allowAnonymous, java.util.Date createDate, boolean disabled)
public CmsVote(short siteId, java.util.Date startDate, java.util.Date endDate, int votes, java.lang.String title, java.lang.String description, boolean allowAnonymous, java.util.Date createDate, boolean disabled)
public java.lang.Long getId()
public void setId(java.lang.Long id)
public short getSiteId()
public void setSiteId(short siteId)
public java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
public java.util.Date getEndDate()
public void setEndDate(java.util.Date endDate)
public int getVotes()
public void setVotes(int votes)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public boolean isAllowAnonymous()
public void setAllowAnonymous(boolean allowAnonymous)
public java.util.Date getCreateDate()
public void setCreateDate(java.util.Date createDate)
public boolean isDisabled()
public void setDisabled(boolean disabled)