?? booktype.java
字號:
/* * 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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -