Package org.springframework.data.couchbase.core

Examples of org.springframework.data.couchbase.core.CouchbaseTemplate.save()


  }

  private void populateTestData(final CouchbaseClient client) {
    CouchbaseTemplate template = new CouchbaseTemplate(client);
    for (int i = 0; i < 100; i++) {
      template.save(new User("testuser-" + i, "uname-" + i));
    }
  }

  private void createAndWaitForDesignDocs(final CouchbaseClient client) {
    DesignDocument designDoc = new DesignDocument("user");
View Full Code Here


  private void populateTestData(CouchbaseClient client) {
    CouchbaseTemplate template = new CouchbaseTemplate(client);

    for (int i = 0; i < 100; i++) {
      User u = new User("testuser-" + i, "uname-" + i);
      template.save(u, PersistTo.MASTER, ReplicateTo.ZERO);
    }

  }

  private void createAndWaitForDesignDocs(CouchbaseClient client) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.