@ Override public void delete ( final T entity ) { String id = null ; try { id = ( String ) arangoOperations . getConverter ( ) . getMappingContext ( ) . getPersistentEntity ( domainClass ) . getIdProperty ( ) . getField ( ) . get ( entity ) ; } catch ( final IllegalAccessException e ) { e . printStackTrace ( ) ; } arangoOperations . delete ( id , domainClass ) ; }
Deletes document in the database representing the given object by getting it s id