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

📄 booktype.java

📁 用hibernate框架实现网上书店
💻 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 + -