Use eclipselink.weaving to specify if TopLink weaves the entity classes. EclipseLink JPA uses weaving to enhance JPA entities for such things as lazy loading, change tracking, fetch groups, and internal optimizations.
Table 5-94 describes this persistence property's values.
Table 5-94 Valid Values for weaving
| Value | Description |
|---|---|
|
|
Weave the entity classes dynamically. |
|
|
Do not weave the eneity classes. |
|
|
Weave the entity classes statically |
Example 5-98 shows how to use this persistence property extension in the persistence.xml file.
Example 5-99 shows how to use this extension in a property map
Example 5-99 Using weaving in a Property Map
import org.eclipse.persistence.config.PersistenceUnitProperties;propertiesMap.put(PersistenceUnitProperties.WEAVING, "false");
For more information, see:
"Using Weaving" in Understanding Oracle TopLink
"Enhancing Performance" in Solutions Guide for Oracle TopLink