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.policy.rest.jpa;
23 import java.io.Serializable;
25 import javax.persistence.*;
28 * Entity implementation class for Entity: EnforcingType
32 @Table(name="EnforcingType")
33 @NamedQuery(name="EnforcingType.findAll", query="SELECT e FROM EnforcingType e ")
34 public class EnforcingType implements Serializable {
37 private static final long serialVersionUID = 1L;
39 @GeneratedValue(strategy = GenerationType.AUTO)
42 @Column(name="enforcingType", nullable=false, unique=true)
44 private String enforcingType;
45 @Column(name="script", nullable=false, length=255)
46 private String script;
47 @Column(name="connectionQuery", nullable=false, length=255)
48 private String connectionQuery;
49 @Column(name="valueQuery", nullable=false, length=255)
50 private String valueQuery;
56 public void setId(int id) {
60 public String getEnforcingType() {
64 public void setEnforcingType(String enforcingType) {
65 this.enforcingType = enforcingType;
68 public String getScript() {
72 public void setScript(String script) {
76 public String getConnectionQuery() {
77 return connectionQuery;
80 public void setConnectionQuery(String connectionQuery) {
81 this.connectionQuery = connectionQuery;
84 public String getValueQuery() {
88 public void setValueQuery(String valueQuery) {
89 this.valueQuery = valueQuery;
92 public EnforcingType() {