KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > annotations > OnDelete


1 package org.hibernate.annotations;
2
3 import java.lang.annotation.Retention JavaDoc;
4 import java.lang.annotation.Target JavaDoc;
5 import static java.lang.annotation.ElementType.METHOD JavaDoc;
6 import static java.lang.annotation.ElementType.FIELD JavaDoc;
7 import static java.lang.annotation.ElementType.TYPE JavaDoc;
8 import static java.lang.annotation.RetentionPolicy.RUNTIME JavaDoc;
9
10
11 /**
12  * Strategy to use on collections, arrays and on joined subclasses delete
13  * OnDelete of secondary tables currently not supported.
14  * @author Emmanuel Bernard
15  */

16 @Target JavaDoc({METHOD, FIELD, TYPE}) @Retention JavaDoc(RUNTIME)
17 public @interface OnDelete {
18     OnDeleteAction action();
19 }
20
Popular Tags