KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.hibernate.annotations;
2
3 import static java.lang.annotation.ElementType.METHOD JavaDoc;
4 import static java.lang.annotation.ElementType.FIELD JavaDoc;
5 import static java.lang.annotation.RetentionPolicy.RUNTIME JavaDoc;
6
7 import java.lang.annotation.Retention JavaDoc;
8 import java.lang.annotation.Target JavaDoc;
9
10 /**
11  * Apply a cascade strategy on an association
12  */

13 @Target JavaDoc({METHOD, FIELD}) @Retention JavaDoc(RUNTIME)
14 public @interface Cascade {
15     CascadeType[] value();
16 }
17
Popular Tags