public void delete(VolunteerApplication object) {
EntityManager em = emf.createEntityManager();
em.getTransaction().begin();
try {
VolunteerApplication entity = em.find(VolunteerApplication.class, object.getIdApplication());
em.remove(entity);
em.getTransaction().commit();
} catch (Exception e) {
Logger.getLogger(VolunteerApplicationController.class.getName()).log(Level.SEVERE, "Error deleting " + object, e);
if (em.getTransaction().isActive())