This is OO using JPA to convert between table rows/objects
For config, see persistence.xml
Server must be running.
It possible to handle the database from inside NetBeans.
See Services > Databases > Drivers > MySQL (create connection)