/*******************************************************************************
* 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 CommentObject implements BaseItem {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column comment.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 comment.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 comment.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 comment.attachId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private Integer attachId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column comment.attachType
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private String attachType;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column comment.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 comment.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 comment.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 comment.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 comment.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 comment.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 comment.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 comment.id
*
* @return the value of comment.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 comment.id
*
* @param id the value for comment.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 comment.content
*
* @return the value of comment.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 comment.content
*
* @param content the value for comment.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 comment.creatorId
*
* @return the value of comment.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 comment.creatorId
*
* @param creatorId the value for comment.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 comment.attachId
*
* @return the value of comment.attachId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public Integer getAttachId() {
return attachId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column comment.attachId
*
* @param attachId the value for comment.attachId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setAttachId(Integer attachId) {
this.attachId = attachId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column comment.attachType
*
* @return the value of comment.attachType
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public String getAttachType() {
return attachType;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column comment.attachType
*
* @param attachType the value for comment.attachType
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setAttachType(String attachType) {
this.attachType = attachType == null ? null : attachType.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column comment.deleted
*
* @return the value of comment.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 comment.deleted
*
* @param deleted the value for comment.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 comment.projectId
*
* @return the value of comment.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 comment.projectId
*
* @param projectId the value for comment.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 comment.created
*
* @return the value of comment.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 comment.created
*
* @param created the value for comment.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 comment.updated
*
* @return the value of comment.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 comment.updated
*
* @param updated the value for comment.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 comment.creatorName
*
* @return the value of comment.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 comment.creatorName
*
* @param creatorName the value for comment.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 comment.companyId
*
* @return the value of comment.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 comment.companyId
*
* @param companyId the value for comment.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 comment.creatorAvatar
*
* @return the value of comment.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 comment.creatorAvatar
*
* @param creatorAvatar the value for comment.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 comment
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public CommentObject(CommentObject parent) {
this.id = parent.getId();
this.content = parent.getContent();
this.creatorId = parent.getCreatorId();
this.attachId = parent.getAttachId();
this.attachType = parent.getAttachType();
this.deleted = parent.getDeleted();
this.projectId = parent.getProjectId();
this.created = parent.getCreated();
this.updated = parent.getUpdated();
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 comment
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public CommentObject() {
super();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table comment
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public CommentObject(int id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table comment
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public CommentObject(boolean deleted) {
this.deleted = deleted;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table comment
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public CommentObject(int id, boolean deleted) {
this.id = id;
this.deleted = deleted;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table comment
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
@Override
public CommentObject copy() {
return new CommentObject(this);
}
}