@Override public <T> T update(Object id, T objectToUpdate) { return super.update(id, objectToUpdate); }
@Override public <T> T update(T objectToUpdate) { if (objectToUpdate instanceof PartialUpdate) { doPartialUpdate((PartialUpdate<?>) objectToUpdate); return objectToUpdate; } return super.update(objectToUpdate); }
@Override public <T> T update(Object id, T objectToUpdate) { return super.update(id, objectToUpdate); }
@Override public <T> T update(Object id, T objectToUpdate) { return super.update(id, objectToUpdate); }
@Override public <T> T update(T objectToUpdate) { if (objectToUpdate instanceof PartialUpdate) { doPartialUpdate((PartialUpdate<?>) objectToUpdate); return objectToUpdate; } return super.update(objectToUpdate); }
@Override public <T> T update(T objectToUpdate) { if (objectToUpdate instanceof PartialUpdate) { doPartialUpdate((PartialUpdate<?>) objectToUpdate); return objectToUpdate; } return super.update(objectToUpdate); }
@SuppressWarnings("rawtypes") @Override public <T> T update(T objectToUpdate) { KeyValuePersistentEntity<?, ?> entity = getKeyValuePersistentEntity(objectToUpdate); if (!entity.hasIdProperty()) { throw new InvalidDataAccessApiUsageException( String.format("Cannot determine id for type %s", ClassUtils.getUserClass(objectToUpdate))); } return update(entity.getIdentifierAccessor(objectToUpdate).getRequiredIdentifier(), objectToUpdate); }
@SuppressWarnings("rawtypes") @Override public <T> T update(T objectToUpdate) { KeyValuePersistentEntity<?, ?> entity = getKeyValuePersistentEntity(objectToUpdate); if (!entity.hasIdProperty()) { throw new InvalidDataAccessApiUsageException( String.format("Cannot determine id for type %s", ClassUtils.getUserClass(objectToUpdate))); } return update(entity.getIdentifierAccessor(objectToUpdate).getRequiredIdentifier(), objectToUpdate); }
@SuppressWarnings("rawtypes") @Override public <T> T update(T objectToUpdate) { KeyValuePersistentEntity<?, ?> entity = getKeyValuePersistentEntity(objectToUpdate); if (!entity.hasIdProperty()) { throw new InvalidDataAccessApiUsageException( String.format("Cannot determine id for type %s", ClassUtils.getUserClass(objectToUpdate))); } return update(entity.getIdentifierAccessor(objectToUpdate).getRequiredIdentifier(), objectToUpdate); }