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 |
---|---|
name |
An existing, defined |
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" />
For more information, see: