hotfix: Fixed 'idle in transaction' connections when loading entityLog #287

Merged
dominique.eiflaender1 merged 1 commits from connectionHotfix into master 2023-12-22 11:09:42 +01:00
4 changed files with 2 additions and 4 deletions

View File

@ -74,7 +74,7 @@ public class ManualRedactionEntryEntity implements IBaseAnnotation {
@Column
private OffsetDateTime softDeletedTime;
@ElementCollection
@ElementCollection(fetch = FetchType.EAGER)
@Fetch(FetchMode.SUBSELECT)
private List<RectangleEntity> positions = new ArrayList<>();

View File

@ -57,7 +57,7 @@ public class ManualResizeRedactionEntity implements IBaseAnnotation {
@ManyToOne(fetch = FetchType.LAZY)
private FileEntity fileStatus;
@ElementCollection
@ElementCollection(fetch = FetchType.EAGER)
@Fetch(FetchMode.SUBSELECT)
private List<RectangleEntity> positions = new ArrayList<>();

View File

@ -28,7 +28,6 @@ import lombok.extern.slf4j.Slf4j;
@RequiredArgsConstructor
@FieldDefaults(makeFinal = true, level = AccessLevel.PRIVATE)
@Slf4j
@Transactional
public class EntityLogService {
FileManagementStorageService fileManagementStorageService;

View File

@ -55,7 +55,6 @@ public class ManualRedactionProviderService {
}
@Transactional
public ManualRedactions getManualRedactions(String fileId, boolean unprocessed) {
Set<ManualRedactionEntry> entriesToAdd;