The delete endpoint was failing due to missing annotation.
Issue-ID: CCSDK-3798
Change-Id: Ifa857a4842b9528d1e645e1fdeb6781121a930f7
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Query
import org.springframework.stereotype.Repository
+import javax.transaction.Transactional
/**
* ResourceMappingRepository.java Purpose: Provide Configuration Generator ResourceMappingRepository
*
* @param name name
*/
+ @Transactional
fun deleteByName(name: String)
/**
import org.springframework.test.context.ContextConfiguration
import org.springframework.test.context.TestPropertySource
import org.springframework.test.context.junit4.SpringRunner
-import org.springframework.transaction.annotation.Transactional
@RunWith(SpringRunner::class)
@ContextConfiguration(
}
@Test
- @Transactional
@Commit
fun test05Delete() {
resourceDictionaryRepository.deleteByName(sourceName)