O'Reilly logo

Java EE Development with Eclipse by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating entity beans from tables

In this section, we shall create entities from database tables we created earlier. Select the project node in Project Explorer and go to File | New | Other. In the New wizard window, select JPA Entites from Tables from the JPA folder as shown in the following screenshot. Click on Next. Alternatively, you can right-click on the project node in Project Explorer and select Generate Entities from Tables from JPA Tools.

Creating entity beans from tables

In Select Tables, select the database connection configured when adding the JPA project facet. Select the OE Schema. Select the CATALOG, EDITION, SECTION, and ARTICLE tables. Select the checkbox Update ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required