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.core.utilities.applicationconfig.dao.type;
24 import com.datastax.driver.mapping.annotations.ClusteringColumn;
25 import com.datastax.driver.mapping.annotations.PartitionKey;
26 import com.datastax.driver.mapping.annotations.Table;
28 @Table(keyspace = "dox", name = "application_config")
29 public class ApplicationConfigEntity {
32 private String namespace;
38 * Every entity class must have a default constructor according to
39 * <a href="http://docs.datastax.com/en/developer/java-driver/2.1/manual/object_mapper/creating/">
40 * Definition of mapped classes</a>.
42 public ApplicationConfigEntity() {
43 // Don't delete! Default constructor is required by DataStax driver
47 * Instantiates a new Application config entity.
49 * @param namespace the namespace
51 * @param value the value
53 public ApplicationConfigEntity(String namespace, String key, String value) {
54 this.namespace = namespace;
59 public String getNamespace() {
63 public void setNamespace(String namespace) {
64 this.namespace = namespace;
67 public String getKey() {
71 public void setKey(String key) {
75 public String getValue() {
79 public void setValue(String value) {