//GradedEvent gradedEvent = em.find(GradedEvent.class, selectedEvent.getId());
GradedEvent gradedEvent = gradedEventDAO.find(selectedEvent.getId());
gradedEvent.clearQuestions();
//EntityTransaction tx = em.getTransaction();
//tx.begin();
gradedEvent = gradedEventDAO.update(gradedEvent);
//gradedEvent = em.merge(gradedEvent);
gradedEventDAO.delete(gradedEvent.getId());
//em.remove(gradedEvent);
//tx.commit();
//em.close();