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.domain;
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.Id;
25 import javax.persistence.IdClass;
28 @IdClass(EcompAppRoleId.class)
29 public class EcompAppRole {
32 @Column(name="app_id")
36 @Column(name="app_name")
37 private String appName;
40 @Column(name="role_id")
41 private Integer roleId;
44 @Column(name="role_name")
45 private String roleName;
47 public Long getAppId() {
51 public void setAppId(Long appId) {
55 public String getAppName() {
59 public void setAppName(String appName) {
60 this.appName = appName;
63 public Integer getRoleId() {
67 public void setRoleId(Integer roleId) {
71 public String getRoleName() {
75 public void setRoleName(String roleName) {
76 this.roleName = roleName;