• mybatis简单案例源码详细【注释全面】——实体层(User.java)


     /**  
    * @Title: Users.java
    * @Package org.entity
    * @Description: TODO该方法的主要作用:
    * @author A18ccms A18ccms_gmail_com  
    * @date 2017-10-5 下午6:53:06
    * @version V1.0  
    */
    package org.entity;
    
    import java.util.Date;
    
     /**   
     *    
     * 项目名称:ssm_chop1   
     * 类名称:Users   
     * 类描述:   用户表的实体类
     * 创建人:Mu Xiongxiong  
     * 创建时间:2017-10-5 下午6:53:06   
     * 修改人:Mu Xiongxiong   
     * 修改时间:2017-10-5 下午6:53:06   
     * 修改备注:   
     * @version    
     *    
     */
    public class Users {
    	
    	private Integer id;				//用户编号
    	private String userCode;   		//用户编码
    	private String userName;		//用户名
    	private String userPassword;	//密码
    	private String gender;			//性别
    	private Date birthday;			//生日
    	private String phone;			//电话
    	private String address;			//地址
    	private Integer userrole;		//用户角色
    	private Integer createBy;		//创建者
    	private Date creationDate;		//创建时间
    	private Integer modifyBy;		//更新者
    	private Date modifyDate;		//更新时间
    	private Role role;				//用户角色的对象
    	
    	public Integer getId() {
    		return id;
    	}
    	public void setId(Integer id) {
    		this.id = id;
    	}
    	public String getUserCode() {
    		return userCode;
    	}
    	public void setUserCode(String userCode) {
    		this.userCode = userCode;
    	}
    	public String getUserName() {
    		return userName;
    	}
    	public void setUserName(String userName) {
    		this.userName = userName;
    	}
    	public String getUserPassword() {
    		return userPassword;
    	}
    	public void setUserPassword(String userPassword) {
    		this.userPassword = userPassword;
    	}
    	public String getGender() {
    		return gender;
    	}
    	public void setGender(String gender) {
    		this.gender = gender;
    	}
    	public Date getBirthday() {
    		return birthday;
    	}
    	public void setBirthday(Date birthday) {
    		this.birthday = birthday;
    	}
    	public String getPhone() {
    		return phone;
    	}
    	public void setPhone(String phone) {
    		this.phone = phone;
    	}
    	public String getAddress() {
    		return address;
    	}
    	public void setAddress(String address) {
    		this.address = address;
    	}
    	public Integer getUserrole() {
    		return userrole;
    	}
    	public void setUserrole(Integer userrole) {
    		this.userrole = userrole;
    	}
    	public Integer getCreateBy() {
    		return createBy;
    	}
    	public void setCreateBy(Integer createBy) {
    		this.createBy = createBy;
    	}
    	public Date getCreationDate() {
    		return creationDate;
    	}
    	public void setCreationDate(Date creationDate) {
    		this.creationDate = creationDate;
    	}
    	public Integer getModifyBy() {
    		return modifyBy;
    	}
    	public void setModifyBy(Integer modifyBy) {
    		this.modifyBy = modifyBy;
    	}
    	public Date getModifyDate() {
    		return modifyDate;
    	}
    	public void setModifyDate(Date modifyDate) {
    		this.modifyDate = modifyDate;
    	}
    	public Users(Integer id, String userCode, String userName,
    			String userPassword, String gender, Date birthday, String phone,
    			String address, Integer userrole, Integer createBy,
    			Date creationDate, Integer modifyBy, Date modifyDate) {
    		super();
    		this.id = id;
    		this.userCode = userCode;
    		this.userName = userName;
    		this.userPassword = userPassword;
    		this.gender = gender;
    		this.birthday = birthday;
    		this.phone = phone;
    		this.address = address;
    		this.userrole = userrole;
    		this.createBy = createBy;
    		this.creationDate = creationDate;
    		this.modifyBy = modifyBy;
    		this.modifyDate = modifyDate;
    	}
    	public Users() {
    		super();
    	}
    	public Role getRole() {
    		return role;
    	}
    	public void setRole(Role role) {
    		this.role = role;
    	}
    	
    	
    	
    }
    

  • 相关阅读:
    mvc的视图渲染方式
    Numpy系列(六)- 形状操作
    Numpy系列(五)- 复制和视图
    Numpy系列(四)- 索引和切片
    Numpy系列(三)- 基本运算操作
    Numpy系列(二)- 数据类型
    Numpy系列(一)- array
    HTML参考手册
    pkuseg:一个多领域中文分词工具包
    Nginx实现JWT验证-基于OpenResty实现
  • 原文地址:https://www.cnblogs.com/a1111/p/12816146.html
Copyright © 2020-2023  润新知