Pull request #207: Removed transactional annotation
Merge in RED/persistence-service from RED-3242 to master * commit 'f9b3d10d465856408083ead12f0e83b65b2c25db': Removed transactional annotation
This commit is contained in:
commit
339f9dd491
@ -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();
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user