29.5 Address Book: Using JPA and Transactions to Modify a Database
We now reimplement the address book app from Section 24.8 using JPA. As before, you can browse existing entries, add new entries and search for entries with a specific last name. Recall that the AddressBook
Java DB database contains an Addresses
table with the columns addressID
, FirstName
, LastName
, Email
and PhoneNumber
. The column addressID
is an identity column in the Addresses
table.
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.