c7280c8a9de2fa564238a0d40fa95f01bdeb20a3
[sdc.git] /
1 package org.openecomp.core.tools.store.zusammen.datatypes;
2
3 import com.datastax.driver.mapping.annotations.*;
4
5 import java.util.Date;
6
7 /**
8  * CREATE TABLE zusammen_dox.version (
9  * space text,
10  * item_id text,
11  * version_id text,
12  * base_version_id text,
13  * creation_time timestamp,
14  * info text,
15  * modification_time timestamp,
16  * relations text,
17  * PRIMARY KEY ((space, item_id), version_id)
18  * ) WITH CLUSTERING ORDER BY (version_id ASC)
19  * AND bloom_filter_fp_chance = 0.01
20  * AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
21  * AND comment = ''
22  * AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy'}
23  * AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
24  * AND dclocal_read_repair_chance = 0.1
25  * AND default_time_to_live = 0
26  * AND gc_grace_seconds = 864000
27  * AND max_index_interval = 2048
28  * AND memtable_flush_period_in_ms = 0
29  * AND min_index_interval = 128
30  * AND read_repair_chance = 0.0
31  * AND speculative_retry = '99.0PERCENTILE';
32  */
33 @Table(
34         keyspace = "zusammen_dox",
35         name = "version"
36 )
37 public class VersionEntity {
38     @Column(name = "space")
39     @PartitionKey(0)
40     private String space;
41
42     @Column(name = "item_id")
43     @PartitionKey(1)
44     private String itemId;
45
46     @Column(name = "version_id")
47     @PartitionKey(2)
48     private String versionId;
49
50     @Column(name = "base_version_id")
51     private String baseVersionId;
52
53     @Column(name = "creation_time")
54     private Date creationTime;
55
56     @Column(name = "info")
57     private String info;
58
59     @Column(name = "modification_time")
60     private Date modificationTime;
61
62     @Column(name = "relations")
63     private String relations;
64
65     public String getSpace() {
66         return space;
67     }
68
69     public void setSpace(String space) {
70         this.space = space;
71     }
72
73     public String getItemId() {
74         return itemId;
75     }
76
77     public void setItemId(String itemId) {
78         this.itemId = itemId;
79     }
80
81     public String getVersionId() {
82         return versionId;
83     }
84
85     public void setVersionId(String versionId) {
86         this.versionId = versionId;
87     }
88
89     public String getBaseVersionId() {
90         return baseVersionId;
91     }
92
93     public void setBaseVersionId(String baseVersionId) {
94         this.baseVersionId = baseVersionId;
95     }
96
97     public Date getCreationTime() {
98         return creationTime;
99     }
100
101     public void setCreationTime(Date creationTime) {
102         this.creationTime = creationTime;
103     }
104
105     public String getInfo() {
106         return info;
107     }
108
109     public void setInfo(String info) {
110         this.info = info;
111     }
112
113     public Date getModificationTime() {
114         return modificationTime;
115     }
116
117     public void setModificationTime(Date modificationTime) {
118         this.modificationTime = modificationTime;
119     }
120
121     public String getRelations() {
122         return relations;
123     }
124
125     public void setRelations(String relations) {
126         this.relations = relations;
127     }
128 }