From 948a102be66b9a65652ba9c44249a726b6b00f7b Mon Sep 17 00:00:00 2001 From: vempo Date: Fri, 29 Dec 2017 15:51:46 +0200 Subject: Default constructors in versioning-api module Change-Id: If43c648f094a7717871bbe5322e61254e2ce23c2 Issue-ID: SDC-343 Signed-off-by: vempo --- .../openecomp/sdc/versioning/dao/types/VersionHistoryEntity.java | 6 ++++++ .../sdc/versioning/dao/types/VersionInfoDeletedEntity.java | 6 ++++++ .../org/openecomp/sdc/versioning/dao/types/VersionInfoEntity.java | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/dao/types/VersionHistoryEntity.java b/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/dao/types/VersionHistoryEntity.java index e97e177f52..9d1093babc 100644 --- a/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/dao/types/VersionHistoryEntity.java +++ b/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/dao/types/VersionHistoryEntity.java @@ -41,7 +41,13 @@ public class VersionHistoryEntity { private String description; private VersionType type; + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ public VersionHistoryEntity() { + // Don't delete! Default constructor is required by DataStax driver } public VersionHistoryEntity(VersionableEntityId entityId) { diff --git a/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/dao/types/VersionInfoDeletedEntity.java b/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/dao/types/VersionInfoDeletedEntity.java index 9a60aa3b4a..320c8838f0 100644 --- a/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/dao/types/VersionInfoDeletedEntity.java +++ b/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/dao/types/VersionInfoDeletedEntity.java @@ -60,7 +60,13 @@ public class VersionInfoDeletedEntity { @Frozen private Version latestFinalVersion; + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ public VersionInfoDeletedEntity() { + // Don't delete! Default constructor is required by DataStax driver } public VersionInfoDeletedEntity(String entityType, String entityId) { diff --git a/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/dao/types/VersionInfoEntity.java b/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/dao/types/VersionInfoEntity.java index 35ab4056f9..9654c5089e 100644 --- a/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/dao/types/VersionInfoEntity.java +++ b/openecomp-be/lib/openecomp-sdc-versioning-lib/openecomp-sdc-versioning-api/src/main/java/org/openecomp/sdc/versioning/dao/types/VersionInfoEntity.java @@ -60,7 +60,13 @@ public class VersionInfoEntity { @Frozen private Version latestFinalVersion; + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ public VersionInfoEntity() { + // Don't delete! Default constructor is required by DataStax driver } public VersionInfoEntity(String entityType, String entityId) { -- cgit 1.2.3-korg