2 * Copyright © 2016-2017 European Support Limited
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.openecomp.core.tools.store.zusammen.datatypes;
18 import com.datastax.driver.mapping.annotations.Column;
19 import com.datastax.driver.mapping.annotations.PartitionKey;
20 import com.datastax.driver.mapping.annotations.Table;
23 * Created by ayalaben on 10/15/2017
25 @Table(keyspace = "dox", name = "healing")
26 public class HealingEntity {
28 @Column(name = "space")
32 @Column(name = "item_id")
34 private String itemId;
36 @Column(name = "version_id")
38 private String versionId;
40 @Column(name = "healing_needed")
41 private boolean healingFlag;
43 @Column(name = "old_version")
44 private String oldVersion;
47 * Every entity class must have a default constructor according to
48 * <a href="http://docs.datastax.com/en/developer/java-driver/2.1/manual/object_mapper/creating/">
49 * Definition of mapped classes</a>.
51 public HealingEntity() {
52 // Don't delete! Default constructor is required by DataStax driver
55 public HealingEntity(String space, String itemId, String versionId, boolean healingFlag,
59 this.versionId = versionId;
60 this.healingFlag = healingFlag;
61 this.oldVersion = oldVersion;
64 public String getSpace() {
68 public void setSpace(String space) {
72 public String getItemId() {
76 public void setItemId(String itemId) {
80 public String getVersionId() {
84 public void setVersionId(String versionId) {
85 this.versionId = versionId;
88 public boolean getHealingFlag() {
92 public void setHealingFlag(boolean healingFlag) {
93 this.healingFlag = healingFlag;
96 public String getOldVersion() {
100 public void setOldVersion(String oldVersion) {
101 this.oldVersion = oldVersion;