Use eclipselink.id-validation
to define which primary key components values are considered invalid.
Values
Table 5-37 describes this persistence property's values.
Table 5-37 Valid Values for id-validation
Value | Description |
---|---|
|
|
|
EclipseLink performs no ID validation. |
|
|
|
|
Usage
Identity and sequencing (with shouldAlwaysOverrideExistingValue
configured as true
) will override any existing ID value.
Examples
Example 5-27 Using id-validation in persistence.xml
<property name="eclipselink.id-validation" value="NULL"/>
See Also
For more information, see:
"Persisting Objects" in Understanding EclipseLink