Figure 3
Java Person class

package com.denoncourt.orm;

public class Person {     
  private int id;
  private int version;
  private String firstName = "";
  private String lastName = "";
  private Date dob = null;
  private String gender = "";
  private int citizenCountry = 1;
  
  public Person() { super(); }

  public int    getId()          { return id; }
  public int    getVersion()     { return version; }
  public String getFirstName()   { return firstName; }
  public String getLastName()    { return lastName; }
  public int getCitizenCountry() { return citizenCountry; }
  public Date   getDob()         { return dob; }
  public String getGender()      { return gender; }

  public void setId(int i) {
    id = i;
  }
  public void setFirstName(String str) {
    firstName = str;
  }
  public void setLastName(String str) {
    lastName = str;
  }
  public void setCitizenCountry(String str) {
    citizenCountry = str;
  }
  public void setDob(Date date) {
    dob = date;
  }
  public void setGender(String str) {
    gender = str;
  }
}