Question: Your final task this week, is simply to chart out what kind of SQL queries your tagging system might need to run. From there, create
Your final task this week, is simply to chart out what kind of SQL queries your tagging system might need to run. From there, create a DAO interface which declares the methods that will call those queries. You won't need to implement them yet, that's a task for the next dive.
You will need, at minimum:
- A method to add a tag to a book, given the tag name and a reference to a book (either a Book reference variable or just an ISBN-13)
- A method to remove a tag from a book, given the tag name and a reference to a book (either a Book reference variable or just an ISBN-13)
- A method to retrieve all tags that have been added to a given book
- A method to retrieve all books that have a given tag. Hint: This will require either a SQL JOIN statement or a nested query.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
