/*******************************************************************************
* Copyright [2015] [Onboard team of SERC, Peking University]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package com.onboard.domain.mapper.model;
import com.onboard.domain.mapper.model.common.BaseItem;
import java.util.Date;
public class DiscussionObject implements BaseItem {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column discussion.id
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private Integer id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column discussion.projectId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private Integer projectId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column discussion.subject
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private String subject;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column discussion.content
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private String content;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column discussion.creatorId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private Integer creatorId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column discussion.deleted
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private Boolean deleted;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column discussion.created
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private Date created;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column discussion.updated
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private Date updated;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column discussion.bcId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private Integer bcId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column discussion.creatorName
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private String creatorName;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column discussion.companyId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private Integer companyId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column discussion.creatorAvatar
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private String creatorAvatar;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column discussion.id
*
* @return the value of discussion.id
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public Integer getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column discussion.id
*
* @param id the value for discussion.id
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setId(Integer id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column discussion.projectId
*
* @return the value of discussion.projectId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public Integer getProjectId() {
return projectId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column discussion.projectId
*
* @param projectId the value for discussion.projectId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setProjectId(Integer projectId) {
this.projectId = projectId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column discussion.subject
*
* @return the value of discussion.subject
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public String getSubject() {
return subject;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column discussion.subject
*
* @param subject the value for discussion.subject
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setSubject(String subject) {
this.subject = subject == null ? null : subject.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column discussion.content
*
* @return the value of discussion.content
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public String getContent() {
return content;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column discussion.content
*
* @param content the value for discussion.content
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setContent(String content) {
this.content = content == null ? null : content.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column discussion.creatorId
*
* @return the value of discussion.creatorId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public Integer getCreatorId() {
return creatorId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column discussion.creatorId
*
* @param creatorId the value for discussion.creatorId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setCreatorId(Integer creatorId) {
this.creatorId = creatorId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column discussion.deleted
*
* @return the value of discussion.deleted
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public Boolean getDeleted() {
return deleted;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column discussion.deleted
*
* @param deleted the value for discussion.deleted
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setDeleted(Boolean deleted) {
this.deleted = deleted;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column discussion.created
*
* @return the value of discussion.created
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public Date getCreated() {
return created;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column discussion.created
*
* @param created the value for discussion.created
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setCreated(Date created) {
this.created = created;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column discussion.updated
*
* @return the value of discussion.updated
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public Date getUpdated() {
return updated;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column discussion.updated
*
* @param updated the value for discussion.updated
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setUpdated(Date updated) {
this.updated = updated;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column discussion.bcId
*
* @return the value of discussion.bcId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public Integer getBcId() {
return bcId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column discussion.bcId
*
* @param bcId the value for discussion.bcId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setBcId(Integer bcId) {
this.bcId = bcId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column discussion.creatorName
*
* @return the value of discussion.creatorName
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public String getCreatorName() {
return creatorName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column discussion.creatorName
*
* @param creatorName the value for discussion.creatorName
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setCreatorName(String creatorName) {
this.creatorName = creatorName == null ? null : creatorName.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column discussion.companyId
*
* @return the value of discussion.companyId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public Integer getCompanyId() {
return companyId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column discussion.companyId
*
* @param companyId the value for discussion.companyId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setCompanyId(Integer companyId) {
this.companyId = companyId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column discussion.creatorAvatar
*
* @return the value of discussion.creatorAvatar
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public String getCreatorAvatar() {
return creatorAvatar;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column discussion.creatorAvatar
*
* @param creatorAvatar the value for discussion.creatorAvatar
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setCreatorAvatar(String creatorAvatar) {
this.creatorAvatar = creatorAvatar == null ? null : creatorAvatar.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table discussion
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public DiscussionObject(DiscussionObject parent) {
this.id = parent.getId();
this.projectId = parent.getProjectId();
this.subject = parent.getSubject();
this.content = parent.getContent();
this.creatorId = parent.getCreatorId();
this.deleted = parent.getDeleted();
this.created = parent.getCreated();
this.updated = parent.getUpdated();
this.bcId = parent.getBcId();
this.creatorName = parent.getCreatorName();
this.companyId = parent.getCompanyId();
this.creatorAvatar = parent.getCreatorAvatar();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table discussion
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public DiscussionObject() {
super();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table discussion
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public DiscussionObject(int id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table discussion
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public DiscussionObject(boolean deleted) {
this.deleted = deleted;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table discussion
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public DiscussionObject(int id, boolean deleted) {
this.id = id;
this.deleted = deleted;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table discussion
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
@Override
public DiscussionObject copy() {
return new DiscussionObject(this);
}
}