Removed transactional annotation

This commit is contained in:
Timo Bejan 2022-01-28 14:08:32 +02:00
parent 58142781e4
commit f9b3d10d46
2 changed files with 3 additions and 3 deletions

View File

@ -21,9 +21,10 @@ public class EntryPersistenceService {
private final TypeRepository typeRepository;
public void addEntry(String typeId, List<String> entries, long version) {
var type = typeRepository.getOne(typeId);
var type = typeRepository.getById(typeId);
var dictionaryEntries = entries.stream().map(word -> {
DictionaryEntryEntity entry = new DictionaryEntryEntity();

View File

@ -67,7 +67,6 @@ public class ManualRedactionService {
private final HashFunction hashFunction = Hashing.murmur3_128();
@Transactional
public ManualAddResponse addAddRedaction(String dossierId, String fileId, AddRedactionRequest addRedactionRequest) {
dossierPersistenceService.getAndValidateDossier(dossierId);
@ -663,7 +662,7 @@ public class ManualRedactionService {
private void addToDictionary(String typeId, String value, String dossierId, String fileId) {
try {
log.debug("Adding entries to {} for {} / {}", typeId, dossierId, fileId);
log.debug("Adding entry: {} to {} for {} / {}", value, typeId, dossierId, fileId);
dictionaryController.addEntries(typeId, List.of(value), false, false);
reprocess(dossierId, fileId);