You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within the showQuoteBasedOnCategory(@QueryParam("category") String category) method
Using the CategoryQuoteDAO class, obtain a list of quotations
Randomly select a quotation from the list of quotations returned from the query
If the database query throws an error create a quote object and set the quotation with the error message and the category with the error title e.g. SQL exception
Return the selected quote object, or the quote containing the error to the invoker.
showQuoteBasedOnCategory(@QueryParam("category") String category)methodCategoryQuoteDAOclass, obtain a list of quotations