From 47dcb339f0558c3f84b4c04edf2e9655e05c7c0d Mon Sep 17 00:00:00 2001 From: vempo Date: Fri, 29 Dec 2017 17:05:21 +0200 Subject: Default ctors in vendor-software-product module Change-Id: I7e852d649c56d6c25f68d9e20c1682f4c3deca0a Issue-ID: SDC-343 Signed-off-by: vempo --- .../dao/type/ComponentDependencyModelEntity.java | 7 ++++++- .../sdc/vendorsoftwareproduct/dao/type/ComponentEntity.java | 7 ++++++- .../dao/type/ComponentMonitoringUploadEntity.java | 7 ++++++- .../sdc/vendorsoftwareproduct/dao/type/ComputeEntity.java | 12 +++++++++--- .../dao/type/DeploymentFlavorEntity.java | 10 +++++++--- .../sdc/vendorsoftwareproduct/dao/type/ImageEntity.java | 7 ++++++- .../sdc/vendorsoftwareproduct/dao/type/NetworkEntity.java | 7 ++++++- .../sdc/vendorsoftwareproduct/dao/type/NicEntity.java | 7 ++++++- .../dao/type/OrchestrationTemplateCandidateDataEntity.java | 6 ++++++ .../sdc/vendorsoftwareproduct/dao/type/PackageInfo.java | 6 ++++++ .../sdc/vendorsoftwareproduct/dao/type/ProcessEntity.java | 7 ++++++- 11 files changed, 70 insertions(+), 13 deletions(-) (limited to 'openecomp-be/lib/openecomp-sdc-vendor-software-product-lib') diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ComponentDependencyModelEntity.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ComponentDependencyModelEntity.java index 28a84e0a4f..8f27e13435 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ComponentDependencyModelEntity.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ComponentDependencyModelEntity.java @@ -28,8 +28,13 @@ public class ComponentDependencyModelEntity implements VersionableEntity { @Column(name = "relation") private String relation; + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ public ComponentDependencyModelEntity() { - + // Don't delete! Default constructor is required by DataStax driver } /** diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ComponentEntity.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ComponentEntity.java index 3e4f44328a..32dd4ef9bd 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ComponentEntity.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ComponentEntity.java @@ -56,8 +56,13 @@ public class ComponentEntity implements CompositionEntity { @Transient private List nics = new ArrayList<>(); + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ public ComponentEntity() { - + // Don't delete! Default constructor is required by DataStax driver } /** diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ComponentMonitoringUploadEntity.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ComponentMonitoringUploadEntity.java index b326f444ce..de6c525701 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ComponentMonitoringUploadEntity.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ComponentMonitoringUploadEntity.java @@ -53,8 +53,13 @@ public class ComponentMonitoringUploadEntity implements VersionableEntity { private String artifactName; private ByteBuffer artifact; + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ public ComponentMonitoringUploadEntity() { - + // Don't delete! Default constructor is required by DataStax driver } /** diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ComputeEntity.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ComputeEntity.java index e16aad22ed..cf65f3e887 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ComputeEntity.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ComputeEntity.java @@ -32,6 +32,15 @@ public class ComputeEntity implements CompositionEntity { @Column(name = "questionnaire_data") private String questionnaireData; + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ + public ComputeEntity() { + // Don't delete! Default constructor is required by DataStax driver + } + public ComputeEntity(String vspId, Version version, String componentId, String id) { this.vspId = vspId; this.version = version; @@ -39,9 +48,6 @@ public class ComputeEntity implements CompositionEntity { this.id = id; } - public ComputeEntity() { - } - @Override public String getEntityType() { return ENTITY_TYPE; diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/DeploymentFlavorEntity.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/DeploymentFlavorEntity.java index 57161fbe2e..7667c177ee 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/DeploymentFlavorEntity.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/DeploymentFlavorEntity.java @@ -29,9 +29,13 @@ public class DeploymentFlavorEntity implements CompositionEntity{ @Column(name = "questionnaire_data") private String questionnaireData; - - public DeploymentFlavorEntity(){ - + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ + public DeploymentFlavorEntity() { + // Don't delete! Default constructor is required by DataStax driver } /** diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ImageEntity.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ImageEntity.java index 7d22cdd13f..2e8630f879 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ImageEntity.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ImageEntity.java @@ -33,8 +33,13 @@ public class ImageEntity implements CompositionEntity { @Column(name = "questionnaire_data") private String questionnaireData; - + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ public ImageEntity() { + // Don't delete! Default constructor is required by DataStax driver } /** diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/NetworkEntity.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/NetworkEntity.java index 4b848a06b3..b43a68abe1 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/NetworkEntity.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/NetworkEntity.java @@ -50,8 +50,13 @@ public class NetworkEntity implements CompositionEntity { @Column(name = "questionnaire_data") private String questionnaireData; + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ public NetworkEntity() { - + // Don't delete! Default constructor is required by DataStax driver } /** diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/NicEntity.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/NicEntity.java index a954ada570..5452c03d22 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/NicEntity.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/NicEntity.java @@ -53,8 +53,13 @@ public class NicEntity implements CompositionEntity { @Column(name = "questionnaire_data") private String questionnaireData; + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ public NicEntity() { - + // Don't delete! Default constructor is required by DataStax driver } /** diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/OrchestrationTemplateCandidateDataEntity.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/OrchestrationTemplateCandidateDataEntity.java index c451a72056..e342e0b3bf 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/OrchestrationTemplateCandidateDataEntity.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/OrchestrationTemplateCandidateDataEntity.java @@ -48,7 +48,13 @@ public class OrchestrationTemplateCandidateDataEntity implements VersionableEnti @Column(name = "files_data_structure") private String filesDataStructure; + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ public OrchestrationTemplateCandidateDataEntity() { + // Don't delete! Default constructor is required by DataStax driver } /** diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/PackageInfo.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/PackageInfo.java index 3403f28ab2..abd3e2decf 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/PackageInfo.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/PackageInfo.java @@ -68,7 +68,13 @@ public class PackageInfo { @Column(name = "translate_content") private ByteBuffer translatedFile; + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ public PackageInfo() { + // Don't delete! Default constructor is required by DataStax driver } public PackageInfo(String packageId, Version version) { diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ProcessEntity.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ProcessEntity.java index eacc3c4bae..37077a7169 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ProcessEntity.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-api/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/dao/type/ProcessEntity.java @@ -55,8 +55,13 @@ public class ProcessEntity implements VersionableEntity { private String artifactName; private ByteBuffer artifact; + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ public ProcessEntity() { - + // Don't delete! Default constructor is required by DataStax driver } /** -- cgit 1.2.3-korg