@ Override public boolean update ( T entity ) { if ( entity == null ) { return false ; } X primaryID = getPrimaryID ( entity ) ; if ( primaryID == null ) { return false ; } if ( ! allowEmptyOrZeroID ( ) && AssertUtils . isEmpty ( primaryID ) ) { return false ; } this . mongoTemplate . save ( entity ) ; return true ; }
Update the entity in the data store .