905555120e67eed122a52ddff265d2e3ab8d96a0
[policy/engine.git] / ONAP-REST / src / main / java / org / onap / policy / rest / jpa / MicroserviceHeaderdeFaults.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP-REST
4  * ================================================================================
5  * Copyright (C) 2018 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 java.io.Serializable;
24
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.PrePersist;
33 import javax.persistence.PreUpdate;
34 import javax.persistence.Table;
35
36 @Entity
37 @Table(name="MicroserviceHeaderdeFaults")
38 @NamedQuery(name="MicroserviceHeaderdeFaults.findAll", query="SELECT e FROM MicroserviceHeaderdeFaults e ")
39 public class MicroserviceHeaderdeFaults implements Serializable {
40     private static final long serialVersionUID = 1L;
41
42     private static String domain;
43
44     @Id
45     @GeneratedValue(strategy = GenerationType.AUTO)
46     @Column(name="id")
47     private int id;
48
49     @Column(name="onapName")
50     private String onapName;
51
52     @Column(name="guard")
53     private String guard ;
54
55     @Column(name="priority")
56     private String priority;
57
58     @Column(name="riskType")
59     private String riskType ;
60
61     @Column(name="riskLevel")
62
63     private String riskLevel;
64
65     @Column(name="modelName", nullable=false)
66     @OrderBy("asc")
67     private String modelName;
68
69     @PrePersist
70     public void prePersist() {
71
72     }
73     @PreUpdate
74     public void preUpdate() {
75     }
76
77
78     public int getId() {
79         return this.id;
80     }
81
82     public void setId(int id) {
83         this.id = id;
84     }
85
86     public String getModelName() {
87         return modelName;
88     }
89     public void setModelName(String modelName) {
90         this.modelName = modelName;
91     }
92     public String getOnapName() {
93         return onapName;
94     }
95     public void setOnapName(String onapName) {
96         this.onapName = onapName;
97     }
98     public String getGuard() {
99         return guard;
100     }
101     public void setGuard(String guard) {
102         this.guard = guard;
103     }
104     public String getPriority() {
105         return priority;
106     }
107     public void setPriority(String priority) {
108         this.priority = priority;
109     }
110     public String getRiskType() {
111         return riskType;
112     }
113     public void setRiskType(String riskType) {
114         this.riskType = riskType;
115     }
116     public String getRiskLevel() {
117         return riskLevel;
118     }
119     public void setRiskLevel(String riskLevel) {
120         this.riskLevel = riskLevel;
121     }
122
123 }