Top
Interstage Studio User's Guide
FUJITSU Software

4.1.2 Developing Applications that use JPA

An overview of development of applications that use JPA is given below.

Preparing for Development of Applications that use JPA

Programs that use JPA can be handled as ordinary libraries, or can be included in Web applications and EJB applications. If included in a Web application or an EJB application, a special-purpose project does not need to be created. However, create a JPA project if the program is to be used as a library.
For details, refer to "4.3.1 Preparing the Environment to create Applications that use JPA".

Developing Persistence Units

To develop a persistence unit, an Entity class must be created and an XML file must be edited.
A function is provided for verifying that development has been performed in accordance with JPA specifications.
For details, refer to "4.3.2 Developing Persistence Units".

Creating Entity Classes

To create an Entity class, either perform Java class and database mapping, or create it from database tables.
For details, refer to "4.3.3 Creating Entity Classes" and "4.3.3.4 Generating Entity Classes from Tables".

Operating Database with JPA

Under JPA, database operations are performed by using the Entity manager to operate an Entity.
For details, refer to "4.3.4 Operating Database with JPA".

Checking Operation of Applications that use JPA

Use the Servers view to check the operation of the created application.
For details, refer to "4.3.5 Checking Operation of Applications that use JPA".

Distributing Applications that use JPA

Applications that use JPA must be archived in order to be distributed. Use the Export wizard to create an archive file for the application.
For details, refer to "4.3.6 Distributing Applications that use JPA to the Operating Environment".