Creating Theater entities
In Chapter 3, Java EE Basics – Persistence, Query, and Presentation, we have already created a JPA project that has entities from the Store module. Now we need to create a similar project for the Theater module, mapping entities of the corresponding database schema. We're going to do it using a few other concepts of Java Persistence API (JPA). Let's get started.
Note
Before proceeding, make sure you have already loaded the tables into the databases and configured OEPE's (Eclipse) connection to MySQL. These procedures are explained in Chapter 2, Setting Up the Environment.
In Eclipse, create a new JPA project and perform the following steps:
Enter
TheaterBO
as the Project name.Remember to set the Target runtime to point to your WebLogic 12c Runtime configuration.
At the JPA Facet configuration page, select the same JPA library and implementation you already used in Chapter 3, Java EE Basics – Persistence, Query, and Presentation—that would be EclipseLink 2.4.x/2.5.x...