Package pojo

Examples of pojo.Rating


  }

  // get info of a rating by id
  public Rating getInfoRating(int id) {
    logger.debug("getInfoRating start");
    Rating sp = null;
    Session session = HibernateUtil.getSessionFactory().openSession();
    try {
      sp = (Rating) session.get(Rating.class, id);
      logger.debug("getInfoRating success");
    } catch (HibernateException ex) {
View Full Code Here


  // delete a rating by id
  public boolean delRating(int id) {
    logger.debug("delRating start");
    Session session = HibernateUtil.getSessionFactory().openSession();
    Rating u = (Rating) session.get(Rating.class, id);

    Transaction transaction = null;
    try {
      transaction = session.beginTransaction();
      session.delete(u);
View Full Code Here

TOP

Related Classes of pojo.Rating

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.