RED-3716: On adding entries to a dictionary do not read the whole dictionary from persistence
This commit is contained in:
parent
30d40816ae
commit
190c7609e4
@ -30,7 +30,7 @@ public interface EntryRepository extends JpaRepository<DictionaryEntryEntity, Lo
|
||||
|
||||
@Modifying
|
||||
@Transactional
|
||||
@Query("update DictionaryEntryEntity e set e.deleted = false, e.version = :version where e.type.id =:typeId and e.value = :value and e.deleted = true")
|
||||
@Query("update DictionaryEntryEntity e set e.deleted = false, e.version = :version where e.type.id = :typeId and e.value = :value and e.deleted = true")
|
||||
void undeleteEntryIfDeleted(String typeId, String value, long version);
|
||||
|
||||
}
|
||||
|
||||
@ -32,7 +32,7 @@ public interface FalsePositiveEntryRepository extends JpaRepository<DictionaryFa
|
||||
|
||||
@Modifying
|
||||
@Transactional
|
||||
@Query("update DictionaryFalsePositiveEntryEntity e set e.deleted = false, e.version = :version where e.type.id =:typeId and e.value = :value and e.deleted = true")
|
||||
@Query("update DictionaryFalsePositiveEntryEntity e set e.deleted = false, e.version = :version where e.type.id = :typeId and e.value = :value and e.deleted = true")
|
||||
void undeleteEntryIfDeleted(String typeId, String value, long version);
|
||||
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@ public interface FalseRecommendationEntryRepository extends JpaRepository<Dictio
|
||||
|
||||
@Modifying
|
||||
@Transactional
|
||||
@Query("update DictionaryFalseRecommendationEntryEntity e set e.deleted = false, e.version = :version where e.type.id =:typeId and e.value = :value and e.deleted = true")
|
||||
@Query("update DictionaryFalseRecommendationEntryEntity e set e.deleted = false, e.version = :version where e.type.id = :typeId and e.value = :value and e.deleted = true")
|
||||
void undeleteEntryIfDeleted(String typeId, String value, long version);
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user