According to 3.5.2 Lifecycle Callback Methods:
"In general, the lifecycle method of a portable application should not invoke EntityManager or query operations, access other entity instances, or modify relationships within the same persistence context [46][47] A lifecycle callback method may modify the non-relationship state of the entity on which it is invoked."
|