userimage

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?
userimage

use below way to store your pojo data:

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

Answer is