public Map<Long,PoiType> loadPoiTypes(){
  List<PoiType> poiTypes=poiTypeDao.queryForAll();
  Map<Long,PoiType> result=new HashMap<>();
  for (  PoiType poiType : poiTypes) {
    result.put(poiType.getId(),poiType);
  }
  return result;
}

public Map < Long , PoiType > loadPoiTypes ( ) { List < PoiType > poiTypes = poiTypeDao . queryForAll ( ) ; Map < Long , PoiType > result = new HashMap < > ( ) ; for ( PoiType poiType : poiTypes ) { result . put ( poiType . getId ( ) , poiType ) ; } return result ; }
get all the poitypes in the database .
