From c626bc63429996e526d4827a57360b5d5b8e74cd Mon Sep 17 00:00:00 2001 From: soohyeon Date: Mon, 4 Mar 2024 22:29:55 +0900 Subject: [PATCH] add :: adapter --- .../domain/persistence/UserPersistenceAdapter.kt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/main/kotlin/com/xaquare/xquarebackoffice/domain/persistence/UserPersistenceAdapter.kt diff --git a/src/main/kotlin/com/xaquare/xquarebackoffice/domain/persistence/UserPersistenceAdapter.kt b/src/main/kotlin/com/xaquare/xquarebackoffice/domain/persistence/UserPersistenceAdapter.kt new file mode 100644 index 0000000..6aeab10 --- /dev/null +++ b/src/main/kotlin/com/xaquare/xquarebackoffice/domain/persistence/UserPersistenceAdapter.kt @@ -0,0 +1,14 @@ +package com.xaquare.xquarebackoffice.domain.persistence + +import com.xaquare.xquarebackoffice.domain.entity.User +import com.xaquare.xquarebackoffice.domain.persistence.repository.UserRepository +import org.springframework.stereotype.Component + +@Component +class UserPersistenceAdapter( + private val userRepository: UserRepository +) { + fun findAll(): List { + return userRepository.findAll() + } +}