2017-05-10 27 views
0

左の結合をいくつか使用して、one.toManies APIを使用する場合、どのようにオフセットと制限のクエリパラメータを適用できますか?scalikejdbcページ区切り

マイサンプル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の上にページ付けしたいと思います。

これを行うためのベストプラクティスはありますか?

答えて