📄 userentitybean.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package Entities;import java.io.Serializable;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;/** * * @author kiriashoo */@Entitypublic class UserEntityBean implements Serializable { private static final long serialVersionUID = 1L; private Integer id; private String name; private String address; private String telephone; private String email; private String code; private Integer userType;//name, address, telephone, email, code, userType public void setId(Integer id) { this.id = id; } @Id @GeneratedValue(strategy = GenerationType.AUTO) public Integer getId() { return id; }// name methods public void setName(String name) { this.name = name; } public String getName() { return name; }// address methods public void setAddress(String address) { this.address = address; } public String getAddress() { return address; }// telephone methods public void setTelephone(String telephone) { this.telephone = telephone; } public String getTelephone() { return telephone; } // code methods public void setCode(String code) { this.code = code; } public String getCode() { return code; }// email methods public void setEmail(String email) { this.email = email; } public String getEmail() { return email; } // userType methods public void setUserType(Integer userType) { this.userType = userType; } public Integer getUserType() { return userType; } @Override public int hashCode() { int hash = 0; hash += (id != null ? id.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 UserEntityBean)) { return false; } UserEntityBean other = (UserEntityBean) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; } @Override public String toString() { return "Entities.userEntityBean[id=" + id + "]"; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -