diff --git a/src/main/kotlin/de/fraunhofer/iem/dataprovider/toolRun/service/ToolRunDbService.kt b/src/main/kotlin/de/fraunhofer/iem/dataprovider/toolRun/service/ToolRunDbService.kt
index 6251d5b97816aa123333bb97faabaabca2e8fb58..3600b773bf030e43a25cd6d3e9069f9227be21a6 100644
--- a/src/main/kotlin/de/fraunhofer/iem/dataprovider/toolRun/service/ToolRunDbService.kt
+++ b/src/main/kotlin/de/fraunhofer/iem/dataprovider/toolRun/service/ToolRunDbService.kt
@@ -9,8 +9,8 @@ import de.fraunhofer.iem.dataprovider.toolRun.entity.LanguageEntity
 import de.fraunhofer.iem.dataprovider.toolRun.entity.ToolRunEntity
 import de.fraunhofer.iem.dataprovider.toolRun.repository.LanguageRepository
 import de.fraunhofer.iem.dataprovider.toolRun.repository.ToolRunRepository
-import jakarta.transaction.Transactional
 import org.springframework.stereotype.Service
+import org.springframework.transaction.annotation.Transactional
 
 @Service
 class ToolRunDbService(
@@ -56,6 +56,7 @@ class ToolRunDbService(
 
 
     //TODO: this should return a create tool run dto
+    @Transactional(readOnly = true)
     fun getToolRunByProjectId(projectId: Long): ToolRunEntity {
         return toolRunRepository.findFirstByRepository_ProjectIdOrderByCreatedAtDesc(projectId)
     }