content: package org.agoncal.book.javaee7.chapter02.ex03;
  
  /**
   * @author Antonio Goncalves
   *         APress Book - Beginning Java EE 7 with Glassfish 4
   *         http://www.apress.com/
   *         http://www.antoniogoncalves.org
   *         --
   */
  public class Book03 {
  
    // ======================================
    // =             Attributes             =
    // ======================================
  
    private String title;
    private Float price;
    private String description;
    private String isbn;
  
    // ======================================
    // =            Constructors            =
    // ======================================
  
    public Book03() {
    }
  
    public Book03(String title, Float price, String description) {
      this.title = title;
      this.price = price;
      this.description = description;
    }
  
    // ======================================
    // =          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;
    }
  
    // ======================================
    // =         hash, equals, toString     =
    // ======================================
  
    @Override
    public String toString() {
      final StringBuilder sb = new StringBuilder();
      sb.append("Book02");
      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('}');
      return sb.toString();
    }
  }