From e8412188d7c00a8ae6775dfe6f3978635545907e Mon Sep 17 00:00:00 2001 From: vempo Date: Fri, 29 Dec 2017 16:28:00 +0200 Subject: Default constructors in model-api module Change-Id: I9db997ab2ffc21aa6d6a31e9248aba65672da0ad Issue-ID: SDC-343 Signed-off-by: vempo --- .../core/model/types/EnrichedServiceArtifactEntity.java | 9 +++++++++ .../core/model/types/EnrichedServiceTemplateEntity.java | 9 +++++++++ .../org/openecomp/core/model/types/ServiceArtifactEntity.java | 9 +++++++++ .../org/openecomp/core/model/types/ServiceTemplateEntity.java | 9 +++++++++ 4 files changed, 36 insertions(+) (limited to 'openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api') diff --git a/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/EnrichedServiceArtifactEntity.java b/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/EnrichedServiceArtifactEntity.java index 8736f369c7..379b110ff2 100644 --- a/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/EnrichedServiceArtifactEntity.java +++ b/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/EnrichedServiceArtifactEntity.java @@ -56,6 +56,15 @@ public class EnrichedServiceArtifactEntity implements ServiceElementEntity { @Column(name = "content_data") public ByteBuffer contentData; + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ + public EnrichedServiceArtifactEntity() { + // Don't delete! Default constructor is required by DataStax driver + } + /** * Instantiates a new Enriched service artifact entity. * diff --git a/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/EnrichedServiceTemplateEntity.java b/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/EnrichedServiceTemplateEntity.java index f60c8922cd..b6b627872b 100644 --- a/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/EnrichedServiceTemplateEntity.java +++ b/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/EnrichedServiceTemplateEntity.java @@ -60,6 +60,15 @@ public class EnrichedServiceTemplateEntity implements ServiceElementEntity { @Column(name = "base_name") private String baseName; + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ + public EnrichedServiceTemplateEntity() { + // Don't delete! Default constructor is required by DataStax driver + } + /** * Instantiates a new Enriched service template entity. * diff --git a/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/ServiceArtifactEntity.java b/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/ServiceArtifactEntity.java index ddff54b436..579bdf29e0 100644 --- a/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/ServiceArtifactEntity.java +++ b/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/ServiceArtifactEntity.java @@ -56,6 +56,15 @@ public class ServiceArtifactEntity implements ServiceElementEntity { @Column(name = "content_data") public ByteBuffer contentData; + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ + public ServiceArtifactEntity() { + // Don't delete! Default constructor is required by DataStax driver + } + /** * Instantiates a new Service artifact entity. * diff --git a/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/ServiceTemplateEntity.java b/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/ServiceTemplateEntity.java index 71d6973e50..17f17dc83f 100644 --- a/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/ServiceTemplateEntity.java +++ b/openecomp-be/lib/openecomp-sdc-model-lib/openecomp-sdc-model-api/src/main/java/org/openecomp/core/model/types/ServiceTemplateEntity.java @@ -60,6 +60,15 @@ public class ServiceTemplateEntity implements ServiceElementEntity { @Column(name = "base_name") private String baseName; + /** + * Every entity class must have a default constructor according to + * + * Definition of mapped classes. + */ + public ServiceTemplateEntity() { + // Don't delete! Default constructor is required by DataStax driver + } + /** * Instantiates a new Service template entity. * -- cgit 1.2.3-korg