Package org.springframework.data.cassandra.core

Examples of org.springframework.data.cassandra.core.CassandraAdminTemplate.truncate()


    cassandraTemplate.createTable(true, CqlIdentifier.cqlId("users"), User.class, new HashMap<String, Object>());

    for (CassandraPersistentEntity<?> entity : cassandraTemplate.getConverter().getMappingContext()
        .getPersistentEntities()) {
      cassandraTemplate.truncate(entity.getTableName());
    }

    return cassandraTemplate;
  }
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.