content: package org.agoncal.book.javaee7.chapter10.ex07;
  
  /**
   * @author Antonio Goncalves
   *         APress Book - Beginning Java EE 6 with Glassfish 3
   *         http://www.apress.com/
   *         http://www.antoniogoncalves.org
   *         --
   */
  public class Book07 {
  
      // ======================================
      // =             Attributes             =
      // ======================================
  
      private String title;
      private Float price;
      private String description;
      private String isbn;
      private Integer nbOfPage;
      private Boolean illustrations;
  
      // ======================================
      // =            Constructors            =
      // ======================================
  
      public Book07() {
      }
  
      public Book07(String title, Float price, String description, String isbn, Integer nbOfPage, Boolean illustrations) {
          this.title = title;
          this.price = price;
          this.description = description;
          this.isbn = isbn;
          this.nbOfPage = nbOfPage;
          this.illustrations = illustrations;
      }
  
      // ======================================
      // =          Getters & Setters         =
      // ======================================
      public String getTitle() {
          return title;
      }
  
      public void setTitle(String title) {
          this.title = title;
      }
  
      public Float getPrice() {
          return price;
      }
  
      public void setPrice(Float price) {
          this.price = price;
      }
  
      public String getDescription() {
          return description;
      }
  
      public void setDescription(String description) {
          this.description = description;
      }
  
      public String getIsbn() {
          return isbn;
      }
  
      public void setIsbn(String isbn) {
          this.isbn = isbn;
      }
  
      public Integer getNbOfPage() {
          return nbOfPage;
      }
  
      public void setNbOfPage(Integer nbOfPage) {
          this.nbOfPage = nbOfPage;
      }
  
      public Boolean getIllustrations() {
          return illustrations;
      }
  
      public void setIllustrations(Boolean illustrations) {
          this.illustrations = illustrations;
      }
  
      // ======================================
      // =         hash, equals, toString     =
      // ======================================
  
      @Override
      public String toString() {
          final StringBuilder sb = new StringBuilder();
          sb.append("Book");
          sb.append(", title='").append(title).append('\'');
          sb.append(", price=").append(price);
          sb.append(", description='").append(description).append('\'');
          sb.append(", isbn='").append(isbn).append('\'');
          sb.append(", nbOfPage=").append(nbOfPage);
          sb.append(", illustrations=").append(illustrations);
          sb.append('}');
          return sb.toString();
      }
  }