content: package org.agoncal.book.javaee7.chapter06.ex34;
  
  import javax.persistence.*;
  
  
  /**
   * @author Antonio Goncalves
   *         APress Book - Beginning Java EE 6 with Glassfish 3
   *         http://www.apress.com
   *         http://www.antoniogoncalves.org
   *         --
   */
  @Entity
  @Table(name = "ex22_customer")
  @Cacheable(true)
  public class Customer34 {
  
      // ======================================
      // =             Attributes             =
      // ======================================
      @Id
      @GeneratedValue
      private Long id;
      private String firstName;
      private String lastName;
      private String email;
  
      // ======================================
      // =            Constructors            =
      // ======================================
  
      public Customer34() {
      }
  
      public Customer34(String firstName, String lastName, String email) {
          this.firstName = firstName;
          this.lastName = lastName;
          this.email = email;
      }
  
      // ======================================
      // =          Getters & Setters         =
      // ======================================
  
      public Long getId() {
          return id;
      }
  
      public String getFirstName() {
          return firstName;
      }
  
      public void setFirstName(String firstName) {
          this.firstName = firstName;
      }
  
      public String getLastName() {
          return lastName;
      }
  
      public void setLastName(String lastName) {
          this.lastName = lastName;
      }
  
      public String getEmail() {
          return email;
      }
  
      public void setEmail(String email) {
          this.email = email;
      }
  }