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