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

📄 bookview.java

📁 这是一个网上书店
💻 JAVA
字号:
package com.ebookstore.dto;

import java.util.Date;

/**
 * BookviewId generated by MyEclipse - Hibernate Tools
 */

public class Bookview extends BaseDTO {

  // Fields
  private static final long serialVersionUID = 1L;

  private Integer           bookId;

  private String            bookName;

  private String            author;

  private String            publishCompany;

  private Date              publishDate;

  private String            description;

  private String            imageUrl;

  private String            bookKey;

  private Integer           categoryId;

  private String            categoryName;

  private Integer           parentId;

  private String            ancestorTree;

  private String            numberBook;

  private String            categoryDesc;

  private Integer           itemId;

  private Double            baseprice;

  private Double            discount;

  private Double            unitcost;

  private String            status;

  private String            attribute1;

  // Constructors

  /** default constructor */
  public Bookview() {
  }

  /** minimal constructor */
  public Bookview(Integer bookId, Integer categoryId, Integer itemId) {
    this.bookId = bookId;
    this.categoryId = categoryId;
    this.itemId = itemId;
  }

  /** full constructor */
  public Bookview(Integer bookId, String bookName, String author, String publishCompany,
      Date publishDate, String description, String imageUrl, String bookKey,
      Integer categoryId, String categoryName, Integer parentId, String ancestorTree,
      String numberBook, String categoryDesc, Integer itemId, Double baseprice,
      Double discount, Double unitcost, String status, String attribute1) {
    this.bookId = bookId;
    this.bookName = bookName;
    this.author = author;
    this.publishCompany = publishCompany;
    this.publishDate = publishDate;
    this.description = description;
    this.imageUrl = imageUrl;
    this.bookKey = bookKey;
    this.categoryId = categoryId;
    this.categoryName = categoryName;
    this.parentId = parentId;
    this.ancestorTree = ancestorTree;
    this.numberBook = numberBook;
    this.categoryDesc = categoryDesc;
    this.itemId = itemId;
    this.baseprice = baseprice;
    this.discount = discount;
    this.unitcost = unitcost;
    this.status = status;
    this.attribute1 = attribute1;
  }

  // Property accessors

  public Integer getBookId() {
    return this.bookId;
  }

  public void setBookId(Integer bookId) {
    this.bookId = bookId;
  }

  public String getBookName() {
    return this.bookName;
  }

  public void setBookName(String bookName) {
    this.bookName = bookName;
  }

  public String getAuthor() {
    return this.author;
  }

  public void setAuthor(String author) {
    this.author = author;
  }

  public String getPublishCompany() {
    return this.publishCompany;
  }

  public void setPublishCompany(String publishCompany) {
    this.publishCompany = publishCompany;
  }

  public Date getPublishDate() {
    return this.publishDate;
  }

  public void setPublishDate(Date publishDate) {
    this.publishDate = publishDate;
  }

  public String getDescription() {
    return this.description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public String getImageUrl() {
    return this.imageUrl;
  }

  public void setImageUrl(String imageUrl) {
    this.imageUrl = imageUrl;
  }

  public String getBookKey() {
    return this.bookKey;
  }

  public void setBookKey(String bookKey) {
    this.bookKey = bookKey;
  }

  public Integer getCategoryId() {
    return this.categoryId;
  }

  public void setCategoryId(Integer categoryId) {
    this.categoryId = categoryId;
  }

  public String getCategoryName() {
    return this.categoryName;
  }

  public void setCategoryName(String categoryName) {
    this.categoryName = categoryName;
  }

  public Integer getParentId() {
    return this.parentId;
  }

  public void setParentId(Integer parentId) {
    this.parentId = parentId;
  }

  public String getAncestorTree() {
    return this.ancestorTree;
  }

  public void setAncestorTree(String ancestorTree) {
    this.ancestorTree = ancestorTree;
  }

  public String getNumberBook() {
    return this.numberBook;
  }

  public void setNumberBook(String numberBook) {
    this.numberBook = numberBook;
  }

  public String getCategoryDesc() {
    return this.categoryDesc;
  }

  public void setCategoryDesc(String categoryDesc) {
    this.categoryDesc = categoryDesc;
  }

  public Integer getItemId() {
    return this.itemId;
  }

  public void setItemId(Integer itemId) {
    this.itemId = itemId;
  }

  public Double getBaseprice() {
    return this.baseprice;
  }

  public void setBaseprice(Double baseprice) {
    this.baseprice = baseprice;
  }

  public Double getDiscount() {
    return this.discount;
  }

  public void setDiscount(Double discount) {
    this.discount = discount;
  }

  public Double getUnitcost() {
    return this.unitcost;
  }

  public void setUnitcost(Double unitcost) {
    this.unitcost = unitcost;
  }

  public String getStatus() {
    return this.status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public String getAttribute1() {
    return this.attribute1;
  }

  public void setAttribute1(String attribute1) {
    this.attribute1 = attribute1;
  }

  public boolean equals(Object other) {
    if ((this == other))
      return true;
    if ((other == null))
      return false;
    if (!(other instanceof Bookview))
      return false;
    Bookview castOther = (Bookview) other;

    return ((this.getBookId() == castOther.getBookId()) || (this.getBookId() != null
        && castOther.getBookId() != null && this.getBookId()
        .equals(castOther.getBookId())))
        && ((this.getBookName() == castOther.getBookName()) || (this.getBookName() != null
            && castOther.getBookName() != null && this.getBookName().equals(
            castOther.getBookName())))
        && ((this.getAuthor() == castOther.getAuthor()) || (this.getAuthor() != null
            && castOther.getAuthor() != null && this.getAuthor().equals(
            castOther.getAuthor())))
        && ((this.getPublishCompany() == castOther.getPublishCompany()) || (this
            .getPublishCompany() != null
            && castOther.getPublishCompany() != null && this.getPublishCompany().equals(
            castOther.getPublishCompany())))
        && ((this.getPublishDate() == castOther.getPublishDate()) || (this
            .getPublishDate() != null
            && castOther.getPublishDate() != null && this.getPublishDate().equals(
            castOther.getPublishDate())))
        && ((this.getDescription() == castOther.getDescription()) || (this
            .getDescription() != null
            && castOther.getDescription() != null && this.getDescription().equals(
            castOther.getDescription())))
        && ((this.getImageUrl() == castOther.getImageUrl()) || (this.getImageUrl() != null
            && castOther.getImageUrl() != null && this.getImageUrl().equals(
            castOther.getImageUrl())))
        && ((this.getBookKey() == castOther.getBookKey()) || (this.getBookKey() != null
            && castOther.getBookKey() != null && this.getBookKey().equals(
            castOther.getBookKey())))
        && ((this.getCategoryId() == castOther.getCategoryId()) || (this.getCategoryId() != null
            && castOther.getCategoryId() != null && this.getCategoryId().equals(
            castOther.getCategoryId())))
        && ((this.getCategoryName() == castOther.getCategoryName()) || (this
            .getCategoryName() != null
            && castOther.getCategoryName() != null && this.getCategoryName().equals(
            castOther.getCategoryName())))
        && ((this.getParentId() == castOther.getParentId()) || (this.getParentId() != null
            && castOther.getParentId() != null && this.getParentId().equals(
            castOther.getParentId())))
        && ((this.getAncestorTree() == castOther.getAncestorTree()) || (this
            .getAncestorTree() != null
            && castOther.getAncestorTree() != null && this.getAncestorTree().equals(
            castOther.getAncestorTree())))
        && ((this.getNumberBook() == castOther.getNumberBook()) || (this.getNumberBook() != null
            && castOther.getNumberBook() != null && this.getNumberBook().equals(
            castOther.getNumberBook())))
        && ((this.getCategoryDesc() == castOther.getCategoryDesc()) || (this
            .getCategoryDesc() != null
            && castOther.getCategoryDesc() != null && this.getCategoryDesc().equals(
            castOther.getCategoryDesc())))
        && ((this.getItemId() == castOther.getItemId()) || (this.getItemId() != null
            && castOther.getItemId() != null && this.getItemId().equals(
            castOther.getItemId())))
        && ((this.getBaseprice() == castOther.getBaseprice()) || (this.getBaseprice() != null
            && castOther.getBaseprice() != null && this.getBaseprice().equals(
            castOther.getBaseprice())))
        && ((this.getDiscount() == castOther.getDiscount()) || (this.getDiscount() != null
            && castOther.getDiscount() != null && this.getDiscount().equals(
            castOther.getDiscount())))
        && ((this.getUnitcost() == castOther.getUnitcost()) || (this.getUnitcost() != null
            && castOther.getUnitcost() != null && this.getUnitcost().equals(
            castOther.getUnitcost())))
        && ((this.getStatus() == castOther.getStatus()) || (this.getStatus() != null
            && castOther.getStatus() != null && this.getStatus().equals(
            castOther.getStatus())))
        && ((this.getAttribute1() == castOther.getAttribute1()) || (this.getAttribute1() != null
            && castOther.getAttribute1() != null && this.getAttribute1().equals(
            castOther.getAttribute1())));
  }

  public int hashCode() {
    int result = 17;

    result = 37 * result + (getBookId() == null ? 0 : this.getBookId().hashCode());
    result = 37 * result + (getBookName() == null ? 0 : this.getBookName().hashCode());
    result = 37 * result + (getAuthor() == null ? 0 : this.getAuthor().hashCode());
    result = 37 * result
        + (getPublishCompany() == null ? 0 : this.getPublishCompany().hashCode());
    result = 37 * result
        + (getPublishDate() == null ? 0 : this.getPublishDate().hashCode());
    result = 37 * result
        + (getDescription() == null ? 0 : this.getDescription().hashCode());
    result = 37 * result + (getImageUrl() == null ? 0 : this.getImageUrl().hashCode());
    result = 37 * result + (getBookKey() == null ? 0 : this.getBookKey().hashCode());
    result = 37 * result
        + (getCategoryId() == null ? 0 : this.getCategoryId().hashCode());
    result = 37 * result
        + (getCategoryName() == null ? 0 : this.getCategoryName().hashCode());
    result = 37 * result + (getParentId() == null ? 0 : this.getParentId().hashCode());
    result = 37 * result
        + (getAncestorTree() == null ? 0 : this.getAncestorTree().hashCode());
    result = 37 * result
        + (getNumberBook() == null ? 0 : this.getNumberBook().hashCode());
    result = 37 * result
        + (getCategoryDesc() == null ? 0 : this.getCategoryDesc().hashCode());
    result = 37 * result + (getItemId() == null ? 0 : this.getItemId().hashCode());
    result = 37 * result + (getBaseprice() == null ? 0 : this.getBaseprice().hashCode());
    result = 37 * result + (getDiscount() == null ? 0 : this.getDiscount().hashCode());
    result = 37 * result + (getUnitcost() == null ? 0 : this.getUnitcost().hashCode());
    result = 37 * result + (getStatus() == null ? 0 : this.getStatus().hashCode());
    result = 37 * result
        + (getAttribute1() == null ? 0 : this.getAttribute1().hashCode());
    return result;
  }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -