2 * Copyright © 2016-2018 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.
17 package org.openecomp.core.tools.store.zusammen.datatypes;
19 import com.datastax.driver.mapping.annotations.ClusteringColumn;
20 import com.datastax.driver.mapping.annotations.Column;
21 import com.datastax.driver.mapping.annotations.PartitionKey;
22 import com.datastax.driver.mapping.annotations.Table;
27 * CREATE TABLE zusammen_dox.version_elements (
32 * conflict_element_ids set<text>,
33 * dirty_element_ids set<text>,
34 * element_ids map<text, text>,
36 * publish_time timestamp,
37 * stage_element_ids set<text>,
39 * PRIMARY KEY ((space, item_id, version_id), revision_id))
40 * WITH CLUSTERING ORDER BY (revision_id ASC)
44 keyspace = "zusammen_dox",
45 name = "version_elements"
47 public class VersionElementsEntity {
48 @Column( name = "space" )
52 @Column( name = "item_id" )
54 private String itemId;
56 @Column( name = "version_id" )
58 private String versionId;
60 @Column(name = "revision_id")
62 private String revisionId;
64 @Column(name = "element_ids")
65 private Map<String,String> elementIds;
67 public void setSpace(String space) {
70 public String getSpace() {
74 public void setItemId(String itemId) {
77 public String getItemId() {
81 public void setVersionId(String versionId) {
82 this.versionId = versionId;
84 public String getVersionId() {
88 public void setRevisionId(String revisionId) {
89 this.revisionId = revisionId;
91 public String getRevisionId() {
95 public void setElementIds(Map<String,String> elementIds) {
96 this.elementIds = elementIds;
98 public Map<String,String> getElementIds() {