content: package org.agoncal.book.javaee7.chapter05.ex59;
  
  import javax.persistence.Entity;
  import javax.persistence.Table;
  
  /**
   * @author Antonio Goncalves
   *         APress Book - Beginning Java EE 7 with Glassfish 4
   *         http://www.apress.com/
   *         http://www.antoniogoncalves.org
   *         --
   */
  @Entity
  @Table(name = "ex59_cd")
  public class CD59 extends Item59 {
  
    // ======================================
    // =             Attributes             =
    // ======================================
  
    private String musicCompany;
    private Integer numberOfCDs;
    private Float totalDuration;
    private String genre;
  
    // ======================================
    // =            Constructors            =
    // ======================================
  
    public CD59() {
    }
  
    public CD59(String title, Float price, String description, String musicCompany, Integer numberOfCDs, Float totalDuration, String genre) {
      super(title, price, description);
      this.musicCompany = musicCompany;
      this.numberOfCDs = numberOfCDs;
      this.totalDuration = totalDuration;
      this.genre = genre;
    }
  
    // ======================================
    // =          Getters & Setters         =
    // ======================================
  
    public String getMusicCompany() {
      return musicCompany;
    }
  
    public void setMusicCompany(String musicCompany) {
      this.musicCompany = musicCompany;
    }
  
    public Integer getNumberOfCDs() {
      return numberOfCDs;
    }
  
    public void setNumberOfCDs(Integer numberOfCDs) {
      this.numberOfCDs = numberOfCDs;
    }
  
    public Float getTotalDuration() {
      return totalDuration;
    }
  
    public void setTotalDuration(Float totalDuration) {
      this.totalDuration = totalDuration;
    }
  
    public String getGenre() {
      return genre;
    }
  
    public void setGenre(String genre) {
      this.genre = genre;
    }
  }