开发者

CouchDB Ektorp Select Query

开发者 https://www.devze.com 2023-04-12 06:23 出处:网络
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:

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

精彩评论

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