1 package org.hibernate.annotations;2 3 import java.lang.annotation.Retention ;4 import java.lang.annotation.Target ;5 import static java.lang.annotation.ElementType.METHOD ;6 import static java.lang.annotation.ElementType.FIELD ;7 import static java.lang.annotation.ElementType.TYPE ;8 import static java.lang.annotation.RetentionPolicy.RUNTIME ;9 10 11 /**12 * Strategy to use on collections, arrays and on joined subclasses delete13 * OnDelete of secondary tables currently not supported.14 * @author Emmanuel Bernard15 */16 @Target ({METHOD, FIELD, TYPE}) @Retention (RUNTIME)17 public @interface OnDelete {18 OnDeleteAction action();19 }20