2021-08-07 12:20:52 +07:00
|
|
|
package com.cubetiqs.graphql.demo.repository
|
|
|
|
|
|
|
|
import com.cubetiqs.graphql.demo.domain.account.Account
|
|
|
|
import org.springframework.data.jpa.repository.JpaRepository
|
2021-08-08 19:48:50 +07:00
|
|
|
import org.springframework.scheduling.annotation.Async
|
2021-08-07 12:20:52 +07:00
|
|
|
import org.springframework.stereotype.Repository
|
2021-08-08 19:48:50 +07:00
|
|
|
import java.util.concurrent.CompletableFuture
|
2021-08-07 12:20:52 +07:00
|
|
|
|
|
|
|
@Repository
|
2021-08-08 19:48:50 +07:00
|
|
|
interface AccountRepository : JpaRepository<Account, Long> {
|
|
|
|
@Async
|
|
|
|
fun readAllBy(): CompletableFuture<Collection<Account>>
|
|
|
|
}
|