# Configuring a JPA Project to Use Kodo Persistence Provider

Oracle Kodo is the default persistence provider for Oracle WebLogic Server 10n. OEPE enables automatic configuration and deployment of Eclipse JPA projects that use Kodo as their persistence provider on Oracle WebLogic Server.

OEPE provides Oracle Kodo facet that allows you to configure your JPA project to use Oracle Kodo as the persistence provider. When selected, the following happens:

- The project build path is automatically configured to include Oracle Kodo persistence provider JAR files shipped with Oracle WebLogic Server.

- The database connection properties specific to Oracle Kodo can be automatically configured in the `persistence.xml` file of your Eclipse JPA project.

Note: Earlier versions of Kodo require a build-time class enhancement process. OEPE triggers execution of a Kodo-specific class enhancer on your Kodo JPA project when deployed to Oracle WebLogic Server 10.0. For more information, see Oracle WebLogic Server Support for Persistence Provider Libraries and Deployment.

To configure your Eclipse JPA project to use Oracle Kodo as a persistence provider:

1. When creating a new JPA project, or configuring a Web project or utility with a JPA facet, click Modify next to Configuration on the New JPA Project dialog. This opens the Project Facets dialog.

2. Select WebLogic Utility Module Extensions and Java Persistence Library (Oracle Kodo) from the Project Facet list, and then click OK to apply your selection and close the Project Facets dialog.

3. Click Next on the New JPA Project > JPA Project dialog.

4. On the next, New JPA Project > JPA Facet screen of the New JPA Project dialog, select Generic as the platform for your project.

5. Specify the database connection in the Connection field, and then click Next. This opens the New JPA Project > Kodo dialog. Select `Weblogic System Library (Oracle Kodo 4.2)` from the Library > Type combo box.

6. Click Finish.

If you expand your JPA project node in the Project Explorer, and then expand the WebLogic System Libraries node, you will find the Oracle Kodo persistence provider library, as well as Java persistence library, at the end of the list.

The persistence.xml file of your JPA project now contains Oracle Kodo persistence provider settings.