|
|
|
|
8
|
-
|
8
|
-
|
9
|
# Part 1.1 - Create class `Option`
|
9
|
# Part 1.1 - Create class `Option`
|
10
|
* Create an `Option` class in the `domain` sub-package.
|
10
|
* Create an `Option` class in the `domain` sub-package.
|
11
|
-
|
|
|
|
|
11
|
+* `Option` class signature is annotated with `@Entity`
|
12
|
* `Option` has an `id` instance variable of type `Long`
|
12
|
* `Option` has an `id` instance variable of type `Long`
|
13
|
* `id` should be `annotated` with
|
13
|
* `id` should be `annotated` with
|
14
|
* `@Id`
|
14
|
* `@Id`
|
|
|
|
|
28
|
-
|
28
|
-
|
29
|
# Part 1.2 - Create class `Poll`
|
29
|
# Part 1.2 - Create class `Poll`
|
30
|
* Create a `Poll` class in the `domain` sub-package.
|
30
|
* Create a `Poll` class in the `domain` sub-package.
|
31
|
-
|
|
|
|
|
31
|
+* `Poll` class signature is annotated with `@Entity`
|
32
|
* `Poll` has an `id` instance variable of type `Long`
|
32
|
* `Poll` has an `id` instance variable of type `Long`
|
33
|
* `id` should be `annotated` with
|
33
|
* `id` should be `annotated` with
|
34
|
* `@Id`
|
34
|
* `@Id`
|
|
|
|
|
52
|
-
|
52
|
-
|
53
|
# Part 1.3 - Create class `Vote`
|
53
|
# Part 1.3 - Create class `Vote`
|
54
|
* Create a `Vote` class in the `domain` sub-package.
|
54
|
* Create a `Vote` class in the `domain` sub-package.
|
55
|
-
|
|
|
|
|
55
|
+* `Vote` class signature is annotated with `@Entity`
|
56
|
* `Vote` has an `id` instance variable of type `Long`
|
56
|
* `Vote` has an `id` instance variable of type `Long`
|
57
|
* `id` should be `annotated` with
|
57
|
* `id` should be `annotated` with
|
58
|
* `@Id`
|
58
|
* `@Id`
|