logger.info("DB info : dbName=" + info.getDbName() + ", docCount="
+ info.getDocCount() + ", diskSize=" + df.format(info.getDiskSize()
/ 1024.0 / 1024.0) + " MB");
Client john = new Client("John Smith", "USA");
john.setId("john");
logger.info("john : _id="+john.getId()+" _rev="+john.getRevision());
waitForKey();
db.create(john);
logger.info("create");
logger.info("john : _id="+john.getId()+" _rev="+john.getRevision());
waitForKey();
john.setAddress("PL");
db.update(john);
logger.info("update");
logger.info("john : _id="+john.getId()+" _rev="+john.getRevision());
waitForKey();
logger.info("get");
john = db.get(Client.class, "john");
logger.info("john : _id="+john.getId()+" _rev="+john.getRevision());
waitForKey();
logger.info("delete");
db.delete(john);
waitForKey();
logger.info("Order create");
Order o1 = new Order();
o1.setCustomerId(john.getId());
db.create(o1);
waitForKey();
logger.info("Order delete ");