package com.googlecode.objectify.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * <p>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.</p> * * <p>The method can optionally receive one parameter, an Objectify instance.</p> * * @author Jeff Schnitzer <jeff@infohazard.org> */ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD}) public @interface OnSave { }