@@ -113,11 +113,8 @@ public class CreateDbAndDoc {
113113 */
114114 // ====================================================================
115115
116- // Keeping track of the revision number of the document object
117- // is necessary for further UPDATE/DELETE operations:
118- exampleDocument. setRev(createDocumentResponse. getRev());
119- System . out. println(" You have created the document:\n " +
120- exampleDocument);
116+ System . out. println(" You have created the document. Response body:\n " +
117+ createDocumentResponse);
121118 }
122119}
123120```
@@ -126,12 +123,11 @@ When you run the code, you see a result similar to the following output.
126123
127124``` text
128125"orders" database created.
129- You have created the document:
126+ You have created the document. Response body :
130127{
131- "_id": "example",
132- "_rev": "1-1b403633540686aa32d013fda9041a5d",
133- "joined": "2019-01-24T10:42:99.000Z",
134- "name": "Bob Smith"
128+ "id": "example",
129+ "rev": "1-1b403633540686aa32d013fda9041a5d",
130+ "ok": true
135131}
136132```
137133
@@ -208,14 +204,14 @@ public class GetInfoFromExistingDatabase {
208204When you run the code, you see a result similar to the following output.
209205
210206``` text
211- Server Version: 2.1 .1
207+ Server Version: 3.2 .1
212208Document count in "orders" database is 1.
213209Document retrieved from database:
214210{
215211 "_id": "example",
216212 "_rev": "1-1b403633540686aa32d013fda9041a5d",
217- "name ": "Bob Smith ",
218- "joined ": "2019-01-24T10:42:99.000Z "
213+ "joined ": "2019-01-24T10:42:59.000Z ",
214+ "name ": "Bob Smith "
219215}
220216```
221217
0 commit comments