6.12 Creating an entity class

To create an application that uses the JPA, you define the entity class in the application. An entity class is used for handling the database table records as Java objects. When a user performs the new operation in the application, an entity class instance is generated.

This section describes the creation of a JPA application.

Organization of this section
6.12.1 Defining the mapping between an entity class and database
6.12.2 Requirements for creating entity classes
6.12.3 Specifying the access methods for the entity class fields
6.12.4 Creating the accessor method
6.12.5 Types of persistence fields and persistence properties of the entities
6.12.6 Specifying the primary key in the entities
6.12.7 Default mapping rules for the persistence fields and persistence properties