Skip to content

Commit

Permalink
Fixed create organization (#2925)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheshiriks authored Feb 21, 2024
1 parent 2bfa598 commit 77046b4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.saveourtool.save.repository
import org.springframework.data.jpa.repository.Modifying
import org.springframework.data.jpa.repository.Query
import org.springframework.data.repository.query.Param
import org.springframework.transaction.annotation.Transactional

/**
* Controller that handles operation with validate
Expand All @@ -19,13 +20,15 @@ interface ValidateRepository {
* @param name
*/
@Query("""insert into save_cloud.high_level_names set name = :name""", nativeQuery = true)
@Transactional
@Modifying
fun saveHighLevelName(@Param("name") name: String)

/**
* @param name
*/
@Query("""delete from save_cloud.high_level_names where name = :name""", nativeQuery = true)
@Transactional
@Modifying
fun deleteHighLevelName(@Param("name") name: String)
}

0 comments on commit 77046b4

Please sign in to comment.