February 2014
Beginner
1248 pages
62h 25m
English
In this section, you’ll create the persistence unit the entity classes Authors and Titles using the NetBeans object-relational mapping tools. To do so:
1. In the NetBeans Projects tab, right click the BooksDatabaseExamples node, then select New > Entity Classes from Database....
2. In the Entity Classes from Database dialog’s Database Tables step, click the Add All > > button, then click Next >.
3.In the Entity Classes step, ensure that Create Persistence Unit is checked, keep the other default settings and click Next >.
4. In the Mapping Options step, change the Collection Type to java.util.List and keep the other default settings—for queries that return multiple authors or titles, ...
Read now
Unlock full access