/** * Update the PoiTypes in the database with the given List of PoiTypes. * * @param newPoiTypes The PoiTypes to update. */ public void updatePoiTypes(List<PoiType> newPoiTypes) { for (PoiType newPoiType : newPoiTypes) { PoiType byBackendId = poiTypeDao.findByBackendId(newPoiType.getBackendId()); if (byBackendId != null) { newPoiType.setId(byBackendId.getId()); } savePoiType(newPoiType); } }