Merge simulator from ECOMP's repository
[vid.git] / vid-ext-services-simulator / src / main / java / org / onap / simulator / db / entities / Function.java
1 package org.onap.simulator.db.entities;
2
3 import javax.persistence.Column;
4 import javax.persistence.Entity;
5 import javax.persistence.Id;
6
7 @Entity(name = "fn_function")
8 public class Function {
9
10     @Id
11     @Column(name = "function_cd")
12     private String code;
13     @Column(name = "function_name")
14     private String name;
15     private String type;
16     private String action;
17
18     public String getType() {
19         return type;
20     }
21
22     public void setType(String type) {
23         this.type = type;
24     }
25
26     public String getAction() {
27         return action;
28     }
29
30     public void setAction(String action) {
31         this.action = action;
32     }
33
34     public String getName() {
35         return name;
36     }
37
38     public String getCode() {
39         return code;
40     }
41
42     public void setName(String name) {
43         this.name = name;
44     }
45
46     public void setCode(String code) {
47         this.code = code;
48     }
49
50     @Override
51     public String toString() {
52         return "RoleFunction [code=" + code + ", name=" + name + ", type=" + type + ", action=" + action + "]";
53     }
54
55
56 }