Top Description Methods
org.hibernate.annotations

public @Interface CollectionId

extends Annotation
Annotations
@Target:METHOD, FIELD
@Retention:RUNTIME
Imports
java.lang.annotation.Retention, .Target, javax.persistence.Column

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

Method Summary

Modifier and TypeMethod and Description
public Column
public Column[]
columns()

Deprecated Only basic (single column) collection-ids are supported. Use column instead
Collection id column(s).
public String
generator()

The generator name.

public Type
type()

id type, type.type() must be set.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

columnback to summary
public Column column()
columnsback to summary
public Column[] columns()

Deprecated

Only basic (single column) collection-ids are supported. Use column instead

Collection id column(s).

Annotations
@Deprecated
generatorback to summary
public String generator()

The generator name. For example 'identity' or a defined generator name

typeback to summary
public Type type()

id type, type.type() must be set.