首页>代码>ssm整合bootstrap开发网站用户信息管理系统(增删改查)>/ManagementSystem/src/main/Java/com/wrq/manage/bean/Employee.java
package com.wrq.manage.bean;

import org.hibernate.validator.constraints.Email;

import javax.validation.constraints.Pattern;

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() {
    }

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

    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;
    }
}
最近下载更多
hongdongdong  LV14 2024年6月12日
wmmwmm111  LV1 2024年6月6日
李亮  LV19 2023年3月5日
梓柔12345  LV1 2023年1月4日
最代码-宋家辉  LV61 2023年1月2日
mikyfx  LV4 2022年11月30日
MaiMaiMaimei  LV7 2022年6月28日
second  LV5 2021年12月5日
1308530161  LV4 2021年12月1日
543666826  LV34 2021年11月18日
最近浏览更多
xiangkai 2月21日
暂无贡献等级
dongandmin  LV8 2024年12月27日
19005485817 2024年12月24日
暂无贡献等级
xiaoaitx  LV8 2024年11月22日
qq970040477  LV24 2024年6月16日
hongdongdong  LV14 2024年6月12日
yyz115 2024年6月9日
暂无贡献等级
wmmwmm111  LV1 2024年6月6日
gghhbgg  LV1 2024年5月5日
WBelong  LV8 2024年3月8日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友