/*
 *  The MIT License (MIT)
 *
 *  View the full license at:
 *  https://github.com/hendrixjoseph/FamilyTree/blob/master/LICENSE.md
 *
 *  Copyright (c) 2015 Joseph Hendrix
 *
 *  Hosted on GitHub at https://github.com/hendrixjoseph/FamilyTree
 *
 */
package edu.wright.hendrix11.familyTree.entity;

import edu.wright.hendrix11.familyTree.entity.event.Event;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;



/**
 *
 * @author Joe Hendrix <hendrix.11@wright.edu>
 */
@Entity
public class Birth implements Event
{
    @Id
    @Column(name = "PERSON_ID")
    private int id;
    
    @OneToOne
    @PrimaryKeyJoinColumn
    private Person person;

    @ManyToOne
    @JoinColumn(name="PLACE_ID")
    private String place;

    @Temporal(TemporalType.DATE)
    private Date date;
    
    @Override
    public int getId()
    {
        return id;
    }

    @Override
    public void setId(int id)
    {
        this.id = id;
    }

    @Override
    public Person getPerson()
    {
        return person;
    }

    @Override
    public void setPerson(Person person)
    {
        this.person = person;
    }

    @Override
    public String getPlace()
    {
        return place;
    }

    @Override
    public void setPlace(String place)
    {
        this.place = place;
    }

    @Override
    public Date getDate()
    {
        return date;
    }

    @Override
    public void setDate(Date date)
    {
        this.date = date;
    }

}

@@ -819,22 +819,21 @@
 private 
-String
+Place
  place;%0A
@@ -1245,22 +1245,21 @@
  public 
-String
+Place
  getPlac
@@ -1340,14 +1340,13 @@
 ace(
-String
+Place
  pla
@@ -1551,11 +1551,10 @@
 ;%0A    %7D%0A
-%0A
 %7D%0A

Update Birth.java