Book Image

Mastering Netbeans

5 (1)
Book Image

Mastering Netbeans

5 (1)

Overview of this book

Table of Contents (17 chapters)
Mastering NetBeans
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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