Skip to content

Commit

Permalink
add :: adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
meltapplee committed Mar 4, 2024
1 parent 80cf109 commit c626bc6
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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<User> {
return userRepository.findAll()
}
}

0 comments on commit c626bc6

Please sign in to comment.