@@ -2543,8 +2543,11 @@ callback methods will be invoked for the managed instance after the
2543
2543
entity state has been copied to it. These _PrePersist_ and _PreRemove_
2544
2544
callbacks will also be invoked on all entities to which these operations
2545
2545
are cascaded. The _PrePersist_ and _PreRemove_ methods will always be
2546
- invoked as part of the synchronous persist, merge, and remove
2547
- operations.
2546
+ invoked as part of the synchronous persist, merge, and remove operations.
2547
+ Primary key values generated using the _SEQUENCE_, _TABLE_, or _UUID_
2548
+ strategy are available in the _PrePersist_ method. Primary key values
2549
+ generated using the _IDENTITY_ strategy are not available in the
2550
+ _PrePersist_ method.
2548
2551
2549
2552
The _PostPersist_ and _PostRemove_ callback
2550
2553
methods are invoked for an entity after the entity has been made
@@ -2555,7 +2558,7 @@ delete operations respectively. These database operations may occur
2555
2558
directly after the persist, merge, or remove operations have been
2556
2559
invoked or they may occur directly after a flush operation has occurred
2557
2560
(which may be at the end of the transaction). Generated primary key
2558
- values are available in the _PostPersist_ method.
2561
+ values are always available in the _PostPersist_ method.
2559
2562
2560
2563
The _PreUpdate_ and _PostUpdate_ callbacks
2561
2564
occur before and after the database update operations to entity data
0 commit comments