If multiple partitions are used to process a single transaction, JTA should be used for proper XA transaction support.
Partitioning can be enabled on an Entity, relationship, query, or session/persistence unit. Partition policies are globally named to allow reuse, the partitioning policy must also be set using the @Partitioned annotation to be used.
Partitioned, org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Class |
| name | back to summary |
|---|---|
| public String name() The name of the partition policy, names must be unique for the persistence unit. | |
| partitioningClass | back to summary |
|---|---|
| public Class (Required) Full package.class name of a subclass of PartitioningPolicy. | |