Java Persistence API (JPA) Extensions Reference for EclipseLink, Release 2.5
  Go To Table Of Contents


Use eclipselink.partitioning to set the default PartitioningPolicy for a persistence unit. The value must be the name of an existing, defined PartitioningPolicy.


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

Table 5-74 Valid Values for partitioning

Value Description


An existing, defined PartitioningPolicy.


Use this property to partition data for a class across multiple difference databases or across a database cluster such as Oracle RAC. Partitioning may provide improved scalability by allowing multiple database machines to service requests.

If multiple partitions are used to process a single transaction, use JTA (Java Transcription API) for proper XA transaction support.


Example 5-74 Using partitioning in persistence.xml

<property name="eclipselink.partitioning" value="Replicate" />

See Also

For more information, see: