RED-6467: Added missing transaction annotation
This commit is contained in:
parent
66ff55f826
commit
a029bb5bf7
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user