/******************************************************************************* * 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 UploadObject implements BaseItem { /** * This field was generated by MyBatis Generator. * This field corresponds to the database column upload.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 upload.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 upload.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 upload.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 upload.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 upload.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 upload.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 upload.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 upload.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 upload.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 upload.id * * @return the value of upload.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 upload.id * * @param id the value for upload.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 upload.projectId * * @return the value of upload.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 upload.projectId * * @param projectId the value for upload.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 upload.content * * @return the value of upload.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 upload.content * * @param content the value for upload.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 upload.creatorId * * @return the value of upload.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 upload.creatorId * * @param creatorId the value for upload.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 upload.deleted * * @return the value of upload.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 upload.deleted * * @param deleted the value for upload.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 upload.created * * @return the value of upload.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 upload.created * * @param created the value for upload.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 upload.updated * * @return the value of upload.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 upload.updated * * @param updated the value for upload.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 upload.creatorName * * @return the value of upload.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 upload.creatorName * * @param creatorName the value for upload.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 upload.companyId * * @return the value of upload.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 upload.companyId * * @param companyId the value for upload.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 upload.creatorAvatar * * @return the value of upload.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 upload.creatorAvatar * * @param creatorAvatar the value for upload.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 upload * * @mbggenerated Wed Aug 26 19:51:19 CST 2015 */ public UploadObject(UploadObject parent) { this.id = parent.getId(); this.projectId = parent.getProjectId(); this.content = parent.getContent(); this.creatorId = parent.getCreatorId(); this.deleted = parent.getDeleted(); 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 upload * * @mbggenerated Wed Aug 26 19:51:19 CST 2015 */ public UploadObject() { super(); } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table upload * * @mbggenerated Wed Aug 26 19:51:19 CST 2015 */ public UploadObject(int id) { this.id = id; } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table upload * * @mbggenerated Wed Aug 26 19:51:19 CST 2015 */ public UploadObject(boolean deleted) { this.deleted = deleted; } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table upload * * @mbggenerated Wed Aug 26 19:51:19 CST 2015 */ public UploadObject(int id, boolean deleted) { this.id = id; this.deleted = deleted; } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table upload * * @mbggenerated Wed Aug 26 19:51:19 CST 2015 */ @Override public UploadObject copy() { return new UploadObject(this); } }