booktype.java
来自「实现在线书店的基本功能 应用了hibernate+jsp 技术采用了mvc三层」· Java 代码 · 共 101 行
JAVA
101 行
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package mypack;import java.io.Serializable;import java.util.Collection;import java.util.HashSet;import java.util.Set;/** * * @author Administrator */public class Booktype implements Serializable { private static final long serialVersionUID = 1L; private String id; private String name; private Set bookDetails=new HashSet(); public Booktype() { } public Set getBookDetails() { return bookDetails; } public void setBookDetails(Set bookDetails) { this.bookDetails=bookDetails; } public Booktype(String id) { this.id = id; } public Booktype(String id, String name) { this.id = id; this.name = name; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } @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 Booktype)) { return false; } Booktype other = (Booktype) 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 "mypack.Booktype[id=" + id + "]"; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?