|
@@ -0,0 +1,32 @@
|
|
1
|
+package io.zipcoder.tc_spring_poll_application.domain;
|
|
2
|
+
|
|
3
|
+import javax.persistence.Column;
|
|
4
|
+import javax.persistence.GeneratedValue;
|
|
5
|
+import javax.persistence.Id;
|
|
6
|
+
|
|
7
|
+public class Option {
|
|
8
|
+
|
|
9
|
+ @Id
|
|
10
|
+ @GeneratedValue
|
|
11
|
+ @Column(name="OPTION_ID")
|
|
12
|
+ private long id;
|
|
13
|
+
|
|
14
|
+ @Column(name = "OPTION_VALUE")
|
|
15
|
+ private String value;
|
|
16
|
+
|
|
17
|
+ public long getId() {
|
|
18
|
+ return id;
|
|
19
|
+ }
|
|
20
|
+
|
|
21
|
+ public void setId(long id) {
|
|
22
|
+ this.id = id;
|
|
23
|
+ }
|
|
24
|
+
|
|
25
|
+ public String getValue() {
|
|
26
|
+ return value;
|
|
27
|
+ }
|
|
28
|
+
|
|
29
|
+ public void setValue(String value) {
|
|
30
|
+ this.value = value;
|
|
31
|
+ }
|
|
32
|
+}
|