couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Trivial Update of "Getting_started_with_Java" by JanPeuker
Date Mon, 06 Sep 2010 19:52:37 GMT
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");

Mime
View raw message