Package org.hibernate.annotations
Annotation Type CollectionId
-
@Target({METHOD,FIELD}) @Retention(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
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Column
column
The column containing the collection-idString
generator
The generator name.Class<? extends IdentifierGenerator>
generatorImplementation
Implementation for generating values
-
-
-
Element Detail
-
column
Column column
The column containing the collection-id- Default:
- @jakarta.persistence.Column
-
-
-
generatorImplementation
Class<? extends IdentifierGenerator> generatorImplementation
Implementation for generating values- "API Note:"
- Mutually exclusive with
generator()
- 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.)- "API Note:"
- Mutually exclusive with
generatorImplementation()
()}
- Default:
- ""
-
-