@ SuppressWarnings ( "deprecation" ) @ Override public < S extends T > Iterable < S > saveAll ( final Iterable < S > entities ) { if ( arangoOperations . getVersion ( ) . getVersion ( ) . compareTo ( "3.4.0" ) < 0 ) { arangoOperations . upsert ( entities , UpsertStrategy . UPDATE ) ; } else { final S first = StreamSupport . stream ( entities . spliterator ( ) , false ) . findFirst ( ) . get ( ) ; arangoOperations . repsert ( entities , ( Class < S > ) first . getClass ( ) ) ; } return entities ; }
Saves the given iterable of entities to the database