Package com.lgx8.gateway.entities

Examples of com.lgx8.gateway.entities.Orders


    return getHibernateTemplate().find(hql);
  }
 
  public static void main(String[] args) {
    ApplicationContext ac = new ClassPathXmlApplicationContext("ApplicationContext.xml");
    ICategoryDao categoryDao = (ICategoryDao) ac.getBean("categoryDao");
    List<Category> list = categoryDao.findAllCategoryList(new Long(5));
    for(int i=0;i<list.size();i++) {
      System.out.println(list.get(i).getName());
    }
  }
View Full Code Here


      PrintWriter pw = response.getWriter();
     
      pw.write("1");
    }else if((!"".equals(categoryType)&&categoryType != null) && categoryId != null)
    {
      IGatewayCategoryDetailDao gatewayCategoryDetailDao = (IGatewayCategoryDetailDao) ac.getBean("gatewayCategoryDetailDao");
      GatewayCategoryDetail detail = gatewayCategoryDetailDao.findGatewayCategoryDetailById(Integer.parseInt(id));
      if(!"null".equals(entityId)&&!"".equals(entityId)&&entityId!=null)detail.setEntityId(entityId);
      if(!"null".equals(entityUrl)&&!"".equals(entityUrl)&&entityUrl!=null)detail.setEntityUrl(entityUrl);
      if(!"null".equals(otherUrl)&&!"".equals(otherUrl)&&otherUrl!=null)detail.setOtherUrl(otherUrl);
      if(!"null".equals(areaNode)&&!"".equals(areaNode)&&areaNode!=null)detail.setAreaNode(areaNode);
      if(!"null".equals(url)&&!"".equals(url)&&url!=null)detail.setUrl(url);
      if(!"null".equals(entityName)&&!"".equals(entityName)&&entityName!=null)detail.setEntityName(entityName);
     
      gatewayCategoryDetailDao.updateGatewayCategoryDetail(detail);
    }
   
  }
View Full Code Here

    return page;
  }

  public static void main(String[] args) {
    ApplicationContext ac = new ClassPathXmlApplicationContext("ApplicationContext.xml");
    IProductDao productDao = (IProductDao) ac.getBean("productDao");
    PageList page = productDao.findProduct(new Long(12), new String[]{"商品","4"}, 2, 5, "");
    System.out.println(page.getDataList().size());
    System.out.println();
  }
View Full Code Here

  @Transactional
  public void batchDeleteAddress(String[] ids) {
    for(String id : ids)
    {
      Address addr = getHibernateTemplate().get(Address.class, Integer.parseInt(id));
      getHibernateTemplate().delete(addr);
    }
  }
View Full Code Here

    return findByPage4Report(hql, values, argment.getCurPage(), argment.getPageSize());
  }

  @Transactional
  public void delBrand(Long id) {
    Brand brand = getBrandById(id);
    this.getHibernateTemplate().delete(brand);
  }
View Full Code Here

*
*/
public class CardDao extends BaseDao implements ICardDao {

  public Card createCard() {
    Card card = new Card();
    card.setId(getNewCardId());
    getHibernateTemplate().persist(card);
    return card;
  }
View Full Code Here

      return (Long.parseLong(cards.get(0).getId())+1l)+"";
    }
  }

  public Card createCard(String cardNum) {
    Card card = new Card();
    card.setId(cardNum);
    getHibernateTemplate().persist(card);
    return card;
  }
View Full Code Here

  public Card createUserByCard(String card, Double score, long parenttype,
      long usertype, long organizationid, User parent, User opener,String mobile,String email) {
   
    String password = createRandomPassowrd(5);
   
    Card car= new Card();
    car.setId(card);
    car.setScore(score);
    car.setPassword(password);
    this.getHibernateTemplate().persist(car);
   
    String md5Passwd = EncryptUtil.toMD5(password);
    User user = new User();
    user.setPassword(md5Passwd);
View Full Code Here

    getHibernateTemplate().bulkUpdate("delete from Category c where c.id="+id);
  }
 
  public List<Category> findAllCategoryList(long id) {
    List<Category> list = new ArrayList<Category>();
    Category category = getHibernateTemplate().get(Category.class, id);
    if(category!=null) {
      list.add(category);
      List<Category> childs = findAllChilds(list);
      while(childs!=null&&childs.size()>0) {
        for(Category c:childs) {
View Full Code Here

    return findByPage4Report(hql, new Object[]{}, argment.getCurPage(), argment.getPageSize());
  }

  public List<Category> findAllCategoryList(long id) {
    List<Category> list = new ArrayList<Category>();
    Category category = findCategory(id);
    if(category!=null) {
      list.add(category);
      List<Category> childs = findAllChilds(list);
      while(childs!=null&&childs.size()>0) {
        for(Category c:childs) {
View Full Code Here

TOP

Related Classes of com.lgx8.gateway.entities.Orders

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.