RED-10117: 500 Error in Dossier Template Admin Page
* remove transactional from getAllRelevantStatusesForReanalysisScheduler and addToAnalysisQueue
This commit is contained in:
parent
dc42fcad40
commit
50831dabfa
@ -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
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user