Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.apache.openjpa.persistence
Annotation Type PersistentCollection

    @Target(value={METHOD,FIELD})
    @Retention(value=RUNTIME)
    public @interface PersistentCollection

Metadata annotation for a persistent collection field. This should be used to annotate array field types as well as fields of type `Collection`.

Since:
  0.4.0
Author:
  Abe White

Optional Element Summary
`CascadeType[]` | `elementCascade`
`boolean` | `elementEmbedded`
`Class` | `elementType`
`FetchType` | `fetch`
`String` | `mappedBy`

### mappedBy

    public abstract String mappedBy

  Default:
    ""

### elementType

    public abstract Class elementType

  Default:
    void.class

### elementCascade

    public abstract CascadeType[] elementCascade

  Default:
    {}

### elementEmbedded

    public abstract boolean elementEmbedded

  Default:
    false

### fetch

    public abstract FetchType fetch

  Default:
    javax.persistence.FetchType.LAZY

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.