PersistenceContext (Apache Tomcat 7.0.104 API Documentation)

javax.persistence

## Annotation Type PersistenceContext

-     @Target(value={TYPE,METHOD,FIELD})
      @Retention(value=RUNTIME)
      public @interface PersistenceContext

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `String` | `name`
    `PersistenceProperty[]` | `properties`
    `PersistenceContextType` | `type`
    `String` | `unitName`

- - ### Element Detail

    - #### name

          public abstract String name

      Default:
        ""

    - #### unitName

          public abstract String unitName

      Default:
        ""

    - #### type

          public abstract PersistenceContextType type

      Default:
        javax.persistence.PersistenceContextType.TRANSACTION

    - #### properties

          public abstract PersistenceProperty[] properties

      Default:
        {}

Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.