You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2010/09/06 21:52:37 UTC

[Couchdb Wiki] Trivial Update of "Getting_started_with_Java" by JanPeuker

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Getting_started_with_Java" page has been changed by JanPeuker.
The comment on this change is: Fixed saveDocument call.
http://wiki.apache.org/couchdb/Getting_started_with_Java?action=diff&rev1=11&rev2=12

--------------------------------------------------

  
  Document newdoc = new Document();
  newdoc.put("foo","baz"); // same as JSON: { foo: "baz"; }
- newdoc.saveDocument(newdoc); // auto-generated id given by the database
+ db.saveDocument(newdoc); // auto-generated id given by the database
  
  // Running a view
  ViewResults result = db.getAllDocuments(); // same as db.view("_all_dbs");