85a5091e82c7559027e8b8daac0dbec0279563b3
[policy/engine.git] / ONAP-REST / src / main / java / org / onap / policy / rest / jpa / DictionaryData.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP-REST
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  */
20
21 package org.onap.policy.rest.jpa;
22
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;
30
31 @Entity
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;
36
37     @Id
38     @GeneratedValue(strategy = GenerationType.AUTO)
39     @Column(name = "id")
40     private int id;
41
42     @Column(name = "dictionaryName", nullable = false, unique = true)
43     private String dictionaryName;
44
45     @Column(name = "dictionaryUrl", nullable = false, length = 2048)
46     private String dictionaryUrl;
47
48     @Column(name = "dictionaryDataByName", nullable = false, length = 1024)
49     private String dictionaryDataByName;
50
51     public String getDictionaryUrl() {
52         return dictionaryUrl;
53     }
54
55     public void setDictionaryUrl(String dictionaryUrl) {
56         this.dictionaryUrl = dictionaryUrl;
57     }
58
59     public String getDictionaryDataByName() {
60         return dictionaryDataByName;
61     }
62
63     public void setDictionaryDataByName(String dictionaryDataByName) {
64         this.dictionaryDataByName = dictionaryDataByName;
65     }
66
67     public String getDictionaryName() {
68         return dictionaryName;
69     }
70
71     public void setDictionaryName(String dictionaryName) {
72         this.dictionaryName = dictionaryName;
73     }
74
75     public int getId() {
76         return this.id;
77     }
78
79     public void setId(int id) {
80         this.id = id;
81     }
82
83 }