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


weaving

Use eclipselink.weaving to specify if EclipseLink 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.


Values

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

Table 5-94 Valid Values for weaving

Value Description

true

Weave the entity classes dynamically.

false

Do not weave the eneity classes.

static

Weave the entity classes statically



Examples

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

Example 5-98 Using weaving in persistence.xml

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

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");


See Also

For more information, see:

Comments powered by Disqus