From 8dd6fd91397e341a0380b88b96d6679b46d5a777 Mon Sep 17 00:00:00 2001 From: Oleg Smelov Date: Thu, 6 Jun 2024 17:19:48 +0400 Subject: [PATCH] DefaultNullSavingStrategy --- .../cradle/cassandra/dao/testevents/TestEventOperator.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cradle-cassandra/src/main/java/com/exactpro/cradle/cassandra/dao/testevents/TestEventOperator.java b/cradle-cassandra/src/main/java/com/exactpro/cradle/cassandra/dao/testevents/TestEventOperator.java index 182a4d8b..9990b94c 100644 --- a/cradle-cassandra/src/main/java/com/exactpro/cradle/cassandra/dao/testevents/TestEventOperator.java +++ b/cradle-cassandra/src/main/java/com/exactpro/cradle/cassandra/dao/testevents/TestEventOperator.java @@ -19,10 +19,8 @@ import com.datastax.oss.driver.api.core.MappedAsyncPagingIterable; import com.datastax.oss.driver.api.core.cql.AsyncResultSet; import com.datastax.oss.driver.api.core.cql.BoundStatementBuilder; -import com.datastax.oss.driver.api.mapper.annotations.Dao; -import com.datastax.oss.driver.api.mapper.annotations.Delete; -import com.datastax.oss.driver.api.mapper.annotations.Query; -import com.datastax.oss.driver.api.mapper.annotations.QueryProvider; +import com.datastax.oss.driver.api.mapper.annotations.*; +import com.datastax.oss.driver.api.mapper.entity.saving.NullSavingStrategy; import com.exactpro.cradle.cassandra.dao.CommonQueryProvider; import com.exactpro.cradle.cassandra.retries.SelectQueryExecutor; @@ -34,6 +32,7 @@ import static com.exactpro.cradle.cassandra.dao.testevents.TestEventEntity.*; @Dao +@DefaultNullSavingStrategy(NullSavingStrategy.DO_NOT_SET) public interface TestEventOperator { @Query( "SELECT * FROM ${qualifiedTableId} " + "WHERE " +