kschlesselmann
09/11/2017, 12:51 PMlru.systemOptions.removeIf { option -> option.systemOptionId == systemOptionType.systemOptionId }
lru.systemOptions.add(systemOption)
and the option is added again with different values as before all other options of the set get deleted after lru = lruRepository.save(lru)
(save call to a Spring Data JPA repository). The returned value still contains them though … any ideas? lru.systemOptions
is the MutableSet here.