private DAO dao;
public List<DistrictConvertor> getDistrictList(int lpuId){
ArrayList<DistrictConvertor> districts = new ArrayList<DistrictConvertor>();
districts.add(new DistrictConvertor());
Lpu lpu = getDao().getById(Lpu.class, lpuId);
if (lpu != null){
List<District> districtList = getDao().getDistrictList(lpu);
for (District district : districtList) {
districts.add(new DistrictConvertor(district));
}
}
return districts;
}