Package com.sandrini.sandelivery.model

Examples of com.sandrini.sandelivery.model.Notice


  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);
    }
  }
View Full Code Here


      return null;
    }
  }

  public void createNotice(String title, String description) {
    Notice notice = new Notice();
    notice.setTitle(title);
    notice.setDescription(description);
    noticeDAO.createNotice(notice);
  }
View Full Code Here

TOP

Related Classes of com.sandrini.sandelivery.model.Notice

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.