Test many POJOs getters/setters
[vid.git] / vid-app-common / src / main / java / org / onap / vid / model / VidBaseEntity.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 - 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  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.vid.model;
22
23 import com.fasterxml.jackson.annotation.JsonIgnore;
24 import org.onap.portalsdk.core.domain.support.DomainVo;
25
26 import javax.persistence.Column;
27 import javax.persistence.MappedSuperclass;
28 import javax.persistence.Transient;
29 import java.io.Serializable;
30 import java.util.Date;
31 import java.util.Set;
32
33 @MappedSuperclass
34 public class VidBaseEntity extends DomainVo {
35
36     @Override
37     @Column(name = "CREATED_DATE")
38     @JsonIgnore
39     public Date getCreated() {
40         return super.getCreated();
41     }
42
43     @Override
44     @Column(name = "MODIFIED_DATE")
45     @JsonIgnore
46     public Date getModified() {
47         return super.getModified();
48     }
49
50     @Override
51     @Transient
52     @JsonIgnore
53     public Long getCreatedId() {
54         return super.getCreatedId();
55     }
56
57     @Override
58     @Transient
59     @JsonIgnore
60     public Long getModifiedId() {
61         return super.getModifiedId();
62     }
63
64     @Override
65     @Transient
66     @JsonIgnore
67     public Serializable getAuditUserId() {
68         return super.getAuditUserId();
69     }
70
71     @Override
72     @Transient
73     @JsonIgnore
74     public Long getRowNum() {
75         return super.getRowNum();
76     }
77
78     @Override
79     @Transient
80     @JsonIgnore
81     public Set getAuditTrail() {
82         return super.getAuditTrail();
83     }
84 }