Login, Logout.

To set-up the DB: Netbeans -> Services -> Java DB [Right click] -> Create Database

DB Name: CinemaDB
DB Username: nbuser
DB Password: nbuser

Then check out the persistence.xml. :]