Examples of andParentIdIsNull()


Examples of com.eatle.persistent.pojo.foundation.place.DistrictCriteria.Criteria.andParentIdIsNull()

    DistrictCriteria dc = new DistrictCriteria();
    Criteria criteria = dc.createCriteria();
    Long parentId = null;
    if (parentId == null)
      criteria.andParentIdIsNull();
    else
      criteria.andParentIdEqualTo(parentId);
    List<District> distincts = districtService.findByCriteria(dc);
    System.out.println(distincts.size());
  }
View Full Code Here

Examples of com.eatle.persistent.pojo.foundation.place.DistrictCriteria.Criteria.andParentIdIsNull()

  public String showAdd()
  {
    // 查询并存入所有顶级区域
    DistrictCriteria dc = new DistrictCriteria();
    Criteria criteria = dc.createCriteria();
    criteria.andParentIdIsNull();
    List<District> topLevelDistrict = districtService.findByCriteria(dc);
    request.setAttribute("topLevelDistrict", topLevelDistrict);

    return "showAdd";
  }
View Full Code Here

Examples of com.eatle.persistent.pojo.foundation.place.DistrictCriteria.Criteria.andParentIdIsNull()

    // 学校对象
    school = schoolService.findById(school.getId());
    // 查询并存入所有顶级区域
    DistrictCriteria dc = new DistrictCriteria();
    Criteria criteria = dc.createCriteria();
    criteria.andParentIdIsNull();
    List<District> topLevelDistrict = districtService.findByCriteria(dc);
    request.setAttribute("topLevelDistrict", topLevelDistrict);

    return "showUpdate";
  }
View Full Code Here

Examples of com.eatle.persistent.pojo.foundation.place.DistrictCriteria.Criteria.andParentIdIsNull()

  public String showAdd()
  {
    // 查询并存入所有顶级区域
    DistrictCriteria dc = new DistrictCriteria();
    Criteria criteria = dc.createCriteria();
    criteria.andParentIdIsNull();
    List<District> topLevelDistrict = districtService.findByCriteria(dc);
    request.setAttribute("topLevelDistrict", topLevelDistrict);

    return "showAdd";
  }
View Full Code Here

Examples of com.eatle.persistent.pojo.foundation.place.DistrictCriteria.Criteria.andParentIdIsNull()

    // 社区对象
    community = communityService.findById(community.getId());
    // 查询并存入所有顶级区域
    DistrictCriteria dc = new DistrictCriteria();
    Criteria criteria = dc.createCriteria();
    criteria.andParentIdIsNull();
    List<District> topLevelDistrict = districtService.findByCriteria(dc);
    request.setAttribute("topLevelDistrict", topLevelDistrict);

    return "showUpdate";
  }
View Full Code Here

Examples of com.eatle.persistent.pojo.foundation.place.DistrictCriteria.Criteria.andParentIdIsNull()

      DistrictCriteria dc = new DistrictCriteria();
      Criteria criteria = dc.createCriteria();
      Long parentId = district.getParentId();
      if(parentId == 0L)
      {
        criteria.andParentIdIsNull();
      }
      else
      {
        criteria.andParentIdEqualTo(parentId);
      }
View Full Code Here

Examples of com.eatle.persistent.pojo.foundation.place.DistrictCriteria.Criteria.andParentIdIsNull()

  public String showAddSendSchool()
  {
    // 查询并存入所有顶级区域
    DistrictCriteria dc = new DistrictCriteria();
    Criteria criteria = dc.createCriteria();
    criteria.andParentIdIsNull();
    List<District> topLevelDistrict = districtService.findByCriteria(dc);
    request.setAttribute("topLevelDistrict", topLevelDistrict);
   
    return "showAddSendSchool";
  }
View Full Code Here

Examples of com.eatle.persistent.pojo.foundation.place.DistrictCriteria.Criteria.andParentIdIsNull()

  public String showAddSendCommunity()
  {
    // 查询并存入所有顶级区域
    DistrictCriteria dc = new DistrictCriteria();
    Criteria criteria = dc.createCriteria();
    criteria.andParentIdIsNull();
    List<District> topLevelDistrict = districtService.findByCriteria(dc);
    request.setAttribute("topLevelDistrict", topLevelDistrict);
   
    return "showAddSendCommunity";
  }
View Full Code Here

Examples of com.eatle.persistent.pojo.foundation.place.DistrictCriteria.Criteria.andParentIdIsNull()

        criteria.andPinyinNameLike("%" + (String) queryMap.get("pinyinName") + "%");
      }

      if (queryMap.containsKey("pidIsNull"))
      {
        criteria.andParentIdIsNull();
      }
    }
    // 设置分页参数
    districtCriteria.setPageSize(pageSize);
    districtCriteria.setStartIndex((currentPage - 1) * pageSize);
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.