serviceuser.java

来自「电信计费项目 该系统在Sun Solaris下开发,运行于Apache Tom」· Java 代码 · 共 140 行

JAVA
140
字号
package com.tarena.netctoss.model.biz.entity;import java.io.Serializable;import java.sql.*;public class ServiceUser implements Serializable{    private static final long serialVersionUID = -3409951175534305821L;    /**     * 业务帐户ID     */    private Long service_user_id;    /**     * 业务帐户登入Lab服务器的名字     */    private String lab_login_name;    /**     * 业务帐户登入Lab服务器的密码     */    private String lab_login_password;    /**     * 业务帐户状态     */    private int service_user_status;    /**     * 业务帐户登入Lab服务器的ip地址     */    private String lab_ip;    /**     * 业务帐户属于那个用户     */    private User user;    /**     * 业务帐户使用的资费     */    private Price price;    /**     * 业务帐户登入Lab服务器的时间     */    private Date enroll_date;    /**     * 业务帐户退出Lab服务器的时间     */    private Date close_date;        public ServiceUser() {        super();    }        public Date getClose_date() {        return close_date;    }    public void setClose_date(Date close_date) {        this.close_date = close_date;    }    public Date getEnroll_date() {        return enroll_date;    }    public void setEnroll_date(Date enroll_date) {        this.enroll_date = enroll_date;    }    public String getLab_ip() {        return lab_ip;    }    public void setLab_ip(String lab_ip) {        this.lab_ip = lab_ip;    }    public String getLab_login_name() {        return lab_login_name;    }    public void setLab_login_name(String lab_login_name) {        this.lab_login_name = lab_login_name;    }    public String getLab_login_password() {        return lab_login_password;    }    public void setLab_login_password(String lab_login_password) {        this.lab_login_password = lab_login_password;    }    public Price getPrice() {        return price;    }    public void setPrice(Price price) {        this.price = price;    }    public Long getService_user_id() {        return service_user_id;    }    public void setService_user_id(Long service_user_id) {        this.service_user_id = service_user_id;    }    public int getService_user_status() {        return service_user_status;    }    public void setService_user_status(int service_user_status) {        this.service_user_status = service_user_status;    }    public User getUser() {        return user;    }    public void setUser(User user) {        this.user = user;    }    @Override    public int hashCode() {        final int PRIME = 31;        int result = 1;        result = PRIME * result + ((lab_ip == null) ? 0 : lab_ip.hashCode());        result = PRIME * result + ((lab_login_name == null) ? 0 : lab_login_name.hashCode());        result = PRIME * result + ((lab_login_password == null) ? 0 : lab_login_password.hashCode());        return result;    }    @Override    public boolean equals(Object obj) {        if (this == obj)            return true;        if (obj == null)            return false;        if (getClass() != obj.getClass())            return false;        final ServiceUser other = (ServiceUser) obj;        if (lab_ip == null) {            if (other.lab_ip != null)                return false;        } else if (!lab_ip.equals(other.lab_ip))            return false;        if (lab_login_name == null) {            if (other.lab_login_name != null)                return false;        } else if (!lab_login_name.equals(other.lab_login_name))            return false;        if (lab_login_password == null) {            if (other.lab_login_password != null)                return false;        } else if (!lab_login_password.equals(other.lab_login_password))            return false;        return true;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?