From the course: Software Design: From Requirements to Release
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Solution
From the course: Software Design: From Requirements to Release
Solution
(upbeat music) - [Instructor] In this challenge you were to do two things: Implement track nutrition use case and then refactor the data layer by splitting the DAO class into multiple DAOs. Let us first go to this sprint for tracking nutrition. The user story is, "As a user, I want to see a trend in the consumption of a nutrient in my meals over time." The UI Mockup I came up with looks like this. Given a range of dates and a nutrient, the UI will show some kind of trend line showing nutrient consumption over time. The sequence diagram has one new servlet, track nutrition controller and one new GSP, track daily nutrients. You will find this flow now very familiar where a user selects track nutrition functionality, which takes the control to track nutrition controller, which takes session attributes from requests and forwards them to track nutrients GSP. Then user provides inputs for the nutrient and dates. JSP asks the…