Java Persistence API (JPA) Extensions Reference for EclipseLink, Release 2.5
  Go To Table Of Contents


Use eclipselink.orm.throw.exceptions to specify if EclipseLink throws an exception or logs a warning when encountering a problem with any of the file in the <mapping-file> element of the persistence.xml file.


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

Table 5-71 Valid Values for orm.throw.exceptions

Value Description


Throw an exception


Log a warning only.


Example 5-69 shows how to use this persistence property extension in the persistence.xml file.

Example 5-69 Using orm.throw.exceptions in persistence.xml

<property name="oracle.orm.throw.exceptions" value="false"/>

Example 5-70 shows how to use this extension in a property map

Example 5-70 Using orm.throw.exceptions in a Property Map

import org.eclipse.persistence.config.PersistenceUnitProperties;propertiesMap.put(PersistenceUnitProperties.ECLIPSELINK_ORM_THROW_EXCEPTIONS, "false");

See Also

For more information, see: