code: @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;
  	}
docs: Update the entity in the data store.
  
  @param entity
  the entity to update
  
  @return <code>true</code> if updated, <code>false</code> otherwise