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.