Package pojo

Examples of pojo.Provider


  }

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


  // delete ad provider by id
  public boolean delProvider(int id) {
    logger.debug("delProvider start");
    Session session = HibernateUtil.getSessionFactory().openSession();
    Provider u = (Provider) session.get(Provider.class, id);

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

TOP

Related Classes of pojo.Provider

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.