@@ -0,0 +1,1402 @@
+/*%0A *  The MIT License (MIT)%0A *%0A *  View the full license at:%0A *  https://github.com/hendrixjoseph/FamilyTree/blob/master/LICENSE.md%0A *%0A *  Copyright (c) 2015 Joseph Hendrix%0A *%0A *  Hosted on GitHub at https://github.com/hendrixjoseph/FamilyTree%0A *%0A */%0A%0Apackage edu.wright.hendrix11.familyTree.bean;%0A%0Aimport edu.wright.hendrix11.familyTree.entity.Person;%0A%0Aimport javax.annotation.PostConstruct;%0Aimport javax.faces.event.ActionEvent;%0Aimport javax.faces.view.ViewScoped;%0Aimport javax.inject.Named;%0Aimport javax.persistence.EntityManager;%0Aimport javax.persistence.PersistenceContext;%0Aimport javax.persistence.TypedQuery;%0A%0Aimport java.io.Serializable;%0Aimport java.util.logging.Level;%0Aimport java.util.logging.Logger;%0A%0A/**%0A * @author Joe Hendrix%0A */%0A@Named%0A@ViewScoped%0Apublic class InsertUpdatePersonBean implements Serializable%0A%7B%0A%0A    private static final Logger LOG = Logger.getLogger(InsertUpdatePersonBean.class.getName());%0A    %0A    @PersistenceContext(unitName = %22edu.wright.hendrix11.familyTree%22)%0A    private EntityManager em;%0A    private Person person;%0A    private Date birthDate;%0A    private Date deathDate;%0A    private String birthPlace;%0A    private String deathPlace;%0A    %0A    @Inject%0A    private IndividualBean individualBean;%0A    %0A    @PostConstruct%0A    public void initialize()%0A    %7B%0A    %7D%0A    %0A    public void insertPerson()%0A    %7B%0A    %7D%0A    %0A    public void updatePerson()%0A    %7B%0A    %7D%0A    %0A  %7D%0A

Create InsertUpdatePersonBean.java