1 package org.onap.simulator.db.entities;
4 import javax.persistence.CascadeType;
5 import javax.persistence.Column;
6 import javax.persistence.Entity;
7 import javax.persistence.Id;
8 import javax.persistence.OneToMany;
9 import org.hibernate.annotations.Type;
11 @Entity(name = "fn_role")
14 @Column(name = "role_id")
16 @Column(name = "role_name")
18 @Column(name = "active_yn", columnDefinition = "varchar")
20 private boolean active;
22 @OneToMany(cascade = CascadeType.ALL, targetEntity=RoleFunction.class, mappedBy="id")
23 private Set<RoleFunction> roleFunctions;
25 public Integer getId() {
29 public void setId(Integer id) {
33 public String getName() {
37 public void setName(String name) {
41 public boolean isActive() {
45 public void setActive(boolean active) {
50 public Set<RoleFunction> getRoleFunctions() {
54 public void setRoleFunctions(Set<RoleFunction> roleFunctions) {
55 this.roleFunctions = roleFunctions;