Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 33 | PointedEar | 1 | /* $Id: PersistenceContexts.java 11282 2007-03-14 22:05:59Z epbernard $ |
| 2 | * JBoss Inc |
||
| 3 | * |
||
| 4 | * Distributable under LGPL license. |
||
| 5 | * See terms of license at gnu.org. |
||
| 6 | */ |
||
| 7 | package javax.persistence; |
||
| 8 | |||
| 9 | import java.lang.annotation.ElementType; |
||
| 10 | import java.lang.annotation.Retention; |
||
| 11 | import java.lang.annotation.RetentionPolicy; |
||
| 12 | import java.lang.annotation.Target; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Declares one or more PersistenceContext annotations. It is used to express a dependency on |
||
| 16 | * container-managed entity manager persistence contexts. |
||
| 17 | * |
||
| 18 | * @author <a href="mailto:bill@jboss.org">Bill Burke</a> |
||
| 19 | */ |
||
| 20 | @Target({ElementType.TYPE}) |
||
| 21 | @Retention(RetentionPolicy.RUNTIME) |
||
| 22 | public @interface PersistenceContexts { |
||
| 23 | /** |
||
| 24 | * One or more persistence context |
||
| 25 | */ |
||
| 26 | PersistenceContext[] value(); |
||
| 27 | } |