merge fix

This commit is contained in:
Timo Bejan 2021-09-28 14:58:27 +03:00
parent 7987d2b91c
commit 111fb634f9
2 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,7 @@ public class EntryPersistenceService {
}
@Transactional
public void setVersion(String typeId, List<String> values, long version) {
entryRepository.updateVersionWhereTypeIdAndValueIn(version, typeId, values);
}

View File

@ -2,6 +2,7 @@ package com.iqser.red.service.persistence.management.v1.processor.service.persis
import com.iqser.red.service.persistence.management.v1.processor.entity.configuration.DictionaryEntryEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
@ -10,6 +11,7 @@ public interface EntryRepository extends JpaRepository<DictionaryEntryEntity, Lo
void deleteAllByTypeIdAndVersionAndValueIn(String typeId, long version, List<String> values);
@Modifying
@Query("update DictionaryEntryEntity e set e.version = :version where e.type.id =:typeId and e.value in :values")
void updateVersionWhereTypeIdAndValueIn(long version, String typeId, List<String> values);