Example usage for org.springframework.data.cassandra.config SchemaAction NONE

List of usage examples for org.springframework.data.cassandra.config SchemaAction NONE

Introduction

In this page you can find the example usage for org.springframework.data.cassandra.config SchemaAction NONE.

Prototype

SchemaAction NONE

To view the source code for org.springframework.data.cassandra.config SchemaAction NONE.

Click Source Link

Document

Take no schema actions.

Usage

From source file:com.poc.cassandra.CassandraConfig.java

@Bean
public CassandraSessionFactoryBean session() throws Exception {

    CassandraSessionFactoryBean session = new CassandraSessionFactoryBean();
    session.setCluster(cluster().getObject());
    session.setKeyspaceName(env.getProperty("cassandra.keyspace"));
    session.setConverter(converter());/* w  ww  .  jav a2 s .c o m*/
    session.setSchemaAction(SchemaAction.NONE);

    return session;
}