[POLICY-11] Sample Query with variable arguments
[policy/drools-applications.git] / controlloop / common / eventmanager / src / main / java / org / onap / policy / controlloop / eventmanager / OperationsHistoryDbEntry.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * controlloop
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.controlloop.eventmanager;
22
23 import java.io.Serializable;
24 import java.sql.Timestamp;
25
26 import javax.persistence.Column;
27 import javax.persistence.Entity;
28 import javax.persistence.GeneratedValue;
29 import javax.persistence.Id;
30 import javax.persistence.Table;
31
32
33 @Entity
34 @Table(name="operationshistory10")
35 public class OperationsHistoryDbEntry implements Serializable{
36
37         /**
38          * 
39          */
40         private static final long serialVersionUID = 1L;
41
42         @Id@GeneratedValue
43         @Column(name="ROWID")
44         public long rowid;
45         
46         @Column(name="CLNAME")
47         public String closedLoopName;
48         
49         public String requestId;
50         
51         public String actor;
52         
53         public String operation;
54         
55         public String target;
56         
57         public Timestamp starttime;
58         
59         public Timestamp endtime;
60         
61         public String subrequestId;
62         
63         public String outcome;
64         
65         public String message;
66
67 }
68
69