【发布时间】:2017-05-20 17:03:02
【问题描述】:
我只是想知道在使用带有多个左连接的one.toManies API 的情况下如何应用偏移量和限制查询参数?
我的示例 DSL 是:
withSQL {
select.from(CustomerTable as cust)
.leftJoin(SocialNetworkTable as sn).on(cust.id, sn.customerId)
.leftJoin(MailingTable as ml).on(cust.id, ml.customerId)
}.one(CustomerTable(cust)).toManies(...)
所以我想在父 CustomerTable 上分页。
您有什么最佳做法吗?
【问题讨论】:
标签: sql scala pagination scalikejdbc