155c8e22151b1ebff195a5815c9b15cd7f6f281a
[sdc.git] /
1 /*
2  * Copyright © 2016-2017 European Support Limited
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 package org.openecomp.core.tools.store.zusammen.datatypes;
17
18 import com.datastax.driver.mapping.annotations.Column;
19 import com.datastax.driver.mapping.annotations.PartitionKey;
20 import com.datastax.driver.mapping.annotations.Table;
21 import lombok.AllArgsConstructor;
22 import lombok.Getter;
23 import lombok.NoArgsConstructor;
24 import lombok.Setter;
25
26 /**
27  * Created by ayalaben on 10/15/2017
28  */
29 @Getter
30 @Setter
31 @AllArgsConstructor
32 @NoArgsConstructor
33 @Table(keyspace = "dox", name = "healing")
34 public class HealingEntity {
35
36   @Column(name = "space")
37   @PartitionKey(0)
38   private String space;
39
40   @Column(name = "item_id")
41   @PartitionKey(1)
42   private String itemId;
43
44   @Column(name = "version_id")
45   @PartitionKey(2)
46   private String versionId;
47
48   @Column(name = "healing_needed")
49   private boolean healingFlag;
50
51   @Column(name = "old_version")
52   private String oldVersion;
53 }