## 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
`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 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

Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.