File tree Expand file tree Collapse file tree
save-cloud-common/src/jvmMain/kotlin/com/saveourtool/save/repository Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package com.saveourtool.save.repository
33import org.springframework.data.jpa.repository.Modifying
44import org.springframework.data.jpa.repository.Query
55import org.springframework.data.repository.query.Param
6+ import org.springframework.transaction.annotation.Transactional
67
78/* *
89 * Controller that handles operation with validate
@@ -19,13 +20,15 @@ interface ValidateRepository {
1920 * @param name
2021 */
2122 @Query(""" insert into save_cloud.high_level_names set name = :name""" , nativeQuery = true )
23+ @Transactional
2224 @Modifying
2325 fun saveHighLevelName (@Param(" name" ) name : String )
2426
2527 /* *
2628 * @param name
2729 */
2830 @Query(""" delete from save_cloud.high_level_names where name = :name""" , nativeQuery = true )
31+ @Transactional
2932 @Modifying
3033 fun deleteHighLevelName (@Param(" name" ) name : String )
3134}
You can’t perform that action at this time.
0 commit comments