/******************************************************************************* * 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; public class DepartmentObject implements BaseItem { /** * This field was generated by MyBatis Generator. * This field corresponds to the database column department.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 department.name * * @mbggenerated Wed Aug 26 19:51:19 CST 2015 */ private String name; /** * This field was generated by MyBatis Generator. * This field corresponds to the database column department.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 department.customOrder * * @mbggenerated Wed Aug 26 19:51:19 CST 2015 */ private Integer customOrder; /** * This method was generated by MyBatis Generator. * This method returns the value of the database column department.id * * @return the value of department.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 department.id * * @param id the value for department.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 department.name * * @return the value of department.name * * @mbggenerated Wed Aug 26 19:51:19 CST 2015 */ public String getName() { return name; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column department.name * * @param name the value for department.name * * @mbggenerated Wed Aug 26 19:51:19 CST 2015 */ public void setName(String name) { this.name = name == null ? null : name.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column department.companyId * * @return the value of department.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 department.companyId * * @param companyId the value for department.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 department.customOrder * * @return the value of department.customOrder * * @mbggenerated Wed Aug 26 19:51:19 CST 2015 */ public Integer getCustomOrder() { return customOrder; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column department.customOrder * * @param customOrder the value for department.customOrder * * @mbggenerated Wed Aug 26 19:51:19 CST 2015 */ public void setCustomOrder(Integer customOrder) { this.customOrder = customOrder; } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table department * * @mbggenerated Wed Aug 26 19:51:19 CST 2015 */ public DepartmentObject(DepartmentObject parent) { this.id = parent.getId(); this.name = parent.getName(); this.companyId = parent.getCompanyId(); this.customOrder = parent.getCustomOrder(); } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table department * * @mbggenerated Wed Aug 26 19:51:19 CST 2015 */ public DepartmentObject() { super(); } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table department * * @mbggenerated Wed Aug 26 19:51:19 CST 2015 */ public DepartmentObject(int id) { this.id = id; } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table department * * @mbggenerated Wed Aug 26 19:51:19 CST 2015 */ @Override public DepartmentObject copy() { return new DepartmentObject(this); } }