52529cb61e7f6676f1fb1c99e7c204dffda28a6b
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / domain / EcompAppRole.java
1 /*-
2  * ================================================================================
3  * ECOMP Portal
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
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  * ================================================================================
19  */
20 package org.openecomp.portalapp.portal.domain;
21
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.Id;
25 import javax.persistence.IdClass;
26
27 @Entity
28 @IdClass(EcompAppRoleId.class)
29 public class EcompAppRole {
30
31         @Id
32         @Column(name="app_id")
33         private Long appId;
34  
35         @Id
36         @Column(name="app_name")
37         private String appName; 
38         
39         @Id
40         @Column(name="role_id")
41         private Integer roleId;
42         
43         @Id
44         @Column(name="role_name")
45         private String roleName;
46
47         public Long getAppId() {
48                 return appId;
49         }
50
51         public void setAppId(Long appId) {
52                 this.appId = appId;
53         }
54
55         public String getAppName() {
56                 return appName;
57         }
58
59         public void setAppName(String appName) {
60                 this.appName = appName;
61         }
62
63         public Integer getRoleId() {
64                 return roleId;
65         }
66
67         public void setRoleId(Integer roleId) {
68                 this.roleId = roleId;
69         }
70
71         public String getRoleName() {
72                 return roleName;
73         }
74
75         public void setRoleName(String roleName) {
76                 this.roleName = roleName;
77         }
78         
79         
80 }