1
0
mirror of synced 2025-02-22 15:13:13 +03:00

Clarified docs on persisting new objects.

This commit is contained in:
Roman S. Borschel 2010-05-05 10:58:11 +02:00
parent 74ecfca43e
commit e155e86517

View File

@ -78,8 +78,10 @@ Example:
> **CAUTION**
> Generated entity identifiers / primary keys are guaranteed to be available after the
> next invocation of `EntityManager#flush()` that involves the entity in question.
> YOU CAN NOT RELY ON A GENERATED IDENTIFIER TO BE AVAILABLE AFTER INVOKING `persist`!
> next successful flush operation that involves the entity in question.
> You can not reply on a generated identifier to be available directly after invoking `persist`.
> The inverse is also true. You can not rely on a generated identifier being not available
> after a failed flush operation.
The semantics of the persist operation, applied on an entity X, are as follows: