Example usage for org.springframework.data.cassandra.config CassandraSessionFactoryBean setSchemaAction

List of usage examples for org.springframework.data.cassandra.config CassandraSessionFactoryBean setSchemaAction

Introduction

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

Prototype

public void setSchemaAction(SchemaAction schemaAction) 

Source Link

Document

Set the SchemaAction .

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());/*from   ww w.  j  a  v  a2s.c  o m*/
    session.setSchemaAction(SchemaAction.NONE);

    return session;
}