public void update(HockeyMatch entity) { dao.openCurrentSessionwithTransaction(); dao.update(entity); dao.closeCurrentSessionwithTransaction(); }
public void persist(HockeyMatch entity) { dao.openCurrentSessionwithTransaction(); dao.persist(entity); dao.closeCurrentSessionwithTransaction(); }