Exemplo n.º 1
0
 /**
  * Goes through the list of areas that an element has a database connection to, and removes any
  * connections from the areas to the element -- but not from the element to the areas.
  *
  * @param element on which connections will be removed
  */
 public void deleteElementFromAreas(Element element) {
   for (Area area : element.getAreas()) {
     area.deleteElement(element);
     areaRepository.save(area);
   }
 }