3.3.1. OpenJPA Properties

OpenJPA defines many configuration properties. Most of these properties are provided for advanced users who wish to customize OpenJPA’s behavior; the majority of developers can omit them. The following properties apply to any OpenJPA back-end, though the given descriptions are tailored to OpenJPA’s default JDBC store.

A few of the properties recognized by OpenJPA have been standardized in JPA 2.0 specification using equivalent names. These properties can be specified either by the JPA standard key or equivalent OpenJPA key. Specifying the same key once as JPA standard key and again as equivalent OpenJPA key in the same configuration, however, is not allowed. The following table lists these standard JPA properties and their OpenJPA equivalent.

Table 3. Standard JPA Properties and OpenJPA equivalents
Standard JPA 2.0 OpenJPA Equivalent

jakarta.persistence.jdbc.driver

openjpa.ConnectionDriverName

jakarta.persistence.jdbc.url

openjpa.ConnectionURL

jakarta.persistence.jdbc.user

openjpa.ConnectionUserName

jakarta.persistence.jdbc.password

openjpa.ConnectionPassword