/** * Get all the PoiTypes in the database. * * @return A ID,PoiType map with all the PoiTypes. */ 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; }