2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.versioning.dao.types;
23 import com.datastax.driver.mapping.annotations.Column;
24 import com.datastax.driver.mapping.annotations.Frozen;
25 import com.datastax.driver.mapping.annotations.PartitionKey;
26 import com.datastax.driver.mapping.annotations.Table;
28 @Table(keyspace = "dox", name = "version_history")
29 public class VersionHistoryEntity {
32 @Column(name = "entity_id")
34 private VersionableEntityId entityId;
36 @Column(name = "active_version")
38 private Version version;
41 private String description;
42 private VersionType type;
44 public VersionHistoryEntity() {
47 public VersionHistoryEntity(VersionableEntityId entityId) {
48 this.entityId = entityId;
51 public VersionableEntityId getEntityId() {
55 public void setEntityId(VersionableEntityId entityId) {
56 this.entityId = entityId;
59 public Version getVersion() {
63 public void setVersion(Version version) {
64 this.version = version;
67 public String getUser() {
71 public void setUser(String user) {
75 public String getDescription() {
79 public void setDescription(String description) {
80 this.description = description;
83 public VersionType getType() {
87 public void setType(VersionType type) {