In the previous chapter, we looked at managing different services from within NetBeans. One of the services we looked at was managing different database connections and databases themselves. We saw how to perform SQL statements against a database and return result sets from queries.
In this chapter, we're going to look at how NetBeans helps us to perform database operations from within applications. We're going to look at the following topics:
Creating persistence units
Creating blank entity classes and entity classes from databases
Creating JPA controllers
Creating database schemas and database scripts from entity classes