/*******************************************************************************
* 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 InvitationObject implements BaseItem {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column invitation.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 invitation.userId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private Integer userId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column invitation.token
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private String token;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column invitation.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 invitation.email
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private String email;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column invitation.companyId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private Integer companyId;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column invitation.id
*
* @return the value of invitation.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 invitation.id
*
* @param id the value for invitation.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 invitation.userId
*
* @return the value of invitation.userId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public Integer getUserId() {
return userId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column invitation.userId
*
* @param userId the value for invitation.userId
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setUserId(Integer userId) {
this.userId = userId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column invitation.token
*
* @return the value of invitation.token
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public String getToken() {
return token;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column invitation.token
*
* @param token the value for invitation.token
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setToken(String token) {
this.token = token == null ? null : token.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column invitation.created
*
* @return the value of invitation.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 invitation.created
*
* @param created the value for invitation.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 invitation.email
*
* @return the value of invitation.email
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public String getEmail() {
return email;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column invitation.email
*
* @param email the value for invitation.email
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setEmail(String email) {
this.email = email == null ? null : email.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column invitation.companyId
*
* @return the value of invitation.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 invitation.companyId
*
* @param companyId the value for invitation.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 corresponds to the database table invitation
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public InvitationObject(InvitationObject parent) {
this.id = parent.getId();
this.userId = parent.getUserId();
this.token = parent.getToken();
this.created = parent.getCreated();
this.email = parent.getEmail();
this.companyId = parent.getCompanyId();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table invitation
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public InvitationObject() {
super();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table invitation
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public InvitationObject(int id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table invitation
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
@Override
public InvitationObject copy() {
return new InvitationObject(this);
}
}