zoukankan      html  css  js  c++  java
  • 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;
    	}
    	
    	
    	
    }
    

  • 相关阅读:
    通过修改注册表建立Windows自定义协议
    cmd命令大全
    Sql Server 2012 存储过程的调试
    C#.Net环境下的缓存技术
    WCF引用方式之IIS方式寄宿服务
    关于WCF引用方式之WCF服务寄宿控制台
    tcp_tw_recycle和tcp_timestamps导致connect失败问题
    TCP短连接TIME_WAIT问题解决方法大全
    打开tcp_tw_recycle引起的一个问题
    TCP三次握手,什么情况下client会回复reset
  • 原文地址:https://www.cnblogs.com/a1111/p/12816146.html
Copyright © 2011-2022 走看看