diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-03-20 14:03:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-03-20 14:03:36 +0000 |
commit | 9e9f17ce23167e8b5fe85597048d39985d8a5277 (patch) | |
tree | 1f6c3476c52e65bcf4d9ce2126694a4dd2584f6e /vid-ext-services-simulator/src/main/java/org/onap/simulator/db/entities/Function.java | |
parent | 03359a5641dfb26f93d630a1b1232c0ffc6ec51c (diff) | |
parent | cb8baa2054a427becd39e4031798375efcc9027c (diff) |
Merge "Merge simulator from ECOMP's repository"
Diffstat (limited to 'vid-ext-services-simulator/src/main/java/org/onap/simulator/db/entities/Function.java')
-rw-r--r-- | vid-ext-services-simulator/src/main/java/org/onap/simulator/db/entities/Function.java | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/vid-ext-services-simulator/src/main/java/org/onap/simulator/db/entities/Function.java b/vid-ext-services-simulator/src/main/java/org/onap/simulator/db/entities/Function.java new file mode 100644 index 000000000..0f37ec9e2 --- /dev/null +++ b/vid-ext-services-simulator/src/main/java/org/onap/simulator/db/entities/Function.java @@ -0,0 +1,56 @@ +package org.onap.simulator.db.entities; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; + +@Entity(name = "fn_function") +public class Function { + + @Id + @Column(name = "function_cd") + private String code; + @Column(name = "function_name") + private String name; + private String type; + private String action; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + public String getName() { + return name; + } + + public String getCode() { + return code; + } + + public void setName(String name) { + this.name = name; + } + + public void setCode(String code) { + this.code = code; + } + + @Override + public String toString() { + return "RoleFunction [code=" + code + ", name=" + name + ", type=" + type + ", action=" + action + "]"; + } + + +} |