2011-10-12 55 views
0

我在研究示例CouchDB的示例。我在Spring上使用Ektorp來處理CouchDB。我想將其實施到我的應用程序中。我有用戶在我的沙發db當我使用:CouchDB Ektorp選擇查詢

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

但它只返回最後一條記錄。任何想法讓所有用戶?

+0

生成的視圖是什麼樣的? –

回答

0

它工作得很好,問題是關於在Spring配置文件中編寫的db名稱。