5098628b0915d9123b10f4c0c1a2ba7645a98d78
[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-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 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     @Id
43     @GeneratedValue(strategy = GenerationType.AUTO)
44     @Column(name="id")
45     private int id;
46
47     @Column(name="onapName")
48     private String onapName;
49
50     @Column(name="guard")
51     private String guard ;
52
53     @Column(name="priority")
54     private String priority;
55
56     @Column(name="riskType")
57     private String riskType ;
58
59     @Column(name="riskLevel")
60
61     private String riskLevel;
62
63     @Column(name="modelName", nullable=false)
64     @OrderBy("asc")
65     private String modelName;
66
67     @PrePersist
68     public void prePersist() {
69
70     }
71     @PreUpdate
72     public void preUpdate() {
73     }
74
75
76     public int getId() {
77         return this.id;
78     }
79
80     public void setId(int id) {
81         this.id = id;
82     }
83
84     public String getModelName() {
85         return modelName;
86     }
87     public void setModelName(String modelName) {
88         this.modelName = modelName;
89     }
90     public String getOnapName() {
91         return onapName;
92     }
93     public void setOnapName(String onapName) {
94         this.onapName = onapName;
95     }
96     public String getGuard() {
97         return guard;
98     }
99     public void setGuard(String guard) {
100         this.guard = guard;
101     }
102     public String getPriority() {
103         return priority;
104     }
105     public void setPriority(String priority) {
106         this.priority = priority;
107     }
108     public String getRiskType() {
109         return riskType;
110     }
111     public void setRiskType(String riskType) {
112         this.riskType = riskType;
113     }
114     public String getRiskLevel() {
115         return riskLevel;
116     }
117     public void setRiskLevel(String riskLevel) {
118         this.riskLevel = riskLevel;
119     }
120
121 }