fd1a6b73b0dce82f51e876bd8e8b461e4bc11824
[policy/engine.git] / ONAP-REST / src / main / java / org / onap / policy / rest / jpa / RainyDayTreatments.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP-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.onap.policy.rest.jpa;
22
23 import javax.persistence.Column;
24 import javax.persistence.Entity;
25 import javax.persistence.GeneratedValue;
26 import javax.persistence.GenerationType;
27 import javax.persistence.Id;
28
29 import javax.persistence.NamedQuery;
30 import javax.persistence.OrderBy;
31 import javax.persistence.Table;
32
33 import java.io.Serializable;
34
35 /**
36  * The persistent class for the RainyDayTreatment database table.
37  * 
38  */
39 @Entity
40 @Table(name="RainyDayTreatments")
41 @NamedQuery(name="RainyDayTreatments.findAll", query="SELECT e FROM RainyDayTreatments e")
42 public class RainyDayTreatments implements Serializable {
43     /**
44      *
45      */
46     private static final long serialVersionUID = -2491410352490381323L;
47
48     @Id
49     @GeneratedValue(strategy = GenerationType.AUTO)
50     @Column(name="id")
51     private int id;
52
53     @Column(name="bbid", nullable=false, length=255)
54     @OrderBy("asc")
55     private String bbid;
56
57     @Column(name="workstep", nullable=true, length=255)
58     private String workstep;
59
60     @Column(name="treatments", nullable=true, length=1028)
61     private String treatments;
62
63     public RainyDayTreatments() {
64         // Empty constructor
65     }
66
67     public int getId() {
68         return id;
69     }
70
71     public void setId(int id) {
72         this.id = id;
73     }
74
75     /**
76      * @return the bbid
77      */
78     public String getBbid() {
79         return bbid;
80     }
81
82     /**
83      * @param bbid the bbid to set
84      */
85     public void setBbid(String bbid) {
86         this.bbid = bbid;
87     }
88
89     /**
90      * @return the workstep
91      */
92     public String getWorkstep() {
93         return workstep;
94     }
95
96     /**
97      * @param workstep the workstep to set
98      */
99     public void setWorkstep(String workstep) {
100         this.workstep = workstep;
101     }
102
103     /**
104      * @return the treatments
105      */
106     public String getTreatments() {
107         return treatments;
108     }
109
110     /**
111      * @param treatments the treatments to set
112      */
113     public void setTreatments(String treatments) {
114         this.treatments = treatments;
115     }
116
117
118 }