Since for our use case we only need to retrieve data from the database I only added following methods to our generic DAO interface:
A real implementation could look like the one below.
But in order to quickly test our application I wrote a little mock implementation for the MovieDao interface.
Part 6 will take a closer look at our MovieService interface/implementation and the endpoint and I will shortly explain why I had to use domain object adapters.
No comments:
Post a Comment