Package pojo

Examples of pojo.Condition


  }

  //get List Condition by id
  public Condition getInfoCondition(int id) {
    logger.debug("getListCondition by id start");
    Condition sp = null;
    Session session = HibernateUtil.getSessionFactory().openSession();
    try {
      sp = (Condition) session.get(Condition.class, id);
      logger.debug("getListCondition by id success");
    } catch (HibernateException ex) {
View Full Code Here


  //del Condition
  public boolean delCondition(int id) {
    logger.debug("delCondition start");
    Session session = HibernateUtil.getSessionFactory().openSession();
    Condition u = (Condition) session.get(Condition.class, id);
   
    Transaction transaction = null;
    try {
      transaction = session.beginTransaction();
      session.delete(u);
View Full Code Here

TOP

Related Classes of pojo.Condition

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.