diff --git a/Core/src/main/java/com/scaleoutsoftware/digitaltwin/core/ModelSchema.java b/Core/src/main/java/com/scaleoutsoftware/digitaltwin/core/ModelSchema.java index 18daad3..a606ab6 100644 --- a/Core/src/main/java/com/scaleoutsoftware/digitaltwin/core/ModelSchema.java +++ b/Core/src/main/java/com/scaleoutsoftware/digitaltwin/core/ModelSchema.java @@ -187,6 +187,7 @@ public ModelSchema( break; case SQLite: case SQLServer: + case DynamoDb: enablePersistence = true; azureDigitalTwinModelName = null; break; @@ -240,6 +241,7 @@ public ModelSchema( break; case SQLite: case SQLServer: + case DynamoDb: enablePersistence = true; azureDigitalTwinModelName = null; break; diff --git a/Core/src/main/java/com/scaleoutsoftware/digitaltwin/core/PersistenceProviderType.java b/Core/src/main/java/com/scaleoutsoftware/digitaltwin/core/PersistenceProviderType.java index 0ac9523..25912b1 100644 --- a/Core/src/main/java/com/scaleoutsoftware/digitaltwin/core/PersistenceProviderType.java +++ b/Core/src/main/java/com/scaleoutsoftware/digitaltwin/core/PersistenceProviderType.java @@ -26,6 +26,10 @@ public enum PersistenceProviderType implements Serializable { * Enum for the Azure Digital Twin service. */ AzureDigitalTwinsService("AzureDigitalTwinsService", 1), + /** + * Enum for DynamoDB + */ + DynamoDb("DynamoDB", 5), /** * Enum for SQLite */ @@ -62,6 +66,8 @@ public static PersistenceProviderType fromString(String name) { return SQLite; case "SQLServer": return SQLServer; + case "DynamoDB": + return DynamoDb; default: return null; } @@ -84,6 +90,8 @@ public static PersistenceProviderType fromOrdinal(int ordinal) { return SQLServer; case 4: return SQLite; + case 5: + return DynamoDb; default: return null; }