From e6e7e3f9a7db038741f765fbb01590063c997568 Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Mon, 15 Jan 2024 20:22:41 -0600 Subject: [PATCH] Add overloaded constructor to SyncProcessConfig (defaults doInserts & doUpdates to true) --- .../tablesync/AbstractTableSyncTransformStep.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/processes/implementations/tablesync/AbstractTableSyncTransformStep.java b/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/processes/implementations/tablesync/AbstractTableSyncTransformStep.java index 13fb8a7b..ed754f03 100644 --- a/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/processes/implementations/tablesync/AbstractTableSyncTransformStep.java +++ b/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/processes/implementations/tablesync/AbstractTableSyncTransformStep.java @@ -182,6 +182,14 @@ public abstract class AbstractTableSyncTransformStep extends AbstractTransformSt public record SyncProcessConfig(String sourceTable, String sourceTableKeyField, String destinationTable, String destinationTableForeignKey, boolean performInserts, boolean performUpdates) { + /******************************************************************************* + ** Overloaded constructor - defaults both performInserts & performUpdates to true. + *******************************************************************************/ + public SyncProcessConfig(String sourceTable, String sourceTableKeyField, String destinationTable, String destinationTableForeignKey) + { + this(sourceTable, sourceTableKeyField, destinationTable, destinationTableForeignKey, true, true); + } + /******************************************************************************* ** artificial method, here to make jacoco see that this class is indeed ** included in test coverage...