1 23 24 package javax.persistence; 25 26 import java.lang.annotation.Target ; 27 import static java.lang.annotation.ElementType .*; 28 import java.lang.annotation.Retention ; 29 import static java.lang.annotation.RetentionPolicy .*; 30 31 36 37 @Target ({TYPE, METHOD, FIELD}) 38 @Retention (RUNTIME) 39 public @interface PersistenceContext { 40 41 46 String name() default ""; 47 48 53 String unitName() default ""; 54 55 59 PersistenceContextType type() default PersistenceContextType.TRANSACTION; 60 61 67 PersistenceProperty[] properties() default {}; 68 } 69 | Popular Tags |