Skip to content

Commit

Permalink
Rename JpaPriorUploadRepository to JpaPriorNotificationUploadRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Sep 3, 2024
1 parent 661b9db commit d97b5e3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.springframework.stereotype.Repository
import org.springframework.transaction.annotation.Transactional

@Repository
class JpaPriorUploadRepository(
class JpaPriorNotificationUploadRepository(
private val dbPriorNotificationUploadRepository: DBPriorNotificationUploadRepository,
) : PriorNotificationUploadRepository {
override fun deleteById(id: String) {
Expand All @@ -30,8 +30,8 @@ class JpaPriorUploadRepository(
}

@Transactional
override fun save(newPriorNotificationDocument: PriorNotificationDocument) {
dbPriorNotificationUploadRepository
.save(PriorNotificationUploadEntity.fromDocument(newPriorNotificationDocument))
override fun save(newPriorNotificationDocument: PriorNotificationDocument): PriorNotificationDocument {
return dbPriorNotificationUploadRepository
.save(PriorNotificationUploadEntity.fromDocument(newPriorNotificationDocument)).toDocument()
}
}

0 comments on commit d97b5e3

Please sign in to comment.