Annotation Type OnSave
@Retention(RUNTIME) @Target(METHOD) public @interface OnSave
When placed on a method on a POJO entity, that method will be called just prior to being saved in the datastore. Analogous to the JPA @PrePersist annotation.
The method can optionally receive one parameter, an Objectify instance.
- Author:
- Jeff Schnitzer