Develop the Data Transfer Object
We will look at developing the UI in this lesson and also define the data transfer object.
We'll cover the following
There are three major tasks we look at during the development of the mock user interface. They are:
- The data transfer object
- The mock service
- The mock user interface
Data transfer object
Here, the data transfer object does not have the Cart
entity. Since the Customer
and Cart
share a one-to-one relationship, in an instance of Customer
there can be only one instance of the Cart
.
We are hiding from the user that we are saving the relationship as a one-to-one bi-directional relationship.
Get hands-on with 1400+ tech skills courses.