Skip to content

Instantly share code, notes, and snippets.

/**
* エンティティのページング結果をラップするクラス
* 例: fun findByName(userName: String): Page<User>
*/
data class Page<T>(
/** 取得したエンティティ */
val items: List<T>,
/** ページング情報 */
val paging: Paging,
)
package rakuten
import scalaj.http._
import net.liftweb.json._
import scala.util.{Failure, Success, Try}
trait RakutenTravelClient {
def keywordSearch(keyword: String): Either[Throwable, RakutenTravelApiResponse]
}
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;