Add JPA support to project

You can add Java™ Persistence API (JPA) support to a faceted project by adding the Java Persistence project facet.

You can only add the JPA project facet to faceted projects - projects that use the faceted project framework for adding functionality. Examples of faceted projects are a dynamic Web project and an EJB project. A project facet is a specific unit of functionality that you can add to a project when that functionality is required. When a project facet is added to a project, it can add natures, builders, classpath entries, and resources to a project, depending on the characteristics of the particular project.

Note: Java projects (File > New > Java Project) are not faceted projects by default. To convert a Java project to a JPA project, see Converting a Java project to a JPA project.

To add JPA support to a project:

  1. In the Package Explorer view, select the project and then in the main menu click Project > Properties. The Properties page opens.
  2. Click the Project Facets property.
  3. In the list of project facets, select Java Persistence 1.0 and then click Apply. Java Persistence 1.0 facet is added to your project.
  4. Click OK. The properties pages closes.

References

http://publib.boulder.ibm.com/infocenter/radhelp/v7r5/index.jsp?topic=/com.ibm.jpa.doc/topics/t_addJPAfacet.html »

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.