Develop the Data Transfer Object

We will define the data transfer object in this lesson.

We'll cover the following

The three tasks we’ll look at during the development of the mock user interface are the following:

  • The creation of the data transfer object
  • The mock service
  • The mock user interface

We will look at these one by one.

Data transfer object

The Category data transfer object has an identifier, the name of the category, and the parent category identifier. Many children can share a parent so we can’t recreate the parent every time we create a new category. Therefore, we are skipping the parent identifier but not the parent category name. If we skip the parent category name, the parent category has to be recreated and all the related categories have to be recreated which is a cumbersome task.

Get hands-on with 1200+ tech skills courses.