This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* エンティティのページング結果をラップするクラス | |
* 例: fun findByName(userName: String): Page<User> | |
*/ | |
data class Page<T>( | |
/** 取得したエンティティ */ | |
val items: List<T>, | |
/** ページング情報 */ | |
val paging: Paging, | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rakuten | |
import scalaj.http._ | |
import net.liftweb.json._ | |
import scala.util.{Failure, Success, Try} | |
trait RakutenTravelClient { | |
def keywordSearch(keyword: String): Either[Throwable, RakutenTravelApiResponse] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jp.co.bizreach.cqrssample.domain.task; | |
import javax.persistence.Column; | |
import javax.persistence.Entity; | |
import javax.persistence.EnumType; | |
import javax.persistence.Enumerated; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.Id; | |
import javax.persistence.Table; |