- summary Lifecycle Callbacks
Objectify supports two lifecycle callbacks: and . If you mark methods on your POJO entity or embedded class (or any superclasses) with these annotations, they will be called:
* {{{@OnLoad}}} methods are called after your data has been populated on your POJO class from the datastore. * {{{@OnSave}}} methods are called just before your data is written to the datastore from your POJO class.
You can have any number of these callback methods in your POJO class or its superclasses. They will be called in order of declaration, with superclass methods called first.
- Caution*: You can't update @Id or @Parent fields in a @OnSave callback.