RED-8114 Copy new value for unprocessed resize & add fetch type for IdRemoval collection #289

Merged
andrei.isvoran.ext merged 2 commits from RED-8114 into master 2023-12-22 15:12:04 +01:00
2 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import jakarta.persistence.EmbeddedId;
import jakarta.persistence.Entity;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.persistence.FetchType;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
@ -55,7 +56,7 @@ public class IdRemovalEntity implements IBaseAnnotation {
@ManyToOne
private FileEntity fileStatus;
@ElementCollection
@ElementCollection(fetch = FetchType.EAGER)
@Fetch(value = FetchMode.SUBSELECT)
private Set<String> typeIdsOfModifiedDictionaries = new HashSet<>();

View File

@ -206,6 +206,7 @@ public class EntityLogMergeService {
entityLogEntry.setTextAfter(manualResizeRedaction.getTextAfter());
entityLogEntry.setTextBefore(manualResizeRedaction.getTextBefore());
entityLogEntry.setPositions(convertPositions(manualResizeRedaction.getPositions()));
entityLogEntry.setValue(manualResizeRedaction.getValue());
addChanges(entityLogEntry.getChanges(), ChangeType.CHANGED, analysisNumber, manualResizeRedaction.getRequestDate());
ManualChange.ManualChangeBuilder manualChange = ManualChange.builder()
.manualRedactionType(ManualRedactionType.RESIZE)