O'Reilly logo

Mastering NetBeans by David Salter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Database Persistence

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

Java EE Persistence

From Java EE 5 onward, the Java Persistence API (JPA) allows us to persist and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required