play.modules.morphia
Annotation Type Model.OnAdd


@Retention(value=RUNTIME)
@Target(value=METHOD)
public static @interface Model.OnAdd

OnAdd mark a method be called before an new entity is saved. If any exception get thrown out in the method the entity will not be saved

Author:
luog



Copyright © 2012. All Rights Reserved.