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.onap.policy.rest.jpa;
23 import java.io.Serializable;
25 import javax.persistence.Column;
26 import javax.persistence.Entity;
27 import javax.persistence.GeneratedValue;
28 import javax.persistence.GenerationType;
29 import javax.persistence.Id;
30 import javax.persistence.NamedQuery;
31 import javax.persistence.OrderBy;
32 import javax.persistence.Table;
36 @Table(name="parentdictionaryitems")
37 @NamedQuery(name="FirewallDictionaryList.findAll", query="SELECT e FROM FirewallDictionaryList e")
38 public class FirewallDictionaryList implements Serializable {
39 private static final long serialVersionUID = 1L;
41 private static String domain;
44 @GeneratedValue(strategy = GenerationType.AUTO)
48 @Column(name="parentItemName", nullable=false)
50 private String parentItemName;
52 @Column(name="description")
53 private String description;
55 @Column(name="addressList")
56 private String addressList;
58 @Column(name="serviceList")
59 private String serviceList;
65 public void setId(int id) {
69 public String getParentItemName() {
70 return parentItemName;
73 public String getDescription() {
77 public String getAddressList() {
81 public String getServiceList() {
85 public void setParentItemName(String parentItemName) {
86 this.parentItemName = parentItemName;
89 public void setDescription(String description) {
90 this.description = description;
93 public void setAddressList(String addressList) {
94 this.addressList = addressList;
97 public void setServiceList(String serviceList) {
98 this.serviceList = serviceList;
101 public FirewallDictionaryList() {
102 //An empty constructor
105 public FirewallDictionaryList(String string, String userid) {
108 public FirewallDictionaryList(String domain) {
109 this.parentItemName = domain;