Top Description Methods
org.hibernate.annotations

public @Interface CollectionId

extends Annotation
Annotations
@Target:METHOD, FIELD
@Retention:RUNTIME
Imports
java.lang.annotation.Retention, .Target, org.hibernate.id.IdentifierGenerator, jakarta.persistence.Column

Describe an identifier column for a bag.
Author
Emmanuel Bernard

Method Summary

Modifier and TypeMethod and Description
public Column
column()

The column containing the collection id.

public String
generator()

The generator name.

public Class<? extends IdentifierGenerator>
generatorImplementation()

Implementation for generating values.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

columnback to summary
public Column column()

The column containing the collection id.

generatorback to summary
public String generator()

The generator name.

Can specify either a built-in strategy ("sequence", for example) or a named JPA id generator.

API Note

Mutually exclusive with generatorImplementation()

generatorImplementationback to summary
public Class<? extends IdentifierGenerator> generatorImplementation()

Implementation for generating values.

API Note

Mutually exclusive with generator()