【问题标题】:what is the .from(20).fetch(10) from the below code in play framework以下代码中的 .from(20).fetch(10) 是什么?
【发布时间】:2015-03-13 15:54:49
【问题描述】:

在这行代码中,

List<User> users = User.find("byEmailLike", "alexander@%") .from(20).fetch(10);

.from(20).fetch(10) 是什么?

【问题讨论】:

    标签: playframework-1.x


    【解决方案1】:

    直观的用法:从20开始获取10条记录

    文档中也有描述,你应该看看there

    List<Post> posts = Post.all().from(50).fetch(100); // 100 max posts start at 50
    

    【讨论】:

      猜你喜欢
      • 2017-10-07
      • 2018-12-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多