@Column(name = "artifact")
private ByteBuffer artifact;
+ /**
+ * Every entity class must have a default constructor according to
+ * <a href="http://docs.datastax.com/en/developer/java-driver/2.1/manual/object_mapper/creating/">
+ * Definition of mapped classes</a>.
+ */
public ActionArtifactEntity() {
- //Default constructor implementation
+ // Don't delete! Default constructor is required by DataStax driver
}
public ActionArtifactEntity(String artifactUuId, int effectiveVersion) {
@Column(name = "data")
private String data;
+ /**
+ * Every entity class must have a default constructor according to
+ * <a href="http://docs.datastax.com/en/developer/java-driver/2.1/manual/object_mapper/creating/">
+ * Definition of mapped classes</a>.
+ */
public ActionEntity() {
+ // Don't delete! Default constructor is required by DataStax driver
}
public ActionEntity(String actionInvariantUuId, Version version) {
*/
public void setVendorList(List<String> vendorList) {
if (vendorList != null && !vendorList.isEmpty()) {
- List<String> lowerCaseVendorList = new ArrayList<String>();
+ List<String> lowerCaseVendorList = new ArrayList<>();
lowerCaseVendorList
.addAll(vendorList.stream().map(String::toLowerCase).collect(Collectors.toList()));
this.vendorList = lowerCaseVendorList;
*/
public void setCategoryList(List<String> categoryList) {
if (categoryList != null && !categoryList.isEmpty()) {
- List<String> lowerCaseCategoryList = new ArrayList<String>();
+ List<String> lowerCaseCategoryList = new ArrayList<>();
lowerCaseCategoryList
.addAll(categoryList.stream().map(String::toLowerCase).collect(Collectors.toList()));
this.categoryList = lowerCaseCategoryList;
* @return the action
*/
public Action toDto() {
- //Action destination = new Action();
-
Action destination = JsonUtil.json2Object(this.getData(), Action.class);
destination.setData(this.getData());
destination.setTimestamp(this.getTimestamp());
@Column(name = "name")
private String name;
+ /**
+ * Every entity class must have a default constructor according to
+ * <a href="http://docs.datastax.com/en/developer/java-driver/2.1/manual/object_mapper/creating/">
+ * Definition of mapped classes</a>.
+ */
public OpenEcompComponentEntity() {
+ // Don't delete! Default constructor is required by DataStax driver
}
public OpenEcompComponentEntity(String id, String name) {