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

📄 booktype.java

📁 实现在线书店的基本功能 应用了hibernate+jsp 技术采用了mvc三层设计模式
💻 JAVA
字号:
/* * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -