content: package org.agoncal.book.javaee7.chapter05.ex60;
  
  import javax.persistence.*;
  
  /**
   * @author Antonio Goncalves
   *         APress Book - Beginning Java EE 7 with Glassfish 4
   *         http://www.apress.com/
   *         http://www.antoniogoncalves.org
   *         --
   */
  @Entity
  @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
  @Table(name = "ex60_item")
  public class Item60 {
  
    // ======================================
    // =             Attributes             =
    // ======================================
  
    @Id
    @GeneratedValue
    protected Long id;
    protected String title;
    protected Float price;
    protected String description;
  
    // ======================================
    // =            Constructors            =
    // ======================================
  
    public Item60() {
    }
  
    public Item60(String title, Float price, String description) {
      this.title = title;
      this.price = price;
      this.description = description;
    }
  
    // ======================================
    // =          Getters & Setters         =
    // ======================================
  
    public Long getId() {
      return 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;
    }
  }