47484950515253545556
public List<Notice> getAllNotices() { return getSession().createQuery("from Notice order by title").list(); } public void deleteNotice(Long noticeId) { Notice notice = getNotice(noticeId); if (notice != null) { getSession().delete(notice); } }
52535455565758596061
return null; } } public void createNotice(String title, String description) { Notice notice = new Notice(); notice.setTitle(title); notice.setDescription(description); noticeDAO.createNotice(notice); }