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.  
  8.    private String lastName;
  9.  
  10.    @Id
  11.    @GeneratedValue
  12.    public long getId( ) {
  13.       return id;
  14.    }
  15.    public void setId(long id) {
  16.       this.id = id;
  17.    }
  18.  
  19.    @Basic(fetch=FetchType.LAZY, optional=false)
  20.    public String getFirstName( ) {
  21.       return firstName;
  22.    }
  23.    public void setFirstName(String firstName) {
  24.       this.firstName = firstName;
  25.    }
  26.  
  27.    @Basic(fetch=FetchType.LAZY, optional=false)
  28.    public String getLastName( ) {
  29.       return lastName;
  30.    }
  31.    public void setLastName(String lastName) {
  32.  this.lastName = lastName; }
  33. }
');