booktype.java
来自「用hibernate框架实现网上书店」· Java 代码 · 共 87 行
JAVA
87 行
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package mypack;import java.io.Serializable;import java.util.HashSet;import java.util.Set;/** * * @author Administrator */public class Booktype implements Serializable { private static final long serialVersionUID = 1L; private String booktypeid; private String name; private Set books=new HashSet(); public Booktype() { } public Booktype(String booktypeid) { this.booktypeid = booktypeid; } public Booktype(String booktypeid, String name) { this.booktypeid = booktypeid; this.name = name; } public String getBooktypeid() { return booktypeid; } public void setBooktypeid(String booktypeid) { this.booktypeid = booktypeid; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Set getBooks() { return books; } public void setBooks(Set books) { this.books = books; } @Override public int hashCode() { int hash = 0; hash += (booktypeid != null ? booktypeid.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.booktypeid == null && other.booktypeid != null) || (this.booktypeid != null && !this.booktypeid.equals(other.booktypeid))) { return false; } return true; } @Override public String toString() { return "mypack.Booktype[booktypeid=" + booktypeid + "]"; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?