/*
 *  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
{
    private Person person;

    @OneToMany
    private String place;

    @Temporal(TemporalType.DATE)
    private Date date;

    @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;
    }

}

@@ -634,129 +634,419 @@
     
-private Person person;%0A%0A    @OneToMany%0A    private String place;%0A%0A    @Temporal(TemporalType.DATE)%0A    private Date date;
+@Id%0A    @Column(name = %22PERSON_ID%22)%0A    private int id;%0A    %0A    @OneToOne%0A    @PrimaryKeyJoinColumn%0A    private Person person;%0A%0A    @ManyToOne%0A    @JoinColumn(name=%22PLACE_ID%22)%0A    private String place;%0A%0A    @Temporal(TemporalType.DATE)%0A    private Date date;%0A    %0A    @Override%0A    public int getId()%0A    %7B%0A        return id;%0A    %7D%0A%0A    @Override%0A    public void setId(int id)%0A    %7B%0A        this.id = id;%0A    %7D
 %0A%0A  

Update Birth.java