29.2.1 Generated Entity Classes
In Section 29.3.5, you’ll use the NetBeans Entity Classes from Database... option to add to your project classes that represent the database tables (as you’ll see in Section 29.3.5). Together, these classes and the corresponding settings are known as a persistence unit. The discussion in this section is based on the books database that we introduced in Section 24.3.
For the books database, the NetBeans IDE’s object-relational mapping tools create two Serializable classes in the data model—Authors and Titles. Each class—known as an entity class—represents the corresponding table in the database and objects of these classes—known as entities—represent the rows in the corresponding tables. Each of these classes contains: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access