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.onap.policy.rest.jpa;
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;
29 import javax.persistence.NamedQuery;
30 import javax.persistence.OrderBy;
31 import javax.persistence.Table;
33 import java.io.Serializable;
36 * The persistent class for the RainyDayTreatment database table.
40 @Table(name="RainyDayTreatments")
41 @NamedQuery(name="RainyDayTreatments.findAll", query="SELECT e FROM RainyDayTreatments e")
42 public class RainyDayTreatments implements Serializable {
46 private static final long serialVersionUID = -2491410352490381323L;
49 @GeneratedValue(strategy = GenerationType.AUTO)
53 @Column(name="bbid", nullable=false, length=255)
57 @Column(name="workstep", nullable=true, length=255)
58 private String workstep;
60 @Column(name="treatments", nullable=true, length=1028)
61 private String treatments;
63 public RainyDayTreatments() {
71 public void setId(int id) {
78 public String getBbid() {
83 * @param bbid the bbid to set
85 public void setBbid(String bbid) {
90 * @return the workstep
92 public String getWorkstep() {
97 * @param workstep the workstep to set
99 public void setWorkstep(String workstep) {
100 this.workstep = workstep;
104 * @return the treatments
106 public String getTreatments() {
111 * @param treatments the treatments to set
113 public void setTreatments(String treatments) {
114 this.treatments = treatments;