29.5.4 AddressBook Class
The AddressBook
application (Fig. 29.4) uses the persistence unit you created in Section 29.5.2 to interact with AddressBook
database. This app’s GUI is identical to the one in Section 24.8. We’ve reorganized some of the GUI code and replaced most of the event-handling anonymous inner classes with lambda expressions that are specified as method references (lines 86–87, 103, 144, 151 and 155). For the discussion in this section, we focus exclusively on the JPA features used in this version of the AddressBook
.
Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.