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


orm.throw.exceptions

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.


Values

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

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

Value Description

true

Throw an exception

false

Log a warning only.



Examples

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:

Comments powered by Disqus