Java Persistence API (JPA) Extensions Reference for EclipseLink, Release 2.4
  Go To Table Of Contents
 Search
 PDFComments
Comments


validation-only

Use the eclipselink.validation-only persistence property to validate deployments by initializing descriptors but not connecting to the data source.


Values

Table 5-93 describes this persistence property's values.

Table 5-93 Valid Values for validation-only

Value Description

true

EclipseLink will initialize the descriptors but not log in.

false

(Default) EclipseLink will initialize the descriptors and log in.



Usage

When setting eclipselink.validation-only to true, you must also configure eclipselink.target-database with a non-Auto class name or a short name.


Examples

Example 5-97 show how to use this property in the persistence.xml file.

Example 5-97 Using validation-only in persistence.xml

<property name="eclipselink.validation-only" value="true"/>


See Also

For more information, see: