@ SuppressWarnings ( "deprecation" ) @ Override public < S extends T > S save ( final S entity ) { if ( arangoOperations . getVersion ( ) . getVersion ( ) . compareTo ( "3.4.0" ) < 0 ) { arangoOperations . upsert ( entity , UpsertStrategy . REPLACE ) ; } else { arangoOperations . repsert ( entity ) ; } return entity ; }
Saves the passed entity to the database using upsert from the template