首页>代码>SSM增删改查+bootstrap+pagehelper项目分页实例(适合小白)>/SSM_CRUD/src/main/java/com/aixs/crud/bean/Employee.java
package com.aixs.crud.bean;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;

public class Employee 
{
    private Integer empId;
    
    @Pattern(regexp="(^[a-zA-Z0-9_-]{6,16}$)|(^[\u2E80-\u9FFF]{2,5})"
    		,message="用户名必须是2-5位中文或者6-16位英文和数字的组合")
    private String empName;
    
    private String gender;
    
    @Pattern(regexp="^([a-z0-9_\\.-]+)@([\\da-z\\.-]+)\\.([a-z\\.]{2,6})$",
    		message="邮箱格式不正确")
    private String email;

    private Integer dId;
    
    private Department department;
    
    public Employee() {
		super();
	}

	public Employee(Integer empId, String empName, String gender, String email,
			Integer dId) {
		super();
		this.empId = empId;
		this.empName = empName;
		this.gender = gender;
		this.email = email;
		this.dId = dId;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName == null ? null : empName.trim();
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender == null ? null : gender.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Integer getdId() {
        return dId;
    }

    public void setdId(Integer dId) {
        this.dId = dId;
    }
}
最近下载更多
血羽如风  LV6 2024年1月25日
taoshen95  LV16 2023年12月25日
2775645521  LV7 2023年12月13日
微信网友_6512020493586432  LV2 2023年6月19日
雨后不归  LV4 2022年12月18日
sweetbox  LV10 2022年9月3日
qq970040477  LV24 2022年4月11日
快来救救胡桃  LV6 2021年12月30日
huyyyyy  LV8 2021年12月24日
王东东  LV17 2021年12月24日
最近浏览更多
微信网友_7316199114199040 2024年12月28日
暂无贡献等级
三秋桂子  LV1 2024年12月22日
微信网友_7265127836766208 2024年11月22日
暂无贡献等级
chn-lei  LV2 2024年8月1日
37633030  LV1 2024年6月19日
ma406805131  LV19 2024年6月18日
adminww1234  LV1 2024年6月17日
ProjectAshe 2024年6月17日
暂无贡献等级
wanderingsoul  LV2 2024年6月15日
ailixiya  LV1 2024年5月7日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友