d25cec5d050b91c988d62e3a28cbcfe313a027a2
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / transport / BulkUploadRoleFunction.java
1 package org.openecomp.portalapp.portal.transport;
2
3 import java.io.Serializable;
4
5 import javax.persistence.Column;
6 import javax.persistence.Entity;
7 import javax.persistence.Id;
8
9 import com.fasterxml.jackson.annotation.JsonInclude;
10
11 @Entity
12 @JsonInclude(JsonInclude.Include.NON_NULL)
13 public class BulkUploadRoleFunction implements Serializable{
14         
15
16         private static final long serialVersionUID = -1880947347092068841L;
17         
18         @Id
19         @Column(name="function_name")
20         private String functionName;
21         @Id
22         @Column(name="function_cd")
23         private String functionCd;
24         
25         public String getFunctionName() {
26                 return functionName;
27         }
28         public void setFunctionName(String functionName) {
29                 this.functionName = functionName;
30         }
31         public String getFunctionCd() {
32                 return functionCd;
33         }
34         public void setFunctionCd(String functionCd) {
35                 this.functionCd = functionCd;
36         }
37         @Override
38         public int hashCode() {
39                 final int prime = 31;
40                 int result = 1;
41                 result = prime * result + ((functionCd == null) ? 0 : functionCd.hashCode());
42                 result = prime * result + ((functionName == null) ? 0 : functionName.hashCode());
43                 return result;
44         }
45         @Override
46         public boolean equals(Object obj) {
47                 if (this == obj)
48                         return true;
49                 if (obj == null)
50                         return false;
51                 if (getClass() != obj.getClass())
52                         return false;
53                 BulkUploadRoleFunction other = (BulkUploadRoleFunction) obj;
54                 if (functionCd == null) {
55                         if (other.functionCd != null)
56                                 return false;
57                 } else if (!functionCd.equals(other.functionCd))
58                         return false;
59                 if (functionName == null) {
60                         if (other.functionName != null)
61                                 return false;
62                 } else if (!functionName.equals(other.functionName))
63                         return false;
64                 return true;
65         }
66         
67         
68 }