From 69bd667393e88d85e7dd2e6b95c6837a41ebecd3 Mon Sep 17 00:00:00 2001 From: chaks03 Date: Fri, 2 Jul 2021 05:52:34 +0530 Subject: [PATCH] Fix: Keyspaces dropped --- src/main/java/com/uci/dao/config/CassandraConfig.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/uci/dao/config/CassandraConfig.java b/src/main/java/com/uci/dao/config/CassandraConfig.java index f56cd8e..55105fd 100644 --- a/src/main/java/com/uci/dao/config/CassandraConfig.java +++ b/src/main/java/com/uci/dao/config/CassandraConfig.java @@ -46,7 +46,7 @@ protected int getPort() { @Override public SchemaAction getSchemaAction() { - return SchemaAction.RECREATE; + return SchemaAction.NONE; } @Override @@ -57,7 +57,8 @@ public String[] getEntityBasePackages() { @Override protected List getKeyspaceCreations() { final CreateKeyspaceSpecification specification = - CreateKeyspaceSpecification.createKeyspace(keyspace) + CreateKeyspaceSpecification + .createKeyspace(keyspace) .ifNotExists() .with(KeyspaceOption.DURABLE_WRITES, true) .withSimpleReplication();