February 2014
Beginner
1248 pages
62h 25m
English
In this section, we demonstrate how to create the books database’s JPA entity classes, then use JPA and those classes to connect to the books database, query it and display the results of the query. As you’ll see, NetBeans provides tools that simplify accessing data via JPA. For this chapter’s examples, we use the Java EE (Enterprise Edition) version of NetBeans 8, which you should download and install from:
https://netbeans.org/downloads/
This section’s example performs a simple query that retrieves the books database’s Authors table. We then use Java 8 lambdas and streams to display the contents of that table. The basic steps you’ll perform are:
• Create a Java DB database and populate it from the books.sql ...
Read now
Unlock full access