2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2018 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.ccsdk.apps.ms.neng.persistence.entity;
23 import java.io.Serializable;
24 import java.sql.Timestamp;
25 import jakarta.persistence.Column;
26 import jakarta.persistence.Entity;
27 import jakarta.persistence.GeneratedValue;
28 import jakarta.persistence.GenerationType;
29 import jakarta.persistence.Id;
30 import jakarta.persistence.Table;
33 * Represents an entity representing policies stored in this micro-service (temporarily).
36 @Table(name = "POLICY_MAN_SIM")
37 public class PolicyDetails implements Serializable {
39 private static final long serialVersionUID = 1L;
42 String policyResponse;
43 Timestamp createdTime;
46 * Primary key for this entity.
49 @Column(name = "POLICY_ID")
50 @GeneratedValue(strategy = GenerationType.IDENTITY)
51 public Integer getPolicyId() {
55 public void setPolicyId(Integer policyId) {
56 this.policyId = policyId;
62 @Column(name = "POLICY_NAME")
63 public String getPolicyName() {
67 public void setPolicyName(String policyName) {
68 this.policyName = policyName;
72 * The text form of the policy.
74 @Column(name = "POLICY_RESPONSE")
75 public String getPolicyResponse() {
76 return policyResponse;
79 public void setPolicyResponse(String policyResponse) {
80 this.policyResponse = policyResponse;
84 * Time-stamp for this entity creation.
86 @Column(name = "CREATED_TIME")
87 public Timestamp getCreatedTime() {
91 public void setCreatedTime(Timestamp createdTime) {
92 this.createdTime = createdTime;