Top
Interstage Studio User's Guide
FUJITSU Software

4.3.1 Preparing the Environment to create Applications that use JPA

Applications that use JPA can be created in the following ways, depending on the provision format:

After the provision format is determined, create the project and set the required library in the project, then prepare an environment that enables the build.

Point

Support functions for constructing a database connection environment, for generating an Entity class from a database tables, and for other tasks can be used when developing applications that use JPA.
For details, refer to "8.3.1 Connecting to the Database" for details of constructing a database connection environment. The connection information for the constructed database is used in the setup of information concerning JPA. For details, refer to "4.3.1.1 Setting the JPA Facet" for details.

Creating the Project

Use the Project wizard to create the project that corresponds to the application that uses JPA. The Project wizard includes a [Project Facets] page. On this page, select the required [Java Persistence] project facet.

Projects are described below.

If the [Java Persistence] project facet was selected, information related to JPA can be set. For details, refer to "4.3.1.1 Setting the JPA Facet" for details of the settings for JPA-related information.

Point

If you want to use JPA in an existing EJB project or dynamic Web project, add [Java Persistence]from [Project Facets] in the project properties, then set the JPA-related information.
For details, refer to "4.3.1.1 Setting the JPA Facet" for details of the settings for JPA-related information.

Classpath Settings

Classpaths must be set if there are libraries or similar that are required in order to create the application. Classpaths are set in the project build path.
For details, refer to "6.2.2.3 Setting Classpaths" for details of build path settings.

4.3.1.1 Setting the JPA Facet

If the [Java Persistence] project facet is added to a project, use the Project wizard or the Facet Addition wizard to set the following JPA-related information:

Point

Connection and persistent class management can also be specified from [JPA] under the project properties.