Skip to content

RedisEnhancedRepository cannot be updated via Example.of. #706

@pansent

Description

@pansent

This is my repository:

public interface DevicePointActualRepository extends RedisEnhancedRepository<DevicePointActual, Integer>

This is my update method:

public DevicePointActual saveActualPoint(DevicePointActual actualPoint) {
DevicePointActual devicePointActual = devicePointActualRepository.findById(actualPoint.getId()).orElseThrow(() -> new BusinessException("Point does not exist"));
devicePointActual.setActualPoint(actualPoint.getActualPoint());
devicePointActual.setControlId(actualPoint.getControlId());
return devicePointActualRepository.update(Example.of(devicePointActual));
} 

This doesn't update the data; it remains the same. However, if I use the save() method, the data is updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions