Exemplo n.º 1
0
 /**
  * Goes through the list of areas that an element has a database connection to, and makes sure the
  * areas also have a connection to the element.
  *
  * @param element the element that connections will be checked on
  */
 public void saveContentToAreas(Element element) {
   for (Area area : element.getAreas()) {
     area.addElement(element);
     areaRepository.save(area);
   }
 }