aboutsummaryrefslogtreecommitdiffstats
path: root/vid-ext-services-simulator/src/main/java/org/onap/simulator/db/entities/UserApp.java
blob: dfb6c056f942fe977eedb5d363179ea011c14bf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package org.onap.simulator.db.entities;

import javax.persistence.*;
import java.io.Serializable;

@Entity(name = "fn_user_role")
public class UserApp implements Serializable {

    @Id
    @Column(name = "user_id")
    private Integer userId;
    @Id
    @ManyToOne
    @JoinColumn(name = "app_id")
    private App app;
    @Id
    @ManyToOne
    @JoinColumn(name = "role_id")
    private Role role;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public App getApp() {
        return app;
    }

    public void setApp(App app) {
        this.app = app;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

}