|
|
|
|
2
|
|
2
|
|
3
|
# Part 1 - Domain Implementation<br>
|
3
|
# Part 1 - Domain Implementation<br>
|
4
|
* _Domain objects_ are the backbone for an application and contain the [business logic](https://en.wikipedia.org/wiki/Business_logic).
|
4
|
* _Domain objects_ are the backbone for an application and contain the [business logic](https://en.wikipedia.org/wiki/Business_logic).
|
5
|
-* Create a sub package of `java` named `domain`.
|
|
|
|
|
5
|
+* Create a sub package of `io.zipcoder.tc_spring_poll_application` named `domain`.
|
6
|
|
6
|
|
7
|
|
7
|
|
8
|
-
|
8
|
-
|
|
|
|
|
74
|
* _Repositories_ or [Data Access Objects (DAO)](https://en.wikipedia.org/wiki/Data_access_object), provide an abstraction for interacting with _datastores_.
|
74
|
* _Repositories_ or [Data Access Objects (DAO)](https://en.wikipedia.org/wiki/Data_access_object), provide an abstraction for interacting with _datastores_.
|
75
|
* Typically DAOs include an interface that provides a set of finder methods such as `findById`, `findAll`, for retrieving data, and methods to persist and delete data.
|
75
|
* Typically DAOs include an interface that provides a set of finder methods such as `findById`, `findAll`, for retrieving data, and methods to persist and delete data.
|
76
|
* It is customary to have one `Repository` per `domain` object.
|
76
|
* It is customary to have one `Repository` per `domain` object.
|
77
|
-* Create a sub-package of `java` named `repositories`.
|
|
|
|
|
77
|
+* Create a sub-package of `io.zipcoder.tc_spring_poll_application` named `repositories`.
|
78
|
|
78
|
|
79
|
|
79
|
|
80
|
-
|
80
|
-
|
|
|
|
|
102
|
# Part 3 - Controller Implementation
|
102
|
# Part 3 - Controller Implementation
|
103
|
* _Controllers_ provides all of the necessary [endpoints](https://en.wikipedia.org/wiki/Web_API#Endpoints) to access and manipulate respective domain objects.
|
103
|
* _Controllers_ provides all of the necessary [endpoints](https://en.wikipedia.org/wiki/Web_API#Endpoints) to access and manipulate respective domain objects.
|
104
|
* REST resources are identified using URI endpoints.
|
104
|
* REST resources are identified using URI endpoints.
|
105
|
-* Create a sub package of `java` named `controller`.
|
|
|
|
|
105
|
+* Create a sub package of `io.zipcoder.tc_spring_poll_application` named `controller`.
|
106
|
|
106
|
|
107
|
|
107
|
|
108
|
-
|
108
|
-
|