2017  Kodetalk | Feedback | Privacy Policy | Terms | About

how to store a java object using cassandra Mapper

i have java object and based on the pojo class i did created table in cassandra database. now i want to store the pojo directly to cassandra database. how will i do that?

use below way to store your pojo data:

Mapper<POJO> mapper = new MappingManager(DBConnection.CLUSTER.newSession()).mapper(POJO.class);

Answer is