RED-10117: 500 Error in Dossier Template Admin Page

* remove transactional from getAllRelevantStatusesForReanalysisScheduler and addToAnalysisQueue
This commit is contained in:
maverickstuder 2024-09-27 13:26:51 +02:00
parent dc42fcad40
commit 50831dabfa
2 changed files with 2 additions and 4 deletions

View File

@ -184,7 +184,7 @@ public class FileEntity {
@JoinColumn(name = "file_id")
@Fetch(FetchMode.SUBSELECT)
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
private List<FileAttributeEntity> fileAttributes = new ArrayList<>();
@Column(name = "dossier_id")
@ -201,7 +201,7 @@ public class FileEntity {
@Column
private OffsetDateTime errorTimestamp;
@ElementCollection
@ElementCollection(fetch = FetchType.EAGER)
private List<FileEntityComponentMappingVersionEntity> componentMappingVersions;
@Column

View File

@ -116,7 +116,6 @@ public class FileStatusService {
WebsocketService websocketService;
@Transactional
public List<FileModel> getAllRelevantStatusesForReanalysisScheduler() {
var fileEntities = fileStatusPersistenceService.getAllRelevantStatusesForReanalysisScheduler(fileManagementServiceSettings.getMaxErrorRetries());
@ -245,7 +244,6 @@ public class FileStatusService {
}
@Transactional
protected void addToAnalysisQueue(String dossierId, String fileId, boolean priority, Set<Integer> sectionsToReanalyse, AnalysisType analysisType) {
var dossier = dossierPersistenceService.getAndValidateDossier(dossierId);