Package pojo

Examples of pojo.Price


  }

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


  // del a price by id
  public boolean delPrice(int id) {
    logger.debug("delPrice start");
    Session session = HibernateUtil.getSessionFactory().openSession();
    Price u = (Price) session.get(Price.class, id);

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

TOP

Related Classes of pojo.Price

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.