RED-6467: Added missing transaction annotation

This commit is contained in:
Viktor Seifert 2023-04-13 17:06:58 +02:00
parent 66ff55f826
commit a029bb5bf7

View File

@ -6,6 +6,7 @@ import java.util.Set;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import javax.transaction.Transactional;
import org.springframework.stereotype.Component;
@ -35,6 +36,7 @@ class QueryExecutor {
// So we suppress the warning.
// CAUTION: Make sure that the query actually returns a list of Strings.
@SuppressWarnings("unchecked")
@Transactional
public LinkedList<String> runUndeleteQueryInBatches(String typeId, Set<String> entries, long version, String tableName) {
String sqlString = getUndeleteEntriesQuery(tableName);