Package org.hibernate.annotations
Annotation Type CollectionId
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface CollectionId
Describe an identifier column for a bag.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description jakarta.persistence.Column
column
The column containing the collection-idString
generator
The generator name.Class<? extends IdentifierGenerator>
generatorImplementation
Implementation for generating values
-
-
-
-
generatorImplementation
Class<? extends IdentifierGenerator> generatorImplementation
Implementation for generating values- Default:
- org.hibernate.id.IdentifierGenerator.class
-
-
-
generator
String generator
The generator name. Can specify either a built-in strategy ("sequence", e.g.) or a named generatorIdentifierGenerator (SequenceGenerator
, e.g.)- Default:
- ""
-
-