2b70c9be2f77b2058a6be7e34dedb0f474ff9319
[policy/xacml-pdp.git] / applications / common / src / main / java / org / onap / policy / pdp / xacml / application / common / operationshistory / Dbao.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP
4  * ================================================================================
5  * Copyright (C) 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  *
19  * SPDX-License-Identifier: Apache-2.0
20  * ============LICENSE_END=========================================================
21  */
22
23 package org.onap.policy.pdp.xacml.application.common.operationshistory;
24
25 import java.io.Serializable;
26 import java.util.Date;
27
28 import javax.persistence.Column;
29 import javax.persistence.Entity;
30 import javax.persistence.GeneratedValue;
31 import javax.persistence.Id;
32 import javax.persistence.Table;
33
34 import lombok.Data;
35
36 @Entity
37 @Table(name = "operationshistory")
38 @Data
39 public class Dbao implements Serializable {
40
41     private static final long serialVersionUID = -551420180714993577L;
42
43     @Id
44     @GeneratedValue
45     @Column(name = "id")
46     private Long id;
47
48     @Column(name = "closedLoopName", length = 255)
49     private String closedLoopName;
50
51     @Column(name = "requestId", length = 50)
52     private String requestId;
53
54     @Column(name = "subrequestId", length = 50)
55     private String subrequestId;
56
57     @Column(name = "actor", length = 50)
58     private String actor;
59
60     @Column(name = "operation", length = 50)
61     private String operation;
62
63     @Column(name = "target", length = 50)
64     private String target;
65
66     @Column(name = "starttime")
67     private Date starttime;
68
69     @Column(name = "outcome", length = 50)
70     private String outcome;
71
72     @Column(name = "message", length = 255)
73     private String message;
74
75     @Column(name = "endtime")
76     private Date endtime;
77
78 }