2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 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.onap.policy.rest.jpa;
23 import javax.persistence.Column;
24 import javax.persistence.Entity;
25 import javax.persistence.GeneratedValue;
26 import javax.persistence.GenerationType;
27 import javax.persistence.Id;
28 import javax.persistence.NamedQuery;
29 import javax.persistence.Table;
32 @Table(name = "DictionaryData")
33 @NamedQuery(name = "DictionaryData.findAll", query = "SELECT v FROM DictionaryData v ")
34 public class DictionaryData {
35 private static final long serialVersionUID = 1L;
38 @GeneratedValue(strategy = GenerationType.AUTO)
42 @Column(name = "dictionaryName", nullable = false, unique = true)
43 private String dictionaryName;
45 @Column(name = "dictionaryUrl", nullable = false, length = 2048)
46 private String dictionaryUrl;
48 @Column(name = "dictionaryDataByName", nullable = false, length = 1024)
49 private String dictionaryDataByName;
51 public String getDictionaryUrl() {
55 public void setDictionaryUrl(String dictionaryUrl) {
56 this.dictionaryUrl = dictionaryUrl;
59 public String getDictionaryDataByName() {
60 return dictionaryDataByName;
63 public void setDictionaryDataByName(String dictionaryDataByName) {
64 this.dictionaryDataByName = dictionaryDataByName;
67 public String getDictionaryName() {
68 return dictionaryName;
71 public void setDictionaryName(String dictionaryName) {
72 this.dictionaryName = dictionaryName;
79 public void setId(int id) {