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.