Develop the Resource Tier
We will develop the resource (entity) tier in this lesson, which is the first step in the process of developing the service.
We'll cover the following
Now, let’s turn to the service development, which consists of four major steps:
- Creating the entity
- Creating the data access tier
- Creating the business service tier
- Creating the JSON-based REST
We will start with the entity and end with the REST service.
Following a test-driven development approach, we will write the test for the entity followed by the entity implementation. First, create two instances of Customer
with a Cart
entity followed by an update and a delete. Finally, test whether or not one instance of Customer
remains. Note that the essential difference from a unidirectional relationship is to populate the Cart
for a Customer
and also the Customer
for a Cart
.
Get hands-on with 1200+ tech skills courses.