开发者

CouchDB Ektorp Select Query

I am examining example Blog example of CouchDB. I use Ektorp at Spring for CouchDB. I wanted to implement it into my application. I have users at my couch db when I use that:

@GenerateView
@Override
public List<User> getAll() {
  ViewQuery 开发者_Python百科q = createQuery("all")
    .descending(true)
    .includeDocs(true);
  return db.queryView(q, User.class);
}

However it returns just last record. Any ideas to get all users?


It works well problem was about db names that's written at Spring configuration file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜