Are there any known issues regarding JPA and Mutab...
# announcements
k
Are there any known issues regarding JPA and MutableSet? If I run the following code
Copy code
lru.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.