package webctdbexport.db;
// Generated 17-Jun-2011 11:38:57 by Hibernate Tools 3.4.0.CR1
import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;
/**
* DisTopic generated by hbm2java
*/
@Entity
@Table(name="DIS_TOPIC"
)
public class DisTopic implements java.io.Serializable {
private BigDecimal id;
private CmsContentEntry cmsContentEntry;
private boolean isgradable;
private boolean islocked;
private boolean isprivate;
private boolean isanonymous;
private boolean iseditable;
private int position;
private boolean isHtmlContent;
private boolean deletedFlag;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
private BigDecimal lastPostDate;
private String topicType;
private String allowPostReply;
private boolean isratable;
private boolean ratingType;
private boolean canAddRatingComment;
private boolean canSeeAllPostRating;
private boolean anonymousRating;
private boolean viewBeforeRate;
private String ratingInstructions;
private boolean accessType;
private boolean allowartifactcreationFlag;
private Set<DisMessage> disMessages = new HashSet<DisMessage>(0);
private Set<DisRatingDefinition> disRatingDefinitions = new HashSet<DisRatingDefinition>(0);
private Set<DisTopicPersonSummary> disTopicPersonSummaries = new HashSet<DisTopicPersonSummary>(0);
public DisTopic() {
}
public DisTopic(CmsContentEntry cmsContentEntry, boolean isgradable, boolean islocked, boolean isprivate, boolean isanonymous, boolean iseditable, int position, boolean isHtmlContent, boolean deletedFlag, BigDecimal createTs, BigDecimal lastmodifyTs, String topicType, String allowPostReply, boolean isratable, boolean ratingType, boolean canAddRatingComment, boolean canSeeAllPostRating, boolean anonymousRating, boolean viewBeforeRate, boolean accessType, boolean allowartifactcreationFlag) {
this.cmsContentEntry = cmsContentEntry;
this.isgradable = isgradable;
this.islocked = islocked;
this.isprivate = isprivate;
this.isanonymous = isanonymous;
this.iseditable = iseditable;
this.position = position;
this.isHtmlContent = isHtmlContent;
this.deletedFlag = deletedFlag;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.topicType = topicType;
this.allowPostReply = allowPostReply;
this.isratable = isratable;
this.ratingType = ratingType;
this.canAddRatingComment = canAddRatingComment;
this.canSeeAllPostRating = canSeeAllPostRating;
this.anonymousRating = anonymousRating;
this.viewBeforeRate = viewBeforeRate;
this.accessType = accessType;
this.allowartifactcreationFlag = allowartifactcreationFlag;
}
public DisTopic(CmsContentEntry cmsContentEntry, boolean isgradable, boolean islocked, boolean isprivate, boolean isanonymous, boolean iseditable, int position, boolean isHtmlContent, boolean deletedFlag, BigDecimal createTs, BigDecimal lastmodifyTs, BigDecimal lastPostDate, String topicType, String allowPostReply, boolean isratable, boolean ratingType, boolean canAddRatingComment, boolean canSeeAllPostRating, boolean anonymousRating, boolean viewBeforeRate, String ratingInstructions, boolean accessType, boolean allowartifactcreationFlag, Set<DisMessage> disMessages, Set<DisRatingDefinition> disRatingDefinitions, Set<DisTopicPersonSummary> disTopicPersonSummaries) {
this.cmsContentEntry = cmsContentEntry;
this.isgradable = isgradable;
this.islocked = islocked;
this.isprivate = isprivate;
this.isanonymous = isanonymous;
this.iseditable = iseditable;
this.position = position;
this.isHtmlContent = isHtmlContent;
this.deletedFlag = deletedFlag;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.lastPostDate = lastPostDate;
this.topicType = topicType;
this.allowPostReply = allowPostReply;
this.isratable = isratable;
this.ratingType = ratingType;
this.canAddRatingComment = canAddRatingComment;
this.canSeeAllPostRating = canSeeAllPostRating;
this.anonymousRating = anonymousRating;
this.viewBeforeRate = viewBeforeRate;
this.ratingInstructions = ratingInstructions;
this.accessType = accessType;
this.allowartifactcreationFlag = allowartifactcreationFlag;
this.disMessages = disMessages;
this.disRatingDefinitions = disRatingDefinitions;
this.disTopicPersonSummaries = disTopicPersonSummaries;
}
@GenericGenerator(name="generator", strategy="foreign", parameters=@Parameter(name="property", value="cmsContentEntry"))@Id @GeneratedValue(generator="generator")
@Column(name="ID", nullable=false, precision=20, scale=0)
public BigDecimal getId() {
return this.id;
}
public void setId(BigDecimal id) {
this.id = id;
}
@OneToOne(fetch=FetchType.LAZY)
public CmsContentEntry getCmsContentEntry() {
return this.cmsContentEntry;
}
public void setCmsContentEntry(CmsContentEntry cmsContentEntry) {
this.cmsContentEntry = cmsContentEntry;
}
@Column(name="ISGRADABLE", nullable=false, precision=1, scale=0)
public boolean isIsgradable() {
return this.isgradable;
}
public void setIsgradable(boolean isgradable) {
this.isgradable = isgradable;
}
@Column(name="ISLOCKED", nullable=false, precision=1, scale=0)
public boolean isIslocked() {
return this.islocked;
}
public void setIslocked(boolean islocked) {
this.islocked = islocked;
}
@Column(name="ISPRIVATE", nullable=false, precision=1, scale=0)
public boolean isIsprivate() {
return this.isprivate;
}
public void setIsprivate(boolean isprivate) {
this.isprivate = isprivate;
}
@Column(name="ISANONYMOUS", nullable=false, precision=1, scale=0)
public boolean isIsanonymous() {
return this.isanonymous;
}
public void setIsanonymous(boolean isanonymous) {
this.isanonymous = isanonymous;
}
@Column(name="ISEDITABLE", nullable=false, precision=1, scale=0)
public boolean isIseditable() {
return this.iseditable;
}
public void setIseditable(boolean iseditable) {
this.iseditable = iseditable;
}
@Column(name="POSITION", nullable=false, precision=6, scale=0)
public int getPosition() {
return this.position;
}
public void setPosition(int position) {
this.position = position;
}
@Column(name="IS_HTML_CONTENT", nullable=false, precision=1, scale=0)
public boolean isIsHtmlContent() {
return this.isHtmlContent;
}
public void setIsHtmlContent(boolean isHtmlContent) {
this.isHtmlContent = isHtmlContent;
}
@Column(name="DELETED_FLAG", nullable=false, precision=1, scale=0)
public boolean isDeletedFlag() {
return this.deletedFlag;
}
public void setDeletedFlag(boolean deletedFlag) {
this.deletedFlag = deletedFlag;
}
@Column(name="CREATE_TS", nullable=false, precision=20, scale=0)
public BigDecimal getCreateTs() {
return this.createTs;
}
public void setCreateTs(BigDecimal createTs) {
this.createTs = createTs;
}
@Column(name="LASTMODIFY_TS", nullable=false, precision=20, scale=0)
public BigDecimal getLastmodifyTs() {
return this.lastmodifyTs;
}
public void setLastmodifyTs(BigDecimal lastmodifyTs) {
this.lastmodifyTs = lastmodifyTs;
}
@Column(name="LAST_POST_DATE", precision=20, scale=0)
public BigDecimal getLastPostDate() {
return this.lastPostDate;
}
public void setLastPostDate(BigDecimal lastPostDate) {
this.lastPostDate = lastPostDate;
}
@Column(name="TOPIC_TYPE", nullable=false, length=10)
public String getTopicType() {
return this.topicType;
}
public void setTopicType(String topicType) {
this.topicType = topicType;
}
@Column(name="ALLOW_POST_REPLY", nullable=false, length=10)
public String getAllowPostReply() {
return this.allowPostReply;
}
public void setAllowPostReply(String allowPostReply) {
this.allowPostReply = allowPostReply;
}
@Column(name="ISRATABLE", nullable=false, precision=1, scale=0)
public boolean isIsratable() {
return this.isratable;
}
public void setIsratable(boolean isratable) {
this.isratable = isratable;
}
@Column(name="RATING_TYPE", nullable=false, precision=1, scale=0)
public boolean isRatingType() {
return this.ratingType;
}
public void setRatingType(boolean ratingType) {
this.ratingType = ratingType;
}
@Column(name="CAN_ADD_RATING_COMMENT", nullable=false, precision=1, scale=0)
public boolean isCanAddRatingComment() {
return this.canAddRatingComment;
}
public void setCanAddRatingComment(boolean canAddRatingComment) {
this.canAddRatingComment = canAddRatingComment;
}
@Column(name="CAN_SEE_ALL_POST_RATING", nullable=false, precision=1, scale=0)
public boolean isCanSeeAllPostRating() {
return this.canSeeAllPostRating;
}
public void setCanSeeAllPostRating(boolean canSeeAllPostRating) {
this.canSeeAllPostRating = canSeeAllPostRating;
}
@Column(name="ANONYMOUS_RATING", nullable=false, precision=1, scale=0)
public boolean isAnonymousRating() {
return this.anonymousRating;
}
public void setAnonymousRating(boolean anonymousRating) {
this.anonymousRating = anonymousRating;
}
@Column(name="VIEW_BEFORE_RATE", nullable=false, precision=1, scale=0)
public boolean isViewBeforeRate() {
return this.viewBeforeRate;
}
public void setViewBeforeRate(boolean viewBeforeRate) {
this.viewBeforeRate = viewBeforeRate;
}
@Column(name="RATING_INSTRUCTIONS", length=4000)
public String getRatingInstructions() {
return this.ratingInstructions;
}
public void setRatingInstructions(String ratingInstructions) {
this.ratingInstructions = ratingInstructions;
}
@Column(name="ACCESS_TYPE", nullable=false, precision=1, scale=0)
public boolean isAccessType() {
return this.accessType;
}
public void setAccessType(boolean accessType) {
this.accessType = accessType;
}
@Column(name="ALLOWARTIFACTCREATION_FLAG", nullable=false, precision=1, scale=0)
public boolean isAllowartifactcreationFlag() {
return this.allowartifactcreationFlag;
}
public void setAllowartifactcreationFlag(boolean allowartifactcreationFlag) {
this.allowartifactcreationFlag = allowartifactcreationFlag;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="disTopic")
public Set<DisMessage> getDisMessages() {
return this.disMessages;
}
public void setDisMessages(Set<DisMessage> disMessages) {
this.disMessages = disMessages;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="disTopic")
public Set<DisRatingDefinition> getDisRatingDefinitions() {
return this.disRatingDefinitions;
}
public void setDisRatingDefinitions(Set<DisRatingDefinition> disRatingDefinitions) {
this.disRatingDefinitions = disRatingDefinitions;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="disTopic")
public Set<DisTopicPersonSummary> getDisTopicPersonSummaries() {
return this.disTopicPersonSummaries;
}
public void setDisTopicPersonSummaries(Set<DisTopicPersonSummary> disTopicPersonSummaries) {
this.disTopicPersonSummaries = disTopicPersonSummaries;
}
}