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

## org.hibernate.annotations
Annotation Type CollectionId

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

Describe an identifier column for a bag (ie an idbag) EXPERIMENTAL: the structure of this annotation might slightly change (generator() mix strategy and generator

Author:
  Emmanuel Bernard

Required Element Summary
`javax.persistence.Column[]` | `columns` Collection id column(s)
`String` | `generator` generator name: 'identity' or a defined generator name
`Type` | `type` id type, type.type() must be set

Element Detail

### columns

    public abstract javax.persistence.Column[] columns

  Collection id column(s)

### type

    public abstract Type type

  id type, type.type() must be set

### generator

    public abstract String generator

  generator name: 'identity' or a defined generator name

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