Develop the Business Service Tier
Explore how to develop the business service tier focusing on one-to-many unidirectional relationships. Understand implementing core operations like creating, retrieving, editing, and deleting records with mappers and data access layers. This lesson prepares you to handle service logic for entities and data transfer objects effectively.
We'll cover the following...
We'll cover the following...
We will now jump to the business service tier.
Find all records operation
First, examine the test for the “fetch all records” operation.
Then, look at how to program the equivalent method in the business service.
Mappers
As shown previously, we have a mapper for converting data access objects into entities and vice-versa. This has two operations displayed in the following code. Note that the Phone identifier is generated every ...