document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. import javax.persistence.*;
  2.  
  3. @Entity
  4. public class Person implements java.io.Serializable {
  5.    private long id;
  6.    private String firstName;
  7.    private String lastName;
  8.  
  9.    @Id
  10.    @GeneratedValue
  11.  
  12.    public long getId( ) {
  13.       return id;
  14.    }
  15.    public void setId(long id) {
  16.       this.id = id;
  17.    }
  18.  
  19.    public String getFirstName( ) {
  20.       return firstName;
  21.    }
  22.    public void setFirstName(String firstName) {
  23.       this.firstName = firstName;
  24.    }
  25.  
  26.    public String getLastName( ) {
  27.       return lastName;
  28.    }
  29.    public void setLastName(String lastName) {
  30.       this.lastName = lastName;
  31.    }
  32. }
');