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
-
-
Element Detail
-
type
Type type
id type, type.type() must be set.
-
-
-
generator
String generator
The generator name. For example 'identity' or a defined generator name
-
-
-
columns
@Deprecated Column[] columns
Deprecated.Only basic (single column) collection-ids are supported. Usecolumn()
insteadCollection id column(s).- Default:
- {}
-
-
-
column
Column column
- Default:
- @javax.persistence.Column
-
-