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