[POLICY-122] Policy GUI Fixes
[policy/engine.git] / ECOMP-REST / src / main / java / org / openecomp / policy / rest / jpa / EnforcingType.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ECOMP-REST
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
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.openecomp.policy.rest.jpa;
22
23 import java.io.Serializable;
24
25 import javax.persistence.*;
26
27 /**
28  * Entity implementation class for Entity: EnforcingType
29  *
30  */
31 @Entity
32 @Table(name="EnforcingType")
33 @NamedQuery(name="EnforcingType.findAll", query="SELECT e FROM EnforcingType e ")
34 public class EnforcingType implements Serializable {
35
36         
37         private static final long serialVersionUID = 1L;
38         @Id
39         @GeneratedValue(strategy = GenerationType.AUTO)
40         @Column(name="id")
41         private int id;
42         @Column(name="enforcingType", nullable=false, unique=true)
43         @OrderBy("asc")
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;
51                 
52         public int getId() {
53                 return id;
54         }
55
56         public void setId(int id) {
57                 this.id = id;
58         }
59
60         public String getEnforcingType() {
61                 return enforcingType;
62         }
63
64         public void setEnforcingType(String enforcingType) {
65                 this.enforcingType = enforcingType;
66         }
67
68         public String getScript() {
69                 return script;
70         }
71
72         public void setScript(String script) {
73                 this.script = script;
74         }
75
76         public String getConnectionQuery() {
77                 return connectionQuery;
78         }
79
80         public void setConnectionQuery(String connectionQuery) {
81                 this.connectionQuery = connectionQuery;
82         }
83
84         public String getValueQuery() {
85                 return valueQuery;
86         }
87
88         public void setValueQuery(String valueQuery) {
89                 this.valueQuery = valueQuery;
90         }
91
92         public EnforcingType() {
93                 super();
94         }
95    
96 }