⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customer.java

📁 实现在线书店的基本功能 应用了hibernate+jsp 技术采用了mvc三层设计模式
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package mypack;import java.io.Serializable;/** * * @author Administrator */public class Customer implements Serializable {    private static final long serialVersionUID = 1L;       private Integer userId;      private String userName;       private String password;       private String email;    public Customer() {    }    public Customer(Integer userId) {        this.userId = userId;    }    public Customer(Integer userId, String userName, String password, String email) {        this.userId = userId;        this.userName = userName;        this.password = password;        this.email = email;    }    public Integer getUserId() {        return userId;    }    public void setUserId(Integer userId) {        this.userId = userId;    }    public String getUserName() {        return userName;    }    public void setUserName(String userName) {        this.userName = userName;    }    public String getPassword() {        return password;    }    public void setPassword(String password) {        this.password = password;    }    public String getEmail() {        return email;    }    public void setEmail(String email) {        this.email = email;    }    @Override    public int hashCode() {        int hash = 0;        hash += (userId != null ? userId.hashCode() : 0);        return hash;    }    @Override    public boolean equals(Object object) {        // TODO: Warning - this method won't work in the case the id fields are not set        if (!(object instanceof Customer)) {            return false;        }        Customer other = (Customer) object;        if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {            return false;        }        return true;    }    @Override    public String toString() {        return "mypack.Customer[userId=" + userId + "]";    }}

⌨️ 快捷键说明

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