2 * ================================================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property
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 * ================================================================================
20 package org.openecomp.portalapp.portal.transport;
22 import java.io.Serializable;
24 import javax.persistence.Column;
25 import javax.persistence.Entity;
26 import javax.persistence.Id;
28 import com.fasterxml.jackson.annotation.JsonInclude;
31 @JsonInclude(JsonInclude.Include.NON_NULL)
32 public class BusinessCardApplicationRole implements Serializable{
37 private static final long serialVersionUID = 1L;
40 public BusinessCardApplicationRole() {
45 @Column(name="app_name")
46 private String appName;
49 @Column(name="role_name")
50 private String roleName;
53 public String getAppName() {
57 public void setAppName(String appName) {
58 this.appName = appName;
63 public String getRoleName() {
67 public void setRoleName(String roleName) {
68 this.roleName = roleName;
72 public String toString() {
73 return "BusinessCardUserApplicationRoles [appName=" + appName + ", roleName=" + roleName + "]";
77 public int hashCode() {
80 result = prime * result + ((appName == null) ? 0 : appName.hashCode());
81 result = prime * result + ((roleName == null) ? 0 : roleName.hashCode());
86 public boolean equals(Object obj) {
91 if (getClass() != obj.getClass())
93 BusinessCardApplicationRole other = (BusinessCardApplicationRole) obj;
94 if (appName == null) {
95 if (other.appName != null)
97 } else if (!appName.equals(other.appName))
99 if (roleName == null) {
100 if (other.roleName != null)
102 } else if (!roleName.equals(other.roleName))