@Entity
public class CmsSurvey
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 java.lang.String |
surveyType
survey type(survey,exam)
问卷类型(survey:问卷,exam:考试)
|
private @NotBlank @Length(max=100) java.lang.String |
title
title
标题
|
private long |
userId
user id
发布用户id
|
private int |
votes
votes
投票次数
|
构造器和说明 |
---|
CmsSurvey() |
CmsSurvey(short siteId,
long userId,
java.lang.String surveyType,
java.lang.String title,
int votes,
java.util.Date startDate,
java.util.Date endDate,
boolean allowAnonymous,
java.util.Date createDate,
boolean disabled) |
CmsSurvey(short siteId,
long userId,
java.lang.String surveyType,
java.lang.String title,
java.lang.String description,
int votes,
java.util.Date startDate,
java.util.Date endDate,
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 |
getSurveyType() |
java.lang.String |
getTitle() |
long |
getUserId() |
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 |
setSurveyType(java.lang.String surveyType) |
void |
setTitle(java.lang.String title) |
void |
setUserId(long userId) |
void |
setVotes(int votes) |
private static final long serialVersionUID
private java.lang.Long id
private short siteId
private long userId
发布用户id
private java.lang.String surveyType
问卷类型(survey:问卷,exam:考试)
@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 int votes
投票次数
@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 boolean allowAnonymous
允许匿名
private java.util.Date createDate
创建日期
private boolean disabled
public CmsSurvey()
public CmsSurvey(short siteId, long userId, java.lang.String surveyType, java.lang.String title, int votes, java.util.Date startDate, java.util.Date endDate, boolean allowAnonymous, java.util.Date createDate, boolean disabled)
public CmsSurvey(short siteId, long userId, java.lang.String surveyType, java.lang.String title, java.lang.String description, int votes, java.util.Date startDate, java.util.Date endDate, 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 long getUserId()
public void setUserId(long userId)
public java.lang.String getSurveyType()
public void setSurveyType(java.lang.String surveyType)
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 int getVotes()
public void setVotes(int votes)
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 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)