summaryrefslogtreecommitdiffstats
path: root/catalog-dao/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-dao/src/main')
-rw-r--r--catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/DAOArtifactData.java25
1 files changed, 6 insertions, 19 deletions
diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/DAOArtifactData.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/DAOArtifactData.java
index 28a5d3569a..2b79c2d79f 100644
--- a/catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/DAOArtifactData.java
+++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/resources/data/DAOArtifactData.java
@@ -24,9 +24,14 @@ import com.datastax.driver.mapping.annotations.Column;
import com.datastax.driver.mapping.annotations.PartitionKey;
import com.datastax.driver.mapping.annotations.Table;
import com.datastax.driver.mapping.annotations.Transient;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
import java.nio.ByteBuffer;
+@Getter
+@NoArgsConstructor
@Table(keyspace = "sdcartifact", name = "resources")
public class DAOArtifactData {
public static final String RRESOURCE_ID_FIELD = "resourceId";
@@ -39,6 +44,7 @@ public class DAOArtifactData {
@PartitionKey
@Column(name = "id")
+ @Setter
private String id;
/*
@@ -48,11 +54,6 @@ public class DAOArtifactData {
@Column
private ByteBuffer data;
- // private byte[] data;
-
- public DAOArtifactData() {
-
- }
public DAOArtifactData(String id) {
@@ -85,24 +86,10 @@ public class DAOArtifactData {
}
}
- public ByteBuffer getData() {
- // return data;
- return data;
- }
-
public void setData(ByteBuffer data) {
if (data != null) {
// this.data = data.clone();
this.data = data.duplicate();
}
}
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
}