/*******************************************************************************
* 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 UserObject implements BaseItem {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column user.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 user.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 user.description
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private String description;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column user.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 user.activated
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private Boolean activated;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column user.avatar
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private String avatar;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column user.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 user.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 user.password
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private String password;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column user.newPassword
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private String newPassword;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column user.username
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private String username;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column user.isManager
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
private Boolean isManager;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column user.id
*
* @return the value of user.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 user.id
*
* @param id the value for user.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 user.name
*
* @return the value of user.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 user.name
*
* @param name the value for user.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 user.description
*
* @return the value of user.description
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public String getDescription() {
return description;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user.description
*
* @param description the value for user.description
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setDescription(String description) {
this.description = description == null ? null : description.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column user.email
*
* @return the value of user.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 user.email
*
* @param email the value for user.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 user.activated
*
* @return the value of user.activated
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public Boolean getActivated() {
return activated;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user.activated
*
* @param activated the value for user.activated
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setActivated(Boolean activated) {
this.activated = activated;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column user.avatar
*
* @return the value of user.avatar
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public String getAvatar() {
return avatar;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user.avatar
*
* @param avatar the value for user.avatar
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setAvatar(String avatar) {
this.avatar = avatar == null ? null : avatar.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column user.created
*
* @return the value of user.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 user.created
*
* @param created the value for user.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 user.updated
*
* @return the value of user.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 user.updated
*
* @param updated the value for user.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 user.password
*
* @return the value of user.password
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public String getPassword() {
return password;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user.password
*
* @param password the value for user.password
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setPassword(String password) {
this.password = password == null ? null : password.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column user.newPassword
*
* @return the value of user.newPassword
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public String getNewPassword() {
return newPassword;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user.newPassword
*
* @param newPassword the value for user.newPassword
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setNewPassword(String newPassword) {
this.newPassword = newPassword == null ? null : newPassword.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column user.username
*
* @return the value of user.username
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public String getUsername() {
return username;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user.username
*
* @param username the value for user.username
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setUsername(String username) {
this.username = username == null ? null : username.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column user.isManager
*
* @return the value of user.isManager
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public Boolean getIsManager() {
return isManager;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column user.isManager
*
* @param isManager the value for user.isManager
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public void setIsManager(Boolean isManager) {
this.isManager = isManager;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public UserObject(UserObject parent) {
this.id = parent.getId();
this.name = parent.getName();
this.description = parent.getDescription();
this.email = parent.getEmail();
this.activated = parent.getActivated();
this.avatar = parent.getAvatar();
this.created = parent.getCreated();
this.updated = parent.getUpdated();
this.password = parent.getPassword();
this.newPassword = parent.getNewPassword();
this.username = parent.getUsername();
this.isManager = parent.getIsManager();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public UserObject() {
super();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
public UserObject(int id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/
@Override
public UserObject copy() {
return new UserObject(this);
}
}