Create a Web application that uses JavaServer Faces.

Create an entity class called Author. This class has the following fields:

authorId
firstName
lastName

Create an entity class called Book. This class has the following fields:

bookId
title
price
authorId

An author can write many books. A book only has one author. Lets keep this assignment simple and not have books that have more than one author. Create this relationship in the entity classes.

Using the example from PowerPoint, create a new database, a JPA controller, and generate a JSF application.

Create a named query that gets the all books that cost more than a certain amount.

Add the necessary code to a web page to display the results of this query.

Add some records to your database to test the query. see image.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.