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 javax.persistence.Column;
26 import javax.persistence.Entity;
27 import javax.persistence.Id;
28 import javax.persistence.Table;
31 * Maps identifiers (such as function names) in the policy to internal names used by this
35 @Table(name = "IDENTIFIER_MAP")
36 public class IdentifierMap implements Serializable {
38 private static final long serialVersionUID = 1L;
40 Integer identifierMapId;
43 Timestamp createdTime;
45 Timestamp lastUpdatedTime;
49 * Primary key for this entity.
52 @Column(name = "IDENTIFIER_MAP_ID")
53 public Integer getIdentifierMapId() {
54 return identifierMapId;
57 public void setIdentifierMapId(Integer identifierMapId) {
58 this.identifierMapId = identifierMapId;
64 @Column(name = "POLICY_FN_NAME")
65 public String getPolicyFnName() {
69 public void setPolicyFnName(String policyFnName) {
70 this.policyFnName = policyFnName;
74 * Name in this micro-service.
76 @Column(name = "JS_FN_NAME")
77 public String getJsFnName() {
81 public void setJsFnName(String jsFnName) {
82 this.jsFnName = jsFnName;
86 * Time-stamp for this entity creation.
88 @Column(name = "CREATED_TIME")
89 public Timestamp getCreatedTime() {
93 public void setCreatedTime(Timestamp createdTime) {
94 this.createdTime = createdTime;
98 * Identifier for the entity creation.
100 @Column(name = "CREATED_BY")
101 public String getCreatedBy() {
105 public void setCreatedBy(String createdBy) {
106 this.createdBy = createdBy;
110 * Time-stamp for this entity update.
112 @Column(name = "LAST_UPDATED_TIME")
113 public Timestamp getLastUpdatedTime() {
114 return lastUpdatedTime;
117 public void setLastUpdatedTime(Timestamp lastUpdatedTime) {
118 this.lastUpdatedTime = lastUpdatedTime;
122 * Identifier for this entity update.
124 @Column(name = "LAST_UPDATED_BY")
125 public String getLastUpdatedBy() {
126 return lastUpdatedBy;
129 public void setLastUpdatedBy(String lastUpdatedBy) {
130 this.lastUpdatedBy = lastUpdatedBy;