orm.throw.exceptions

Use eclipselink.orm.throw.exceptions to specify if TopLink 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-72 describes this persistence property's values.

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

Value Description

true

Throw an exception

false

Log a warning only.


Examples

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

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

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

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

Example 5-71 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: