Details
Description
Currently we have a set of Lifecycle events, but they seem to be misleading both in actual implementation and documentation.
One good example is prePersist and postPersist, which is only fired when you're creating new entities. It should be renamed to preInsert and postInsert.
As of preUpdate and postUpdate, they seem quite valid.
But if we rename prePersist and postPersist to (pre|post)Insert, we may have a situation where you wanna cover both insert and update.
For this, (pre|post)Persist should be reinstated, but acting differently from what it does currently.
Also, documentation for post* methods is broken at the website:
"Changes in here are not relevant to the persistence in the database, but you can use this events to"
It cuts off in mid-sentence.