content: package org.agoncal.book.javaee7.chapter10.ex14;
  
  /**
   * @author Antonio Goncalves
   *         APress Book - Beginning Java EE 7 with Glassfish 4
   *         http://www.apress.com/
   *         http://www.antoniogoncalves.org
   *         --
   */
  public class Item {
  
    // ======================================
    // =             Attributes             =
    // ======================================
  
    protected Long id;
    protected String title;
    protected Float price;
    protected String description;
  
    // ======================================
    // =            Constructors            =
    // ======================================
  
    public Item() {
    }
  
    public Item(String title, Float price, String description) {
      this.title = title;
      this.price = price;
      this.description = description;
    }
  
    // ======================================
    // =          Getters & Setters         =
    // ======================================
  
    public Long getId() {
      return id;
    }
  
    public void setId(Long id) {
      this.id = id;
    }
  
    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;
    }
  }