Use the eclipselink.validate-existence
persistence property configures to specify if EclipseLink should verify an object's existence on persist()
.
Values
Table 5-92 describes this persistence property's values.
Table 5-92 Valid Values for validate-existence
Value | Description |
---|---|
|
EclipseLink verifies the object's existence. |
|
(Default) EclipseLink assumes the object is new, if it is not in the persistence context. |
Usage
EclipseLink will throw an error if a validated object is not in the persistence context.
Examples
See Also
For more information, see: