weaving.lazy

Use eclipselink.weaving.lazy to specify if TopLink uses lazy one-to-one and many-to-one mappings.

Values

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

Table 5-97 Valid Values for weaving.lazy

Value Description

true

(Default) Enables lazy one-to-one and many-to-one mappings through weaving.

false

Disables lazy one-to-one and many-to-one mappings through weaving.


Usage

You can use this extension only if weaving is configured to true or static. See "weaving" for more information.

Examples

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

Example 5-104 Using weaving in persistence.xml

<property name="eclipselink.weaving.lazy" value="false"/>

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

Example 5-105 Using weaving in a Property Map

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

See Also

For more information, see: