Package pojo

Examples of pojo.Deliverstatus


          } else if (sanphams.size() == 0) {
            model.addAttribute("notice",
                "Please buys something to checkout");
          } else {
            Date ngaymua = new Date();
            Deliverstatus status = deliverstatusDAO
                .getDefaultDeliverstatus();
            BillDAO billDAO = new BillDAOImpl();

            Bill hd = new Bill(status, kh.getIduser(), tongTien,
                hoten, diachi, dienthoai, ngaymua, null);
View Full Code Here


    }
 
  //get Info Deliverstatus by id
    public  Deliverstatus getInfoDeliverstatus(Integer id) {
      logger.debug("getInfoDeliverstatus by id start");
      Deliverstatus sp = null;
    Session session = HibernateUtil.getSessionFactory().openSession();
    try {
      sp = (Deliverstatus) session.get(Deliverstatus.class, id);
      logger.debug("getInfoDeliverstatus by id success");
    } catch (HibernateException ex) {
View Full Code Here

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

TOP

Related Classes of pojo.Deliverstatus

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.